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 RoleA 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAriaAtomicProperty(Element element)Returns the value of the aria-atomic attribute for theelementor "" if no such attribute is present.java.lang.StringgetAriaBusyState(Element element)Returns the value of the aria-busy attribute for theelementor "" if no such attribute is present.java.lang.StringgetAriaControlsProperty(Element element)Returns the value of the aria-controls attribute for theelementor "" if no such attribute is present.java.lang.StringgetAriaDescribedbyProperty(Element element)Returns the value of the aria-describedby attribute for theelementor "" if no such attribute is present.java.lang.StringgetAriaDisabledState(Element element)Returns the value of the aria-disabled attribute for theelementor "" if no such attribute is present.java.lang.StringgetAriaDropeffectProperty(Element element)Returns the value of the aria-dropeffect attribute for theelementor "" if no such attribute is present.java.lang.StringgetAriaFlowtoProperty(Element element)Returns the value of the aria-flowto attribute for theelementor "" if no such attribute is present.java.lang.StringgetAriaGrabbedState(Element element)Returns the value of the aria-grabbed attribute for theelementor "" if no such attribute is present.java.lang.StringgetAriaHaspopupProperty(Element element)Returns the value of the aria-haspopup attribute for theelementor "" if no such attribute is present.java.lang.StringgetAriaHiddenState(Element element)Returns the value of the aria-hidden attribute for theelementor "" if no such attribute is present.java.lang.StringgetAriaInvalidState(Element element)Returns the value of the aria-invalid attribute for theelementor "" if no such attribute is present.java.lang.StringgetAriaLabelledbyProperty(Element element)Returns the value of the aria-labelledby attribute for theelementor "" if no such attribute is present.java.lang.StringgetAriaLabelProperty(Element element)Returns the value of the aria-label attribute for theelementor "" if no such attribute is present.java.lang.StringgetAriaLiveProperty(Element element)Returns the value of the aria-live attribute for theelementor "" if no such attribute is present.java.lang.StringgetAriaOwnsProperty(Element element)Returns the value of the aria-owns attribute for theelementor "" if no such attribute is present.java.lang.StringgetAriaRelevantProperty(Element element)Returns the value of the aria-relevant attribute for theelementor "" if no such attribute is present.java.lang.StringgetName()Gets the ARIA 'role' attribute name as defined in the WAI-ARIA standard.java.lang.StringgetTabindexExtraAttribute(Element element)Returns the value of the tabIndex attribute for theelementor "" if no such attribute is present.voidremove(Element element)Removes the 'role' attribute from theelement.voidremoveAriaAtomicProperty(Element element)Removes the aria-atomic attribute from theelement.voidremoveAriaBusyState(Element element)Removes the aria-busy attribute from theelement.voidremoveAriaControlsProperty(Element element)Removes the aria-controls attribute from theelement.voidremoveAriaDescribedbyProperty(Element element)Removes the aria-describedby attribute from theelement.voidremoveAriaDisabledState(Element element)Removes the aria-disabled attribute from theelement.voidremoveAriaDropeffectProperty(Element element)Removes the aria-dropeffect attribute from theelement.voidremoveAriaFlowtoProperty(Element element)Removes the aria-flowto attribute from theelement.voidremoveAriaGrabbedState(Element element)Removes the aria-grabbed attribute from theelement.voidremoveAriaHaspopupProperty(Element element)Removes the aria-haspopup attribute from theelement.voidremoveAriaHiddenState(Element element)Removes the aria-hidden attribute from theelement.voidremoveAriaInvalidState(Element element)Removes the aria-invalid attribute from theelement.voidremoveAriaLabelledbyProperty(Element element)Removes the aria-labelledby attribute from theelement.voidremoveAriaLabelProperty(Element element)Removes the aria-label attribute from theelement.voidremoveAriaLiveProperty(Element element)Removes the aria-live attribute from theelement.voidremoveAriaOwnsProperty(Element element)Removes the aria-owns attribute from theelement.voidremoveAriaRelevantProperty(Element element)Removes the aria-relevant attribute from theelement.voidremoveTabindexExtraAttribute(Element element)Removes the tabIndex attribute from theelement.voidset(Element element)Sets the 'role' attribute of the givenelementto the appropriate value for this role.voidsetAriaAtomicProperty(Element element, boolean value)voidsetAriaBusyState(Element element, boolean value)voidsetAriaControlsProperty(Element element, Id... value)voidsetAriaDescribedbyProperty(Element element, Id... value)voidsetAriaDisabledState(Element element, boolean value)voidsetAriaDropeffectProperty(Element element, DropeffectValue... value)voidsetAriaFlowtoProperty(Element element, Id... value)voidsetAriaGrabbedState(Element element, GrabbedValue value)voidsetAriaHaspopupProperty(Element element, boolean value)voidsetAriaHiddenState(Element element, boolean value)voidsetAriaInvalidState(Element element, InvalidValue value)voidsetAriaLabelledbyProperty(Element element, Id... value)voidsetAriaLabelProperty(Element element, java.lang.String value)voidsetAriaLiveProperty(Element element, LiveValue value)voidsetAriaOwnsProperty(Element element, Id... value)voidsetAriaRelevantProperty(Element element, RelevantValue... value)voidsetTabindexExtraAttribute(Element element, int value)
-
-
-
Method Detail
-
getAriaAtomicProperty
java.lang.String getAriaAtomicProperty(Element element)
Returns the value of the aria-atomic attribute for theelementor "" if no such attribute is present.
-
getAriaBusyState
java.lang.String getAriaBusyState(Element element)
Returns the value of the aria-busy attribute for theelementor "" if no such attribute is present.
-
getAriaControlsProperty
java.lang.String getAriaControlsProperty(Element element)
Returns the value of the aria-controls attribute for theelementor "" if no such attribute is present.
-
getAriaDescribedbyProperty
java.lang.String getAriaDescribedbyProperty(Element element)
Returns the value of the aria-describedby attribute for theelementor "" if no such attribute is present.
-
getAriaDisabledState
java.lang.String getAriaDisabledState(Element element)
Returns the value of the aria-disabled attribute for theelementor "" if no such attribute is present.
-
getAriaDropeffectProperty
java.lang.String getAriaDropeffectProperty(Element element)
Returns the value of the aria-dropeffect attribute for theelementor "" if no such attribute is present.
-
getAriaFlowtoProperty
java.lang.String getAriaFlowtoProperty(Element element)
Returns the value of the aria-flowto attribute for theelementor "" if no such attribute is present.
-
getAriaGrabbedState
java.lang.String getAriaGrabbedState(Element element)
Returns the value of the aria-grabbed attribute for theelementor "" if no such attribute is present.
-
getAriaHaspopupProperty
java.lang.String getAriaHaspopupProperty(Element element)
Returns the value of the aria-haspopup attribute for theelementor "" if no such attribute is present.
-
getAriaHiddenState
java.lang.String getAriaHiddenState(Element element)
Returns the value of the aria-hidden attribute for theelementor "" if no such attribute is present.
-
getAriaInvalidState
java.lang.String getAriaInvalidState(Element element)
Returns the value of the aria-invalid attribute for theelementor "" if no such attribute is present.
-
getAriaLabelledbyProperty
java.lang.String getAriaLabelledbyProperty(Element element)
Returns the value of the aria-labelledby attribute for theelementor "" if no such attribute is present.
-
getAriaLabelProperty
java.lang.String getAriaLabelProperty(Element element)
Returns the value of the aria-label attribute for theelementor "" if no such attribute is present.
-
getAriaLiveProperty
java.lang.String getAriaLiveProperty(Element element)
Returns the value of the aria-live attribute for theelementor "" if no such attribute is present.
-
getAriaOwnsProperty
java.lang.String getAriaOwnsProperty(Element element)
Returns the value of the aria-owns attribute for theelementor "" if no such attribute is present.
-
getAriaRelevantProperty
java.lang.String getAriaRelevantProperty(Element element)
Returns the value of the aria-relevant attribute for theelementor "" if no such attribute is present.
-
getName
java.lang.String getName()
Gets the ARIA 'role' attribute name as defined in the WAI-ARIA standard.- See Also:
- Roles documentation
-
getTabindexExtraAttribute
java.lang.String getTabindexExtraAttribute(Element element)
Returns the value of the tabIndex attribute for theelementor "" if no such attribute is present.
-
remove
void remove(Element element)
Removes the 'role' attribute from theelement.- See Also:
- Roles documentation
-
removeAriaAtomicProperty
void removeAriaAtomicProperty(Element element)
Removes the aria-atomic attribute from theelement.
-
removeAriaBusyState
void removeAriaBusyState(Element element)
Removes the aria-busy attribute from theelement.
-
removeAriaControlsProperty
void removeAriaControlsProperty(Element element)
Removes the aria-controls attribute from theelement.
-
removeAriaDescribedbyProperty
void removeAriaDescribedbyProperty(Element element)
Removes the aria-describedby attribute from theelement.
-
removeAriaDisabledState
void removeAriaDisabledState(Element element)
Removes the aria-disabled attribute from theelement.
-
removeAriaDropeffectProperty
void removeAriaDropeffectProperty(Element element)
Removes the aria-dropeffect attribute from theelement.
-
removeAriaFlowtoProperty
void removeAriaFlowtoProperty(Element element)
Removes the aria-flowto attribute from theelement.
-
removeAriaGrabbedState
void removeAriaGrabbedState(Element element)
Removes the aria-grabbed attribute from theelement.
-
removeAriaHaspopupProperty
void removeAriaHaspopupProperty(Element element)
Removes the aria-haspopup attribute from theelement.
-
removeAriaHiddenState
void removeAriaHiddenState(Element element)
Removes the aria-hidden attribute from theelement.
-
removeAriaInvalidState
void removeAriaInvalidState(Element element)
Removes the aria-invalid attribute from theelement.
-
removeAriaLabelledbyProperty
void removeAriaLabelledbyProperty(Element element)
Removes the aria-labelledby attribute from theelement.
-
removeAriaLabelProperty
void removeAriaLabelProperty(Element element)
Removes the aria-label attribute from theelement.
-
removeAriaLiveProperty
void removeAriaLiveProperty(Element element)
Removes the aria-live attribute from theelement.
-
removeAriaOwnsProperty
void removeAriaOwnsProperty(Element element)
Removes the aria-owns attribute from theelement.
-
removeAriaRelevantProperty
void removeAriaRelevantProperty(Element element)
Removes the aria-relevant attribute from theelement.
-
removeTabindexExtraAttribute
void removeTabindexExtraAttribute(Element element)
Removes the tabIndex attribute from theelement.
-
set
void set(Element element)
Sets the 'role' attribute of the givenelementto the appropriate value for this role.- See Also:
- Roles documentation
-
setAriaAtomicProperty
void setAriaAtomicProperty(Element element, boolean value)
-
setAriaBusyState
void setAriaBusyState(Element element, boolean value)
-
setAriaDisabledState
void setAriaDisabledState(Element element, boolean value)
-
setAriaDropeffectProperty
void setAriaDropeffectProperty(Element element, DropeffectValue... value)
-
setAriaGrabbedState
void setAriaGrabbedState(Element element, GrabbedValue value)
-
setAriaHaspopupProperty
void setAriaHaspopupProperty(Element element, boolean value)
-
setAriaHiddenState
void setAriaHiddenState(Element element, boolean value)
-
setAriaInvalidState
void setAriaInvalidState(Element element, InvalidValue value)
-
setAriaLabelProperty
void setAriaLabelProperty(Element element, java.lang.String value)
-
setAriaRelevantProperty
void setAriaRelevantProperty(Element element, RelevantValue... value)
-
setTabindexExtraAttribute
void setTabindexExtraAttribute(Element element, int value)
-
-