public class AriaSupport extends Object
Modifier and Type | Method and Description |
---|---|
String |
getDescribedBy()
Returns the ARIA described by id.
|
String |
getDescription()
Returns the description.
|
String |
getLabel()
Returns the ARIA label text.
|
String |
getLabelledBy()
Returns the ARIA labelled by id.
|
String |
getRole()
Returns the ARIA role.
|
String |
getState(String stateName)
Returns the ARIA state.
|
Map<String,String> |
getStates()
Returns the ARIA states.
|
boolean |
isPresentation()
Returns true if the widget is a presentation element.
|
void |
setDescribedBy(String describedBy)
Sets the ARIA described by attribute on the widget.
|
void |
setDescription(String description)
Sets the ARIA description.
|
void |
setLabel(String label)
Sets the ARIA label attribute on the widget.
|
void |
setLabelledBy(String labelledBy)
Sets the ARIA labelled by attribute on the widget.
|
void |
setPresentation(boolean presentation)
True to mark this widget as a ARIA presentation element.
|
void |
setRole(String role)
Sets the ARIA role.
|
void |
setState(String stateName,
String value)
Sets the ARIA state.
|
public String getDescribedBy()
public String getDescription()
public String getLabel()
public String getLabelledBy()
public String getRole()
public String getState(String stateName)
stateName
- the state namepublic boolean isPresentation()
public void setDescribedBy(String describedBy)
describedBy
- the id of the element with the labelpublic void setDescription(String description)
setDescribedBy(String)
is used. This method is useful when there
is not an existing element to be used for the description.description
- the descriptionpublic void setLabel(String label)
label
- the labelpublic void setLabelledBy(String labelledBy)
labelledBy
- the id of the element with the labelpublic void setPresentation(boolean presentation)
presentation
- true for presentationpublic void setRole(String role)
role
- the ARIA roleCopyright © 2012. All Rights Reserved.