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.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the name of the object -- can be null if this object does not have a nameOverrides com. Get the name of this object. |
| public AccessibleRole | getAccessibleRole()
Overrides com. Get the role of this object. |
| public AccessibleStateSet | Returns: an instance of AccessibleState containing the current state of the objectOverrides com. Get the state of this object. |
| public void | setAccessibleName(String s)
Overrides com. Set the name of this object. |
| CheckboxTranslator | back to summary |
|---|---|
| public CheckboxTranslator() | |
| getAccessibleName | back to summary |
|---|---|
| public String getAccessibleName() Overrides com. Get the name of this object.
| |
| getAccessibleRole | back to summary |
|---|---|
| public AccessibleRole getAccessibleRole() Overrides com. Doc from com. Get the role of this object. | |
| getAccessibleStateSet | back to summary |
|---|---|
| public AccessibleStateSet getAccessibleStateSet() Overrides com. Get the state of this object.
| |
| setAccessibleName | back to summary |
|---|---|
| public void setAccessibleName(String s) Overrides com. Set the name of this object. | |