javax.accessibility

Interface AccessibleIcon

public interface AccessibleIcon

Objects which have an associated icon, such as buttons, should implement this interface. Accessibility software can use the implementations of this interface to aid the user in navigating the links.

The AccessibleContext.getAccessibleIcon() method should return null if an object does not implement this interface.

Since: 1.2

See Also: Accessible AccessibleContext getAccessibleIcon

UNKNOWN: updated to 1.4

Method Summary
StringgetAccessibleIconDescription()
Returns a textual description of the icon and its purpose.
intgetAccessibleIconHeight()
Get the icon height.
intgetAccessibleIconWidth()
Get the icon width.
voidsetAccessibleIconDescription(String s)
Modify the textual description of the icon and its purpose.

Method Detail

getAccessibleIconDescription

public String getAccessibleIconDescription()
Returns a textual description of the icon and its purpose.

Returns: the description, or null if there is none

getAccessibleIconHeight

public int getAccessibleIconHeight()
Get the icon height.

Returns: the height

getAccessibleIconWidth

public int getAccessibleIconWidth()
Get the icon width.

Returns: the width

setAccessibleIconDescription

public void setAccessibleIconDescription(String s)
Modify the textual description of the icon and its purpose.

Parameters: s the new descrption string