java.lang.Object | |
↳ | com.google.gwt.user.client.ui.Accessibility |
Allows ARIA attributes to be added to widgets so that they can be identified by assistive technologies. Firefox 3, Firefox 2 (via FireVox), and Opera 9.5 are the only released browsers that currently support this feature, but in the near future it will be available in Safari and Internet Explorer 8. Individual screen reader applications may also support ARIA, to varying extents.
A 'role' describes the role a widget plays in a page: i.e. a checkbox widget is assigned a "checkbox" role.
A 'state' describes the current state of the widget. For example, a checkbox widget has the state "checked", which is given a value of "true" or "false" depending on whether it is currently checked or unchecked.
See the MDC page on Accessible DHTML for more information.
Note that although this API is public, the ARIA specification is still somewhat in flux. As a result, this API is subject to change as the specification stabilizes; we will do our best to keep the community updated on changes.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Requests the string value of the role with the specified namespace.
| |||||||||||
Requests the string value of the state with the specified namespace.
| |||||||||||
Removes the state from the given element.
| |||||||||||
Assigns the specified element the specified role and value for that role.
| |||||||||||
Assigns the specified element the specified state and value for that state.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Requests the string value of the role with the specified namespace.
elem | the element which has the specified role |
---|
Requests the string value of the state with the specified namespace.
elem | the element which has the specified state |
---|---|
stateName | the name of the state |
Removes the state from the given element.
elem | the element which has the specified state |
---|---|
stateName | the name of the state to remove |
Assigns the specified element the specified role and value for that role.
elem | the element to be given the specified role |
---|---|
roleName | the name of the role |
Assigns the specified element the specified state and value for that state.
elem | the element to be given the specified state |
---|---|
stateName | the name of the state |
stateValue | the value of the state |