Package com.google.gwt.aria.client
Class RoleImpl
java.lang.Object
com.google.gwt.aria.client.RoleImpl
- All Implemented Interfaces:
Role
- Direct Known Subclasses:
AlertdialogRoleImpl
,AlertRoleImpl
,ApplicationRoleImpl
,ArticleRoleImpl
,BannerRoleImpl
,ButtonRoleImpl
,CheckboxRoleImpl
,ColumnheaderRoleImpl
,ComboboxRoleImpl
,ComplementaryRoleImpl
,ContentinfoRoleImpl
,DefinitionRoleImpl
,DialogRoleImpl
,DirectoryRoleImpl
,DocumentRoleImpl
,FormRoleImpl
,GridcellRoleImpl
,GridRoleImpl
,GroupRoleImpl
,HeadingRoleImpl
,ImgRoleImpl
,LinkRoleImpl
,ListboxRoleImpl
,ListitemRoleImpl
,ListRoleImpl
,LogRoleImpl
,MainRoleImpl
,MarqueeRoleImpl
,MathRoleImpl
,MenubarRoleImpl
,MenuitemcheckboxRoleImpl
,MenuitemradioRoleImpl
,MenuitemRoleImpl
,MenuRoleImpl
,NavigationRoleImpl
,NoteRoleImpl
,OptionRoleImpl
,PresentationRoleImpl
,ProgressbarRoleImpl
,RadiogroupRoleImpl
,RadioRoleImpl
,RegionRoleImpl
,RowgroupRoleImpl
,RowheaderRoleImpl
,RowRoleImpl
,ScrollbarRoleImpl
,SearchRoleImpl
,SeparatorRoleImpl
,SliderRoleImpl
,SpinbuttonRoleImpl
,StatusRoleImpl
,TablistRoleImpl
,TabpanelRoleImpl
,TabRoleImpl
,TextboxRoleImpl
,TimerRoleImpl
,ToolbarRoleImpl
,TooltipRoleImpl
,TreegridRoleImpl
,TreeitemRoleImpl
,TreeRoleImpl
The base class for implementing a Role. Includes basic operations for modifying
the "role" attribute and methods that are common to all roles.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAriaAtomicProperty
(Element element) Returns the value of the aria-atomic attribute for theelement
or "" if no such attribute is present.getAriaBusyState
(Element element) Returns the value of the aria-busy attribute for theelement
or "" if no such attribute is present.getAriaControlsProperty
(Element element) Returns the value of the aria-controls attribute for theelement
or "" if no such attribute is present.getAriaDescribedbyProperty
(Element element) Returns the value of the aria-describedby attribute for theelement
or "" if no such attribute is present.getAriaDisabledState
(Element element) Returns the value of the aria-disabled attribute for theelement
or "" if no such attribute is present.getAriaDropeffectProperty
(Element element) Returns the value of the aria-dropeffect attribute for theelement
or "" if no such attribute is present.getAriaFlowtoProperty
(Element element) Returns the value of the aria-flowto attribute for theelement
or "" if no such attribute is present.getAriaGrabbedState
(Element element) Returns the value of the aria-grabbed attribute for theelement
or "" if no such attribute is present.getAriaHaspopupProperty
(Element element) Returns the value of the aria-haspopup attribute for theelement
or "" if no such attribute is present.getAriaHiddenState
(Element element) Returns the value of the aria-hidden attribute for theelement
or "" if no such attribute is present.getAriaInvalidState
(Element element) Returns the value of the aria-invalid attribute for theelement
or "" if no such attribute is present.getAriaLabelledbyProperty
(Element element) Returns the value of the aria-labelledby attribute for theelement
or "" if no such attribute is present.getAriaLabelProperty
(Element element) Returns the value of the aria-label attribute for theelement
or "" if no such attribute is present.getAriaLiveProperty
(Element element) Returns the value of the aria-live attribute for theelement
or "" if no such attribute is present.getAriaOwnsProperty
(Element element) Returns the value of the aria-owns attribute for theelement
or "" if no such attribute is present.getAriaRelevantProperty
(Element element) Returns the value of the aria-relevant attribute for theelement
or "" if no such attribute is present.getName()
Gets the ARIA 'role' attribute name as defined in the WAI-ARIA standard.getTabindexExtraAttribute
(Element element) Returns the value of the tabIndex attribute for theelement
or "" if no such attribute is present.void
Removes the 'role' attribute from theelement
.void
removeAriaAtomicProperty
(Element element) Removes the aria-atomic attribute from theelement
.void
removeAriaBusyState
(Element element) Removes the aria-busy attribute from theelement
.void
removeAriaControlsProperty
(Element element) Removes the aria-controls attribute from theelement
.void
removeAriaDescribedbyProperty
(Element element) Removes the aria-describedby attribute from theelement
.void
removeAriaDisabledState
(Element element) Removes the aria-disabled attribute from theelement
.void
removeAriaDropeffectProperty
(Element element) Removes the aria-dropeffect attribute from theelement
.void
removeAriaFlowtoProperty
(Element element) Removes the aria-flowto attribute from theelement
.void
removeAriaGrabbedState
(Element element) Removes the aria-grabbed attribute from theelement
.void
removeAriaHaspopupProperty
(Element element) Removes the aria-haspopup attribute from theelement
.void
removeAriaHiddenState
(Element element) Removes the aria-hidden attribute from theelement
.void
removeAriaInvalidState
(Element element) Removes the aria-invalid attribute from theelement
.void
removeAriaLabelledbyProperty
(Element element) Removes the aria-labelledby attribute from theelement
.void
removeAriaLabelProperty
(Element element) Removes the aria-label attribute from theelement
.void
removeAriaLiveProperty
(Element element) Removes the aria-live attribute from theelement
.void
removeAriaOwnsProperty
(Element element) Removes the aria-owns attribute from theelement
.void
removeAriaRelevantProperty
(Element element) Removes the aria-relevant attribute from theelement
.void
removeTabindexExtraAttribute
(Element element) Removes the tabIndex attribute from theelement
.void
Sets the 'role' attribute of the givenelement
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, 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)
-
Constructor Details
-
RoleImpl
RoleImpl(String roleName)
-
-
Method Details
-
getAriaAtomicProperty
Description copied from interface:Role
Returns the value of the aria-atomic attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaAtomicProperty
in interfaceRole
-
getAriaBusyState
Description copied from interface:Role
Returns the value of the aria-busy attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaBusyState
in interfaceRole
-
getAriaControlsProperty
Description copied from interface:Role
Returns the value of the aria-controls attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaControlsProperty
in interfaceRole
-
getAriaDescribedbyProperty
Description copied from interface:Role
Returns the value of the aria-describedby attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaDescribedbyProperty
in interfaceRole
-
getAriaDisabledState
Description copied from interface:Role
Returns the value of the aria-disabled attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaDisabledState
in interfaceRole
-
getAriaDropeffectProperty
Description copied from interface:Role
Returns the value of the aria-dropeffect attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaDropeffectProperty
in interfaceRole
-
getAriaFlowtoProperty
Description copied from interface:Role
Returns the value of the aria-flowto attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaFlowtoProperty
in interfaceRole
-
getAriaGrabbedState
Description copied from interface:Role
Returns the value of the aria-grabbed attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaGrabbedState
in interfaceRole
-
getAriaHaspopupProperty
Description copied from interface:Role
Returns the value of the aria-haspopup attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaHaspopupProperty
in interfaceRole
-
getAriaHiddenState
Description copied from interface:Role
Returns the value of the aria-hidden attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaHiddenState
in interfaceRole
-
getAriaInvalidState
Description copied from interface:Role
Returns the value of the aria-invalid attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaInvalidState
in interfaceRole
-
getAriaLabelledbyProperty
Description copied from interface:Role
Returns the value of the aria-labelledby attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaLabelledbyProperty
in interfaceRole
-
getAriaLabelProperty
Description copied from interface:Role
Returns the value of the aria-label attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaLabelProperty
in interfaceRole
-
getAriaLiveProperty
Description copied from interface:Role
Returns the value of the aria-live attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaLiveProperty
in interfaceRole
-
getAriaOwnsProperty
Description copied from interface:Role
Returns the value of the aria-owns attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaOwnsProperty
in interfaceRole
-
getAriaRelevantProperty
Description copied from interface:Role
Returns the value of the aria-relevant attribute for theelement
or "" if no such attribute is present.- Specified by:
getAriaRelevantProperty
in interfaceRole
-
getName
Description copied from interface:Role
Gets the ARIA 'role' attribute name as defined in the WAI-ARIA standard. -
getTabindexExtraAttribute
Description copied from interface:Role
Returns the value of the tabIndex attribute for theelement
or "" if no such attribute is present.- Specified by:
getTabindexExtraAttribute
in interfaceRole
-
remove
Description copied from interface:Role
Removes the 'role' attribute from theelement
. -
removeAriaAtomicProperty
Description copied from interface:Role
Removes the aria-atomic attribute from theelement
.- Specified by:
removeAriaAtomicProperty
in interfaceRole
-
removeAriaBusyState
Description copied from interface:Role
Removes the aria-busy attribute from theelement
.- Specified by:
removeAriaBusyState
in interfaceRole
-
removeAriaControlsProperty
Description copied from interface:Role
Removes the aria-controls attribute from theelement
.- Specified by:
removeAriaControlsProperty
in interfaceRole
-
removeAriaDescribedbyProperty
Description copied from interface:Role
Removes the aria-describedby attribute from theelement
.- Specified by:
removeAriaDescribedbyProperty
in interfaceRole
-
removeAriaDisabledState
Description copied from interface:Role
Removes the aria-disabled attribute from theelement
.- Specified by:
removeAriaDisabledState
in interfaceRole
-
removeAriaDropeffectProperty
Description copied from interface:Role
Removes the aria-dropeffect attribute from theelement
.- Specified by:
removeAriaDropeffectProperty
in interfaceRole
-
removeAriaFlowtoProperty
Description copied from interface:Role
Removes the aria-flowto attribute from theelement
.- Specified by:
removeAriaFlowtoProperty
in interfaceRole
-
removeAriaGrabbedState
Description copied from interface:Role
Removes the aria-grabbed attribute from theelement
.- Specified by:
removeAriaGrabbedState
in interfaceRole
-
removeAriaHaspopupProperty
Description copied from interface:Role
Removes the aria-haspopup attribute from theelement
.- Specified by:
removeAriaHaspopupProperty
in interfaceRole
-
removeAriaHiddenState
Description copied from interface:Role
Removes the aria-hidden attribute from theelement
.- Specified by:
removeAriaHiddenState
in interfaceRole
-
removeAriaInvalidState
Description copied from interface:Role
Removes the aria-invalid attribute from theelement
.- Specified by:
removeAriaInvalidState
in interfaceRole
-
removeAriaLabelledbyProperty
Description copied from interface:Role
Removes the aria-labelledby attribute from theelement
.- Specified by:
removeAriaLabelledbyProperty
in interfaceRole
-
removeAriaLabelProperty
Description copied from interface:Role
Removes the aria-label attribute from theelement
.- Specified by:
removeAriaLabelProperty
in interfaceRole
-
removeAriaLiveProperty
Description copied from interface:Role
Removes the aria-live attribute from theelement
.- Specified by:
removeAriaLiveProperty
in interfaceRole
-
removeAriaOwnsProperty
Description copied from interface:Role
Removes the aria-owns attribute from theelement
.- Specified by:
removeAriaOwnsProperty
in interfaceRole
-
removeAriaRelevantProperty
Description copied from interface:Role
Removes the aria-relevant attribute from theelement
.- Specified by:
removeAriaRelevantProperty
in interfaceRole
-
removeTabindexExtraAttribute
Description copied from interface:Role
Removes the tabIndex attribute from theelement
.- Specified by:
removeTabindexExtraAttribute
in interfaceRole
-
set
Description copied from interface:Role
Sets the 'role' attribute of the givenelement
to the appropriate value for this role. -
setAriaAtomicProperty
Description copied from interface:Role
- Specified by:
setAriaAtomicProperty
in interfaceRole
-
setAriaBusyState
Description copied from interface:Role
- Specified by:
setAriaBusyState
in interfaceRole
-
setAriaControlsProperty
Description copied from interface:Role
- Specified by:
setAriaControlsProperty
in interfaceRole
-
setAriaDescribedbyProperty
Description copied from interface:Role
- Specified by:
setAriaDescribedbyProperty
in interfaceRole
-
setAriaDisabledState
Description copied from interface:Role
- Specified by:
setAriaDisabledState
in interfaceRole
-
setAriaDropeffectProperty
Description copied from interface:Role
- Specified by:
setAriaDropeffectProperty
in interfaceRole
-
setAriaFlowtoProperty
Description copied from interface:Role
- Specified by:
setAriaFlowtoProperty
in interfaceRole
-
setAriaGrabbedState
Description copied from interface:Role
- Specified by:
setAriaGrabbedState
in interfaceRole
-
setAriaHaspopupProperty
Description copied from interface:Role
- Specified by:
setAriaHaspopupProperty
in interfaceRole
-
setAriaHiddenState
Description copied from interface:Role
- Specified by:
setAriaHiddenState
in interfaceRole
-
setAriaInvalidState
Description copied from interface:Role
- Specified by:
setAriaInvalidState
in interfaceRole
-
setAriaLabelledbyProperty
Description copied from interface:Role
- Specified by:
setAriaLabelledbyProperty
in interfaceRole
-
setAriaLabelProperty
Description copied from interface:Role
- Specified by:
setAriaLabelProperty
in interfaceRole
-
setAriaLiveProperty
Description copied from interface:Role
- Specified by:
setAriaLiveProperty
in interfaceRole
-
setAriaOwnsProperty
Description copied from interface:Role
- Specified by:
setAriaOwnsProperty
in interfaceRole
-
setAriaRelevantProperty
Description copied from interface:Role
- Specified by:
setAriaRelevantProperty
in interfaceRole
-
setTabindexExtraAttribute
Description copied from interface:Role
- Specified by:
setTabindexExtraAttribute
in interfaceRole
-