|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.accessibility.AccessibleContext
javax.swing.ImageIcon.AccessibleImageIcon
protected class ImageIcon.AccessibleImageIcon
Provides the accessibility features for the ImageIcon
class.
Field Summary |
---|
Constructor Summary | |
---|---|
protected |
ImageIcon.AccessibleImageIcon()
Creates a new instance of AccessibleImageIcon . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ImageIcon.AccessibleImageIcon()
AccessibleImageIcon
.
Method Detail |
---|
public AccessibleRole getAccessibleRole()
ImageIcon
.
getAccessibleRole
in class AccessibleContext
AccessibleRole.ICON
.AccessibleRole
public AccessibleStateSet getAccessibleStateSet()
ImageIcon
. To
match the reference implementation, this method always returns
null
.
getAccessibleStateSet
in class AccessibleContext
null
.AccessibleState
,
AccessibleStateSet
,
AccessibleContext.addPropertyChangeListener(PropertyChangeListener)
public Accessible getAccessibleParent()
null
.
getAccessibleParent
in class AccessibleContext
null
.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 AccessibleContext
0
.AccessibleContext.getAccessibleChild(int)
public Accessible getAccessibleChild(int i)
i
, which is
null
in this case because an ImageIcon
has no
children.
getAccessibleChild
in class AccessibleContext
i
- the index of the child to be fetched
null
.AccessibleContext.getAccessibleChildrenCount()
public Locale getLocale() throws IllegalComponentStateException
null
.
getLocale
in class AccessibleContext
null
.
IllegalComponentStateException
- if there is no locale
or parentpublic String getAccessibleIconDescription()
description
property of the underlying ImageIcon
.
getAccessibleIconDescription
in interface AccessibleIcon
null
).setAccessibleIconDescription(String)
public void setAccessibleIconDescription(String newDescr)
description
property of the underlying ImageIcon
.
setAccessibleIconDescription
in interface AccessibleIcon
newDescr
- the description (null
permitted).getAccessibleIconDescription()
public int getAccessibleIconHeight()
iconHeight
property of the underlying ImageIcon
.
getAccessibleIconHeight
in interface AccessibleIcon
public int getAccessibleIconWidth()
iconWidth
property
of the underlying ImageIcon
.
getAccessibleIconWidth
in interface AccessibleIcon
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |