class RoleImpl extends java.lang.Object implements Role
| Constructor and Description |
|---|
RoleImpl(java.lang.String roleName) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAriaAtomicProperty(Element element)
Returns the value of the
aria-atomic attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getAriaBusyState(Element element)
Returns the value of the
aria-busy attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getAriaControlsProperty(Element element)
Returns the value of the
aria-controls attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getAriaDescribedbyProperty(Element element)
Returns the value of the
aria-describedby attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getAriaDisabledState(Element element)
Returns the value of the
aria-disabled attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getAriaDropeffectProperty(Element element)
Returns the value of the
aria-dropeffect attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getAriaFlowtoProperty(Element element)
Returns the value of the
aria-flowto attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getAriaGrabbedState(Element element)
Returns the value of the
aria-grabbed attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getAriaHaspopupProperty(Element element)
Returns the value of the
aria-haspopup attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getAriaHiddenState(Element element)
Returns the value of the
aria-hidden attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getAriaInvalidState(Element element)
Returns the value of the
aria-invalid attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getAriaLabelledbyProperty(Element element)
Returns the value of the
aria-labelledby attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getAriaLabelProperty(Element element)
Returns the value of the
aria-label attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getAriaLiveProperty(Element element)
Returns the value of the
aria-live attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getAriaOwnsProperty(Element element)
Returns the value of the
aria-owns attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getAriaRelevantProperty(Element element)
Returns the value of the
aria-relevant attribute for the
element or "" if no
such attribute is present. |
java.lang.String |
getName()
Gets the ARIA 'role' attribute name as defined in the
WAI-ARIA standard.
|
java.lang.String |
getTabindexExtraAttribute(Element element)
Returns the value of the
tabIndex attribute for the
element or "" if no
such attribute is present. |
void |
remove(Element element)
Removes the 'role' attribute from the
element. |
void |
removeAriaAtomicProperty(Element element)
Removes the
aria-atomic attribute from the
element. |
void |
removeAriaBusyState(Element element)
Removes the
aria-busy attribute from the
element. |
void |
removeAriaControlsProperty(Element element)
Removes the
aria-controls attribute from the
element. |
void |
removeAriaDescribedbyProperty(Element element)
Removes the
aria-describedby attribute from the
element. |
void |
removeAriaDisabledState(Element element)
Removes the
aria-disabled attribute from the
element. |
void |
removeAriaDropeffectProperty(Element element)
Removes the
aria-dropeffect attribute from the
element. |
void |
removeAriaFlowtoProperty(Element element)
Removes the
aria-flowto attribute from the
element. |
void |
removeAriaGrabbedState(Element element)
Removes the
aria-grabbed attribute from the
element. |
void |
removeAriaHaspopupProperty(Element element)
Removes the
aria-haspopup attribute from the
element. |
void |
removeAriaHiddenState(Element element)
Removes the
aria-hidden attribute from the
element. |
void |
removeAriaInvalidState(Element element)
Removes the
aria-invalid attribute from the
element. |
void |
removeAriaLabelledbyProperty(Element element)
Removes the
aria-labelledby attribute from the
element. |
void |
removeAriaLabelProperty(Element element)
Removes the
aria-label attribute from the
element. |
void |
removeAriaLiveProperty(Element element)
Removes the
aria-live attribute from the
element. |
void |
removeAriaOwnsProperty(Element element)
Removes the
aria-owns attribute from the
element. |
void |
removeAriaRelevantProperty(Element element)
Removes the
aria-relevant attribute from the
element. |
void |
removeTabindexExtraAttribute(Element element)
Removes the
tabIndex attribute from the
element. |
void |
set(Element element)
Sets the 'role' attribute of the given
element to the appropriate
value for this role. |
void |
setAriaAtomicProperty(Element element,
boolean value)
|
void |
setAriaBusyState(Element element,
boolean value)
|
void |
setAriaControlsProperty(Element element,
Id... value)
|
void |
setAriaDescribedbyProperty(Element element,
Id... value)
|
void |
setAriaDisabledState(Element element,
boolean value)
|
void |
setAriaDropeffectProperty(Element element,
DropeffectValue... value)
|
void |
setAriaFlowtoProperty(Element element,
Id... value)
|
void |
setAriaGrabbedState(Element element,
GrabbedValue value)
|
void |
setAriaHaspopupProperty(Element element,
boolean value)
|
void |
setAriaHiddenState(Element element,
boolean value)
|
void |
setAriaInvalidState(Element element,
InvalidValue value)
|
void |
setAriaLabelledbyProperty(Element element,
Id... value)
|
void |
setAriaLabelProperty(Element element,
java.lang.String value)
|
void |
setAriaLiveProperty(Element element,
LiveValue value)
|
void |
setAriaOwnsProperty(Element element,
Id... value)
|
void |
setAriaRelevantProperty(Element element,
RelevantValue... value)
|
void |
setTabindexExtraAttribute(Element element,
int value)
|
public java.lang.String getAriaAtomicProperty(Element element)
Roleelement or "" if no
such attribute is present.getAriaAtomicProperty in interface Rolepublic java.lang.String getAriaBusyState(Element element)
Roleelement or "" if no
such attribute is present.getAriaBusyState in interface Rolepublic java.lang.String getAriaControlsProperty(Element element)
Roleelement or "" if no
such attribute is present.getAriaControlsProperty in interface Rolepublic java.lang.String getAriaDescribedbyProperty(Element element)
Roleelement or "" if no
such attribute is present.getAriaDescribedbyProperty in interface Rolepublic java.lang.String getAriaDisabledState(Element element)
Roleelement or "" if no
such attribute is present.getAriaDisabledState in interface Rolepublic java.lang.String getAriaDropeffectProperty(Element element)
Roleelement or "" if no
such attribute is present.getAriaDropeffectProperty in interface Rolepublic java.lang.String getAriaFlowtoProperty(Element element)
Roleelement or "" if no
such attribute is present.getAriaFlowtoProperty in interface Rolepublic java.lang.String getAriaGrabbedState(Element element)
Roleelement or "" if no
such attribute is present.getAriaGrabbedState in interface Rolepublic java.lang.String getAriaHaspopupProperty(Element element)
Roleelement or "" if no
such attribute is present.getAriaHaspopupProperty in interface Rolepublic java.lang.String getAriaHiddenState(Element element)
Roleelement or "" if no
such attribute is present.getAriaHiddenState in interface Rolepublic java.lang.String getAriaInvalidState(Element element)
Roleelement or "" if no
such attribute is present.getAriaInvalidState in interface Rolepublic java.lang.String getAriaLabelledbyProperty(Element element)
Roleelement or "" if no
such attribute is present.getAriaLabelledbyProperty in interface Rolepublic java.lang.String getAriaLabelProperty(Element element)
Roleelement or "" if no
such attribute is present.getAriaLabelProperty in interface Rolepublic java.lang.String getAriaLiveProperty(Element element)
Roleelement or "" if no
such attribute is present.getAriaLiveProperty in interface Rolepublic java.lang.String getAriaOwnsProperty(Element element)
Roleelement or "" if no
such attribute is present.getAriaOwnsProperty in interface Rolepublic java.lang.String getAriaRelevantProperty(Element element)
Roleelement or "" if no
such attribute is present.getAriaRelevantProperty in interface Rolepublic java.lang.String getName()
RolegetName in interface Rolepublic java.lang.String getTabindexExtraAttribute(Element element)
Roleelement or "" if no
such attribute is present.getTabindexExtraAttribute in interface Rolepublic void remove(Element element)
Roleelement.remove in interface Rolepublic void removeAriaAtomicProperty(Element element)
Roleelement.removeAriaAtomicProperty in interface Rolepublic void removeAriaBusyState(Element element)
Roleelement.removeAriaBusyState in interface Rolepublic void removeAriaControlsProperty(Element element)
Roleelement.removeAriaControlsProperty in interface Rolepublic void removeAriaDescribedbyProperty(Element element)
Roleelement.removeAriaDescribedbyProperty in interface Rolepublic void removeAriaDisabledState(Element element)
Roleelement.removeAriaDisabledState in interface Rolepublic void removeAriaDropeffectProperty(Element element)
Roleelement.removeAriaDropeffectProperty in interface Rolepublic void removeAriaFlowtoProperty(Element element)
Roleelement.removeAriaFlowtoProperty in interface Rolepublic void removeAriaGrabbedState(Element element)
Roleelement.removeAriaGrabbedState in interface Rolepublic void removeAriaHaspopupProperty(Element element)
Roleelement.removeAriaHaspopupProperty in interface Rolepublic void removeAriaHiddenState(Element element)
Roleelement.removeAriaHiddenState in interface Rolepublic void removeAriaInvalidState(Element element)
Roleelement.removeAriaInvalidState in interface Rolepublic void removeAriaLabelledbyProperty(Element element)
Roleelement.removeAriaLabelledbyProperty in interface Rolepublic void removeAriaLabelProperty(Element element)
Roleelement.removeAriaLabelProperty in interface Rolepublic void removeAriaLiveProperty(Element element)
Roleelement.removeAriaLiveProperty in interface Rolepublic void removeAriaOwnsProperty(Element element)
Roleelement.removeAriaOwnsProperty in interface Rolepublic void removeAriaRelevantProperty(Element element)
Roleelement.removeAriaRelevantProperty in interface Rolepublic void removeTabindexExtraAttribute(Element element)
Roleelement.removeTabindexExtraAttribute in interface Rolepublic void set(Element element)
Roleelement to the appropriate
value for this role.set in interface Rolepublic void setAriaAtomicProperty(Element element, boolean value)
RolesetAriaAtomicProperty in interface Rolepublic void setAriaBusyState(Element element, boolean value)
RolesetAriaBusyState in interface Rolepublic void setAriaControlsProperty(Element element, Id... value)
RolesetAriaControlsProperty in interface Rolepublic void setAriaDescribedbyProperty(Element element, Id... value)
RolesetAriaDescribedbyProperty in interface Rolepublic void setAriaDisabledState(Element element, boolean value)
RolesetAriaDisabledState in interface Rolepublic void setAriaDropeffectProperty(Element element, DropeffectValue... value)
RolesetAriaDropeffectProperty in interface Rolepublic void setAriaFlowtoProperty(Element element, Id... value)
RolesetAriaFlowtoProperty in interface Rolepublic void setAriaGrabbedState(Element element, GrabbedValue value)
RolesetAriaGrabbedState in interface Rolepublic void setAriaHaspopupProperty(Element element, boolean value)
RolesetAriaHaspopupProperty in interface Rolepublic void setAriaHiddenState(Element element, boolean value)
RolesetAriaHiddenState in interface Rolepublic void setAriaInvalidState(Element element, InvalidValue value)
RolesetAriaInvalidState in interface Rolepublic void setAriaLabelledbyProperty(Element element, Id... value)
RolesetAriaLabelledbyProperty in interface Rolepublic void setAriaLabelProperty(Element element, java.lang.String value)
RolesetAriaLabelProperty in interface Rolepublic void setAriaLiveProperty(Element element, LiveValue value)
RolesetAriaLiveProperty in interface Rolepublic void setAriaOwnsProperty(Element element, Id... value)
RolesetAriaOwnsProperty in interface Rolepublic void setAriaRelevantProperty(Element element, RelevantValue... value)
RolesetAriaRelevantProperty in interface Rolepublic void setTabindexExtraAttribute(Element element, int value)
RolesetTabindexExtraAttribute in interface Role