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

public Class LabelTranslator

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

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
getAccessibleName()

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

Get the accessible name of this object.

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

Constructor Detail

LabelTranslatorback to summary
public LabelTranslator()

Method Detail

getAccessibleNameback to summary
public String getAccessibleName()

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

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

Get the accessible name of this object.

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.