protected class ImageIcon.AccessibleImageIcon extends AccessibleContext implements AccessibleIcon, Serializable
ImageIcon
class.ACCESSIBLE_ACTION_PROPERTY, ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, ACCESSIBLE_CARET_PROPERTY, ACCESSIBLE_CHILD_PROPERTY, ACCESSIBLE_COMPONENT_BOUNDS_CHANGED, ACCESSIBLE_DESCRIPTION_PROPERTY, ACCESSIBLE_HYPERTEXT_OFFSET, ACCESSIBLE_INVALIDATE_CHILDREN, ACCESSIBLE_NAME_PROPERTY, ACCESSIBLE_SELECTION_PROPERTY, ACCESSIBLE_STATE_PROPERTY, ACCESSIBLE_TABLE_CAPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED, ACCESSIBLE_TABLE_MODEL_CHANGED, ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_ROW_HEADER_CHANGED, ACCESSIBLE_TABLE_SUMMARY_CHANGED, ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED, ACCESSIBLE_TEXT_PROPERTY, ACCESSIBLE_VALUE_PROPERTY, ACCESSIBLE_VISIBLE_DATA_PROPERTY, accessibleDescription, accessibleName, accessibleParent| Modifier | Constructor and Description |
|---|---|
protected |
ImageIcon.AccessibleImageIcon()
Creates a new instance of
AccessibleImageIcon. |
| Modifier and Type | Method and Description |
|---|---|
Accessible |
getAccessibleChild(int i)
Returns the accessible child at index
i, which is
null in this case because an ImageIcon has no
children. |
int |
getAccessibleChildrenCount()
Returns the number of accessible children of this component,
which is 0, because an
ImageIcon has no children. |
String |
getAccessibleIconDescription()
Returns the accessible icon description.
|
int |
getAccessibleIconHeight()
Returns the icon height.
|
int |
getAccessibleIconWidth()
Returns the icon width.
|
int |
getAccessibleIndexInParent()
Returns the index of this object in its accessible parent.
|
Accessible |
getAccessibleParent()
Returns the accessible parent of this object.
|
AccessibleRole |
getAccessibleRole()
Returns the accessible role for the
ImageIcon. |
AccessibleStateSet |
getAccessibleStateSet()
Returns the accessible state for the
ImageIcon. |
Locale |
getLocale()
Returns the locale of this object.
|
void |
setAccessibleIconDescription(String newDescr)
Sets the accessible icon description.
|
addPropertyChangeListener, firePropertyChange, getAccessibleAction, getAccessibleComponent, getAccessibleDescription, getAccessibleEditableText, getAccessibleIcon, getAccessibleName, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleText, getAccessibleValue, removePropertyChangeListener, setAccessibleDescription, setAccessibleName, setAccessibleParentprotected ImageIcon.AccessibleImageIcon()
AccessibleImageIcon.public AccessibleRole getAccessibleRole()
ImageIcon.getAccessibleRole in class AccessibleContextAccessibleRole.ICON.AccessibleRolepublic AccessibleStateSet getAccessibleStateSet()
ImageIcon. To
match the reference implementation, this method always returns
null.getAccessibleStateSet in class AccessibleContextnull.AccessibleState,
AccessibleStateSet,
AccessibleContext.addPropertyChangeListener(PropertyChangeListener)public Accessible getAccessibleParent()
null.getAccessibleParent in class AccessibleContextnull.public int getAccessibleIndexInParent()
-1.getAccessibleIndexInParent in class AccessibleContext-1.AccessibleContext.getAccessibleParent(),
AccessibleContext.getAccessibleChildrenCount(),
AccessibleContext.getAccessibleChild(int)public int getAccessibleChildrenCount()
ImageIcon has no children.getAccessibleChildrenCount in class AccessibleContext0.AccessibleContext.getAccessibleChild(int)public Accessible getAccessibleChild(int i)
i, which is
null in this case because an ImageIcon has no
children.getAccessibleChild in class AccessibleContexti - the index of the child to be fetchednull.AccessibleContext.getAccessibleChildrenCount()public Locale getLocale() throws IllegalComponentStateException
null.getLocale in class AccessibleContextnull.IllegalComponentStateException - if there is no locale
or parentpublic String getAccessibleIconDescription()
description property of the underlying ImageIcon.getAccessibleIconDescription in interface AccessibleIconnull).setAccessibleIconDescription(String)public void setAccessibleIconDescription(String newDescr)
description property of the underlying ImageIcon.setAccessibleIconDescription in interface AccessibleIconnewDescr - the description (null permitted).getAccessibleIconDescription()public int getAccessibleIconHeight()
iconHeight
property of the underlying ImageIcon.getAccessibleIconHeight in interface AccessibleIconpublic int getAccessibleIconWidth()
iconWidth property
of the underlying ImageIcon.getAccessibleIconWidth in interface AccessibleIcon