APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.java.accessibility.util.internal

public Class ListTranslator

extends Translator
Class Inheritance
Imports
java.lang.*, java.util.*, java.awt.*, java.awt.image.*, javax.accessibility.*, com.sun.java.accessibility.util.*

The Translator class provides a translation to interface Accessible for objects that do not implement interface Accessible. Assistive technologies can use the 'getAccessible' class method of Translator to obtain an object that implements interface Accessible. If the object passed in already implements interface Accessible, getAccessible merely returns the object.

An example of how an assistive technology might use the Translator class is as follows:

   Accessible accessible = Translator.getAccessible(someObj);
   // obtain information from the 'accessible' object.

This class extends the Translator class to provide specific support for the List class. Translator.getAccessible() will automatically load this class when an assistive technology asks for an accessible translator for List.

Field Summary

Inherited from com.sun.java.accessibility.util.Translator:
source

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AccessibleRole
public AccessibleStateSet

Returns:

an instance of AccessibleState containing the current state of the object
getAccessibleStateSet
()

Overrides com.sun.java.accessibility.util.Translator.getAccessibleStateSet.

Get the state of this object.

Inherited from com.sun.java.accessibility.util.Translator:
addFocusListeneraddPropertyChangeListenercontainsequalsgetAccessiblegetAccessibleAtgetAccessibleChildgetAccessibleChildrenCountgetAccessibleContextgetAccessibleDescriptiongetAccessibleIndexInParentgetAccessibleNamegetAccessibleParentgetBackgroundgetBoundsgetCursorgetFontgetFontMetricsgetForegroundgetLocalegetLocationgetLocationOnScreengetSizegetSourcegetTranslatorClasshashCodeisEnabledisFocusTraversableisShowingisVisibleremoveFocusListenerremovePropertyChangeListenerrequestFocussetAccessibleDescriptionsetAccessibleNamesetBackgroundsetBoundssetCursorsetEnabledsetFontsetForegroundsetLocationsetSizesetSourcesetVisible

Constructor Detail

ListTranslatorback to summary
public ListTranslator()

Method Detail

getAccessibleRoleback to summary
public AccessibleRole getAccessibleRole()

Overrides com.sun.java.accessibility.util.Translator.getAccessibleRole.

Doc from com.sun.java.accessibility.util.Translator.getAccessibleRole.

Get the role of this object.

getAccessibleStateSetback to summary
public AccessibleStateSet getAccessibleStateSet()

Overrides com.sun.java.accessibility.util.Translator.getAccessibleStateSet.

Get the state of this object.

Returns:AccessibleStateSet

an instance of AccessibleState containing the current state of the object

See Also
AccessibleState