-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.3.0
Name: sdC67446 Date: 09/07/99
The doc for class
javax.swing.ImageIcon.AccessibleImageIcon
says nothing or almost nothing about expected behavior of these
methods:
public AccessibleRole getAccessibleRole()
public AccessibleStateSet getAccessibleStateSet()
public Accessible getAccessibleParent()
public int getAccessibleIndexInParent()
public int getAccessibleChildrenCount()
public Accessible getAccessibleChild(int i)
public Locale getLocale()
More detailed:
public AccessibleRole getAccessibleRole()
currently returns AccessibleRole.ICON
public AccessibleStateSet getAccessibleStateSet()
always returns null
public Accessible getAccessibleParent()
always returns null
public int getAccessibleIndexInParent() {
always returns -1
public int getAccessibleChildrenCount() {
always returns 0
public Accessible getAccessibleChild(int i) {
always returns null
public Locale getLocale() throws IllegalComponentStateException {
always returns null
The doc says:
------------------------------------------------------------
public AccessibleRole getAccessibleRole()
Get the role of this object.
Overrides:
getAccessibleRole in class AccessibleContext
Returns:
an instance of AccessibleRole describing the role of the
object
See Also:
AccessibleRole
public AccessibleStateSet getAccessibleStateSet()
Get the state of this object.
Overrides:
getAccessibleStateSet in class AccessibleContext
Returns:
an instance of AccessibleStateSet containing the current
state set of the object
See Also:
AccessibleState
public Accessible getAccessibleParent()
Get the Accessible parent of this object. If the parent of this
object implements Accessible, this method should simply return
getParent().
Overrides:
getAccessibleParent in class AccessibleContext
Returns:
the Accessible parent of this object -- can be null if this
object does not have an Accessible parent
public int getAccessibleIndexInParent()
Get the index of this object in its accessible parent.
Overrides:
getAccessibleIndexInParent in class AccessibleContext
Returns:
the index of this object in its parent; -1 if this object
does not have an accessible parent.
See Also:
getAccessibleParent()
public int getAccessibleChildrenCount()
Returns the number of accessible children in the object. If all
of the children of this object implement Accessible, than this
method should return the number of children of this object.
Overrides:
getAccessibleChildrenCount in class AccessibleContext
Returns:
the number of accessible children in the object.
public Accessible getAccessibleChild(int i)
Return the nth Accessible child of the object.
Overrides:
getAccessibleChild in class AccessibleContext
Parameters:
i - zero-based index of child
Returns:
the nth Accessible child of the object
public Locale getLocale()
throws IllegalComponentStateException
Return the locale of this object.
Overrides:
getLocale in class AccessibleContext
Returns:
the locale of this object
------------------------------------------------------------
======================================================================