|
GWT 2.5.0.rc1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.aria.client.Role
public class Role
Allows ARIA Accessibility attributes to be added to widgets so that they can be identified by assistive technology.
ARIA roles define widgets and page structure that can be interpreted by a reader application/device. There is a set of abstract roles which are used as building blocks of the roles hierarchy structural and define the common properties and states for the concrete roles. Abstract roles cannot be set to HTML elements.
This class defines some of the supported operations for a role -- set/get/remove role to/from a DOM element.
For more details about ARIA roles check The Roles Model .
| Field Summary | |
|---|---|
static java.lang.String |
ATTR_NAME_ROLE
|
| Constructor Summary | |
|---|---|
Role(java.lang.String roleName)
|
|
| Method Summary | |
|---|---|
java.lang.String |
get(Element element)
Gets the role for the element element. |
java.lang.String |
getName()
Gets the role name |
void |
remove(Element element)
Removes the role for element element |
void |
set(Element element)
Sets the role to element element |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATTR_NAME_ROLE
| Constructor Detail |
|---|
public Role(java.lang.String roleName)
| Method Detail |
|---|
public java.lang.String get(Element element)
element. If none is set, "" is returned.
element - HTML element
public java.lang.String getName()
public void remove(Element element)
element
element - HTML elementpublic void set(Element element)
element
element - HTML element
|
GWT 2.5.0.rc1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||