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 TextComponent class. Translator.getAccessible() will automatically load this class when an assistive technology asks for an accessible translator for TextComponent.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AccessibleRole | getAccessibleRole()
Overrides com. Get the role of this object. |
| TextComponentTranslator | back to summary |
|---|---|
| public TextComponentTranslator() | |
| getAccessibleRole | back to summary |
|---|---|
| public AccessibleRole getAccessibleRole() Overrides com. Doc from com. Get the role of this object. | |