Package com.google.gwt.aria.client
Interface Role
- All Known Subinterfaces:
AlertdialogRole
,AlertRole
,ApplicationRole
,ArticleRole
,BannerRole
,ButtonRole
,CheckboxRole
,ColumnheaderRole
,ComboboxRole
,CommandRole
,ComplementaryRole
,CompositeRole
,ContentinfoRole
,DefinitionRole
,DialogRole
,DirectoryRole
,DocumentRole
,FormRole
,GridcellRole
,GridRole
,GroupRole
,HeadingRole
,ImgRole
,InputRole
,LandmarkRole
,LinkRole
,ListboxRole
,ListitemRole
,ListRole
,LogRole
,MainRole
,MarqueeRole
,MathRole
,MenubarRole
,MenuitemcheckboxRole
,MenuitemradioRole
,MenuitemRole
,MenuRole
,NavigationRole
,NoteRole
,OptionRole
,PresentationRole
,ProgressbarRole
,RadiogroupRole
,RadioRole
,RangeRole
,RegionRole
,RowgroupRole
,RowheaderRole
,RowRole
,ScrollbarRole
,SearchRole
,SectionheadRole
,SectionRole
,SelectRole
,SeparatorRole
,SliderRole
,SpinbuttonRole
,StatusRole
,StructureRole
,TablistRole
,TabpanelRole
,TabRole
,TextboxRole
,TimerRole
,ToolbarRole
,TooltipRole
,TreegridRole
,TreeitemRole
,TreeRole
,WidgetRole
,WindowRole
- All Known Implementing Classes:
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
,RoleImpl
,RowgroupRoleImpl
,RowheaderRoleImpl
,RowRoleImpl
,ScrollbarRoleImpl
,SearchRoleImpl
,SeparatorRoleImpl
,SliderRoleImpl
,SpinbuttonRoleImpl
,StatusRoleImpl
,TablistRoleImpl
,TabpanelRoleImpl
,TabRoleImpl
,TextboxRoleImpl
,TimerRoleImpl
,ToolbarRoleImpl
,TooltipRoleImpl
,TreegridRoleImpl
,TreeitemRoleImpl
,TreeRoleImpl
public interface Role
A generic ARIA Role. This interface defines generic methods for setting, getting, and removing
attributes on DOM Elements so that they can be identified by screen readers. Subtypes
define methods for specific roles.
The ARIA specification defines a hierarchy of roles, which is mirrored here as
a hierarchy of Java interfaces. Some roles are abstract and define methods that are common to
their children. Only concrete roles (available via methods in Roles
) should be used to
modify HTML elements.
For more details, see The Roles Model in the ARIA specification.
-
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)
-
Method Details
-
getAriaAtomicProperty
Returns the value of the aria-atomic attribute for theelement
or "" if no such attribute is present. -
getAriaBusyState
Returns the value of the aria-busy attribute for theelement
or "" if no such attribute is present. -
getAriaControlsProperty
Returns the value of the aria-controls attribute for theelement
or "" if no such attribute is present. -
getAriaDescribedbyProperty
Returns the value of the aria-describedby attribute for theelement
or "" if no such attribute is present. -
getAriaDisabledState
Returns the value of the aria-disabled attribute for theelement
or "" if no such attribute is present. -
getAriaDropeffectProperty
Returns the value of the aria-dropeffect attribute for theelement
or "" if no such attribute is present. -
getAriaFlowtoProperty
Returns the value of the aria-flowto attribute for theelement
or "" if no such attribute is present. -
getAriaGrabbedState
Returns the value of the aria-grabbed attribute for theelement
or "" if no such attribute is present. -
getAriaHaspopupProperty
Returns the value of the aria-haspopup attribute for theelement
or "" if no such attribute is present. -
getAriaHiddenState
Returns the value of the aria-hidden attribute for theelement
or "" if no such attribute is present. -
getAriaInvalidState
Returns the value of the aria-invalid attribute for theelement
or "" if no such attribute is present. -
getAriaLabelledbyProperty
Returns the value of the aria-labelledby attribute for theelement
or "" if no such attribute is present. -
getAriaLabelProperty
Returns the value of the aria-label attribute for theelement
or "" if no such attribute is present. -
getAriaLiveProperty
Returns the value of the aria-live attribute for theelement
or "" if no such attribute is present. -
getAriaOwnsProperty
Returns the value of the aria-owns attribute for theelement
or "" if no such attribute is present. -
getAriaRelevantProperty
Returns the value of the aria-relevant attribute for theelement
or "" if no such attribute is present. -
getName
String getName()Gets the ARIA 'role' attribute name as defined in the WAI-ARIA standard.- See Also:
-
getTabindexExtraAttribute
Returns the value of the tabIndex attribute for theelement
or "" if no such attribute is present. -
remove
Removes the 'role' attribute from theelement
.- See Also:
-
removeAriaAtomicProperty
Removes the aria-atomic attribute from theelement
. -
removeAriaBusyState
Removes the aria-busy attribute from theelement
. -
removeAriaControlsProperty
Removes the aria-controls attribute from theelement
. -
removeAriaDescribedbyProperty
Removes the aria-describedby attribute from theelement
. -
removeAriaDisabledState
Removes the aria-disabled attribute from theelement
. -
removeAriaDropeffectProperty
Removes the aria-dropeffect attribute from theelement
. -
removeAriaFlowtoProperty
Removes the aria-flowto attribute from theelement
. -
removeAriaGrabbedState
Removes the aria-grabbed attribute from theelement
. -
removeAriaHaspopupProperty
Removes the aria-haspopup attribute from theelement
. -
removeAriaHiddenState
Removes the aria-hidden attribute from theelement
. -
removeAriaInvalidState
Removes the aria-invalid attribute from theelement
. -
removeAriaLabelledbyProperty
Removes the aria-labelledby attribute from theelement
. -
removeAriaLabelProperty
Removes the aria-label attribute from theelement
. -
removeAriaLiveProperty
Removes the aria-live attribute from theelement
. -
removeAriaOwnsProperty
Removes the aria-owns attribute from theelement
. -
removeAriaRelevantProperty
Removes the aria-relevant attribute from theelement
. -
removeTabindexExtraAttribute
Removes the tabIndex attribute from theelement
. -
set
Sets the 'role' attribute of the givenelement
to the appropriate value for this role.- See Also:
-
setAriaAtomicProperty
-
setAriaBusyState
-
setAriaControlsProperty
-
setAriaDescribedbyProperty
-
setAriaDisabledState
-
setAriaDropeffectProperty
-
setAriaFlowtoProperty
-
setAriaGrabbedState
-
setAriaHaspopupProperty
-
setAriaHiddenState
-
setAriaInvalidState
-
setAriaLabelledbyProperty
-
setAriaLabelProperty
-
setAriaLiveProperty
-
setAriaOwnsProperty
-
setAriaRelevantProperty
-
setTabindexExtraAttribute
-