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

public Class ButtonTranslator

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

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 void
Inherited from com.sun.java.accessibility.util.Translator:
addFocusListeneraddPropertyChangeListenercontainsequalsgetAccessiblegetAccessibleAtgetAccessibleChildgetAccessibleChildrenCountgetAccessibleContextgetAccessibleDescriptiongetAccessibleIndexInParentgetAccessibleParentgetAccessibleStateSetgetBackgroundgetBoundsgetCursorgetFontgetFontMetricsgetForegroundgetLocalegetLocationgetLocationOnScreengetSizegetSourcegetTranslatorClasshashCodeisEnabledisFocusTraversableisShowingisVisibleremoveFocusListenerremovePropertyChangeListenerrequestFocussetAccessibleDescriptionsetBackgroundsetBoundssetCursorsetEnabledsetFontsetForegroundsetLocationsetSizesetSourcesetVisible

Constructor Detail

ButtonTranslatorback to summary
public ButtonTranslator()

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.

setAccessibleNameback to summary
public void setAccessibleName(String s)

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

Set the name of this object.