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

public Class CheckboxTranslator

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 Checkbox class. Translator.getAccessible() will automatically load this class when an assistive technology asks for an accessible translator for Checkbox.

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 String

Returns:

the name of the object -- can be null if this object does not have a name
getAccessibleName
()

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

Get the name of this object.

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.

public void
Inherited from com.sun.java.accessibility.util.Translator:
addFocusListeneraddPropertyChangeListenercontainsequalsgetAccessiblegetAccessibleAtgetAccessibleChildgetAccessibleChildrenCountgetAccessibleContextgetAccessibleDescriptiongetAccessibleIndexInParentgetAccessibleParentgetBackgroundgetBoundsgetCursorgetFontgetFontMetricsgetForegroundgetLocalegetLocationgetLocationOnScreengetSizegetSourcegetTranslatorClasshashCodeisEnabledisFocusTraversableisShowingisVisibleremoveFocusListenerremovePropertyChangeListenerrequestFocussetAccessibleDescriptionsetBackgroundsetBoundssetCursorsetEnabledsetFontsetForegroundsetLocationsetSizesetSourcesetVisible

Constructor Detail

CheckboxTranslatorback to summary
public CheckboxTranslator()

Method Detail

getAccessibleNameback to summary
public String getAccessibleName()

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

Get the name of this object.

Returns:String

the name of the object -- can be null if this object does not have a name

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
setAccessibleNameback to summary
public void setAccessibleName(String s)

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

Set the name of this object.