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)
Role
element
or "" if no
such attribute is present.getAriaAtomicProperty
in interface Role
public java.lang.String getAriaBusyState(Element element)
Role
element
or "" if no
such attribute is present.getAriaBusyState
in interface Role
public java.lang.String getAriaControlsProperty(Element element)
Role
element
or "" if no
such attribute is present.getAriaControlsProperty
in interface Role
public java.lang.String getAriaDescribedbyProperty(Element element)
Role
element
or "" if no
such attribute is present.getAriaDescribedbyProperty
in interface Role
public java.lang.String getAriaDisabledState(Element element)
Role
element
or "" if no
such attribute is present.getAriaDisabledState
in interface Role
public java.lang.String getAriaDropeffectProperty(Element element)
Role
element
or "" if no
such attribute is present.getAriaDropeffectProperty
in interface Role
public java.lang.String getAriaFlowtoProperty(Element element)
Role
element
or "" if no
such attribute is present.getAriaFlowtoProperty
in interface Role
public java.lang.String getAriaGrabbedState(Element element)
Role
element
or "" if no
such attribute is present.getAriaGrabbedState
in interface Role
public java.lang.String getAriaHaspopupProperty(Element element)
Role
element
or "" if no
such attribute is present.getAriaHaspopupProperty
in interface Role
public java.lang.String getAriaHiddenState(Element element)
Role
element
or "" if no
such attribute is present.getAriaHiddenState
in interface Role
public java.lang.String getAriaInvalidState(Element element)
Role
element
or "" if no
such attribute is present.getAriaInvalidState
in interface Role
public java.lang.String getAriaLabelledbyProperty(Element element)
Role
element
or "" if no
such attribute is present.getAriaLabelledbyProperty
in interface Role
public java.lang.String getAriaLabelProperty(Element element)
Role
element
or "" if no
such attribute is present.getAriaLabelProperty
in interface Role
public java.lang.String getAriaLiveProperty(Element element)
Role
element
or "" if no
such attribute is present.getAriaLiveProperty
in interface Role
public java.lang.String getAriaOwnsProperty(Element element)
Role
element
or "" if no
such attribute is present.getAriaOwnsProperty
in interface Role
public java.lang.String getAriaRelevantProperty(Element element)
Role
element
or "" if no
such attribute is present.getAriaRelevantProperty
in interface Role
public java.lang.String getName()
Role
getName
in interface Role
public java.lang.String getTabindexExtraAttribute(Element element)
Role
element
or "" if no
such attribute is present.getTabindexExtraAttribute
in interface Role
public void remove(Element element)
Role
element
.remove
in interface Role
public void removeAriaAtomicProperty(Element element)
Role
element
.removeAriaAtomicProperty
in interface Role
public void removeAriaBusyState(Element element)
Role
element
.removeAriaBusyState
in interface Role
public void removeAriaControlsProperty(Element element)
Role
element
.removeAriaControlsProperty
in interface Role
public void removeAriaDescribedbyProperty(Element element)
Role
element
.removeAriaDescribedbyProperty
in interface Role
public void removeAriaDisabledState(Element element)
Role
element
.removeAriaDisabledState
in interface Role
public void removeAriaDropeffectProperty(Element element)
Role
element
.removeAriaDropeffectProperty
in interface Role
public void removeAriaFlowtoProperty(Element element)
Role
element
.removeAriaFlowtoProperty
in interface Role
public void removeAriaGrabbedState(Element element)
Role
element
.removeAriaGrabbedState
in interface Role
public void removeAriaHaspopupProperty(Element element)
Role
element
.removeAriaHaspopupProperty
in interface Role
public void removeAriaHiddenState(Element element)
Role
element
.removeAriaHiddenState
in interface Role
public void removeAriaInvalidState(Element element)
Role
element
.removeAriaInvalidState
in interface Role
public void removeAriaLabelledbyProperty(Element element)
Role
element
.removeAriaLabelledbyProperty
in interface Role
public void removeAriaLabelProperty(Element element)
Role
element
.removeAriaLabelProperty
in interface Role
public void removeAriaLiveProperty(Element element)
Role
element
.removeAriaLiveProperty
in interface Role
public void removeAriaOwnsProperty(Element element)
Role
element
.removeAriaOwnsProperty
in interface Role
public void removeAriaRelevantProperty(Element element)
Role
element
.removeAriaRelevantProperty
in interface Role
public void removeTabindexExtraAttribute(Element element)
Role
element
.removeTabindexExtraAttribute
in interface Role
public void set(Element element)
Role
element
to the appropriate
value for this role.set
in interface Role
public void setAriaAtomicProperty(Element element, boolean value)
Role
setAriaAtomicProperty
in interface Role
public void setAriaBusyState(Element element, boolean value)
Role
setAriaBusyState
in interface Role
public void setAriaControlsProperty(Element element, Id... value)
Role
setAriaControlsProperty
in interface Role
public void setAriaDescribedbyProperty(Element element, Id... value)
Role
setAriaDescribedbyProperty
in interface Role
public void setAriaDisabledState(Element element, boolean value)
Role
setAriaDisabledState
in interface Role
public void setAriaDropeffectProperty(Element element, DropeffectValue... value)
Role
setAriaDropeffectProperty
in interface Role
public void setAriaFlowtoProperty(Element element, Id... value)
Role
setAriaFlowtoProperty
in interface Role
public void setAriaGrabbedState(Element element, GrabbedValue value)
Role
setAriaGrabbedState
in interface Role
public void setAriaHaspopupProperty(Element element, boolean value)
Role
setAriaHaspopupProperty
in interface Role
public void setAriaHiddenState(Element element, boolean value)
Role
setAriaHiddenState
in interface Role
public void setAriaInvalidState(Element element, InvalidValue value)
Role
setAriaInvalidState
in interface Role
public void setAriaLabelledbyProperty(Element element, Id... value)
Role
setAriaLabelledbyProperty
in interface Role
public void setAriaLabelProperty(Element element, java.lang.String value)
Role
setAriaLabelProperty
in interface Role
public void setAriaLiveProperty(Element element, LiveValue value)
Role
setAriaLiveProperty
in interface Role
public void setAriaOwnsProperty(Element element, Id... value)
Role
setAriaOwnsProperty
in interface Role
public void setAriaRelevantProperty(Element element, RelevantValue... value)
Role
setAriaRelevantProperty
in interface Role
public void setTabindexExtraAttribute(Element element, int value)
Role
setTabindexExtraAttribute
in interface Role