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
class RoleImpl extends java.lang.Object implements Role
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
Constructors Constructor Description RoleImpl(java.lang.String roleName)
-
Method Summary
All Methods Instance Methods Concrete 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
public java.lang.String getAriaAtomicProperty(Element element)
Description copied from interface:RoleReturns the value of the aria-atomic attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaAtomicPropertyin interfaceRole
-
getAriaBusyState
public java.lang.String getAriaBusyState(Element element)
Description copied from interface:RoleReturns the value of the aria-busy attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaBusyStatein interfaceRole
-
getAriaControlsProperty
public java.lang.String getAriaControlsProperty(Element element)
Description copied from interface:RoleReturns the value of the aria-controls attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaControlsPropertyin interfaceRole
-
getAriaDescribedbyProperty
public java.lang.String getAriaDescribedbyProperty(Element element)
Description copied from interface:RoleReturns the value of the aria-describedby attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaDescribedbyPropertyin interfaceRole
-
getAriaDisabledState
public java.lang.String getAriaDisabledState(Element element)
Description copied from interface:RoleReturns the value of the aria-disabled attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaDisabledStatein interfaceRole
-
getAriaDropeffectProperty
public java.lang.String getAriaDropeffectProperty(Element element)
Description copied from interface:RoleReturns the value of the aria-dropeffect attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaDropeffectPropertyin interfaceRole
-
getAriaFlowtoProperty
public java.lang.String getAriaFlowtoProperty(Element element)
Description copied from interface:RoleReturns the value of the aria-flowto attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaFlowtoPropertyin interfaceRole
-
getAriaGrabbedState
public java.lang.String getAriaGrabbedState(Element element)
Description copied from interface:RoleReturns the value of the aria-grabbed attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaGrabbedStatein interfaceRole
-
getAriaHaspopupProperty
public java.lang.String getAriaHaspopupProperty(Element element)
Description copied from interface:RoleReturns the value of the aria-haspopup attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaHaspopupPropertyin interfaceRole
-
getAriaHiddenState
public java.lang.String getAriaHiddenState(Element element)
Description copied from interface:RoleReturns the value of the aria-hidden attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaHiddenStatein interfaceRole
-
getAriaInvalidState
public java.lang.String getAriaInvalidState(Element element)
Description copied from interface:RoleReturns the value of the aria-invalid attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaInvalidStatein interfaceRole
-
getAriaLabelledbyProperty
public java.lang.String getAriaLabelledbyProperty(Element element)
Description copied from interface:RoleReturns the value of the aria-labelledby attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaLabelledbyPropertyin interfaceRole
-
getAriaLabelProperty
public java.lang.String getAriaLabelProperty(Element element)
Description copied from interface:RoleReturns the value of the aria-label attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaLabelPropertyin interfaceRole
-
getAriaLiveProperty
public java.lang.String getAriaLiveProperty(Element element)
Description copied from interface:RoleReturns the value of the aria-live attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaLivePropertyin interfaceRole
-
getAriaOwnsProperty
public java.lang.String getAriaOwnsProperty(Element element)
Description copied from interface:RoleReturns the value of the aria-owns attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaOwnsPropertyin interfaceRole
-
getAriaRelevantProperty
public java.lang.String getAriaRelevantProperty(Element element)
Description copied from interface:RoleReturns the value of the aria-relevant attribute for theelementor "" if no such attribute is present.- Specified by:
getAriaRelevantPropertyin interfaceRole
-
getName
public java.lang.String getName()
Description copied from interface:RoleGets the ARIA 'role' attribute name as defined in the WAI-ARIA standard.- Specified by:
getNamein interfaceRole- See Also:
- Roles documentation
-
getTabindexExtraAttribute
public java.lang.String getTabindexExtraAttribute(Element element)
Description copied from interface:RoleReturns the value of the tabIndex attribute for theelementor "" if no such attribute is present.- Specified by:
getTabindexExtraAttributein interfaceRole
-
remove
public void remove(Element element)
Description copied from interface:RoleRemoves the 'role' attribute from theelement.- Specified by:
removein interfaceRole- See Also:
- Roles documentation
-
removeAriaAtomicProperty
public void removeAriaAtomicProperty(Element element)
Description copied from interface:RoleRemoves the aria-atomic attribute from theelement.- Specified by:
removeAriaAtomicPropertyin interfaceRole
-
removeAriaBusyState
public void removeAriaBusyState(Element element)
Description copied from interface:RoleRemoves the aria-busy attribute from theelement.- Specified by:
removeAriaBusyStatein interfaceRole
-
removeAriaControlsProperty
public void removeAriaControlsProperty(Element element)
Description copied from interface:RoleRemoves the aria-controls attribute from theelement.- Specified by:
removeAriaControlsPropertyin interfaceRole
-
removeAriaDescribedbyProperty
public void removeAriaDescribedbyProperty(Element element)
Description copied from interface:RoleRemoves the aria-describedby attribute from theelement.- Specified by:
removeAriaDescribedbyPropertyin interfaceRole
-
removeAriaDisabledState
public void removeAriaDisabledState(Element element)
Description copied from interface:RoleRemoves the aria-disabled attribute from theelement.- Specified by:
removeAriaDisabledStatein interfaceRole
-
removeAriaDropeffectProperty
public void removeAriaDropeffectProperty(Element element)
Description copied from interface:RoleRemoves the aria-dropeffect attribute from theelement.- Specified by:
removeAriaDropeffectPropertyin interfaceRole
-
removeAriaFlowtoProperty
public void removeAriaFlowtoProperty(Element element)
Description copied from interface:RoleRemoves the aria-flowto attribute from theelement.- Specified by:
removeAriaFlowtoPropertyin interfaceRole
-
removeAriaGrabbedState
public void removeAriaGrabbedState(Element element)
Description copied from interface:RoleRemoves the aria-grabbed attribute from theelement.- Specified by:
removeAriaGrabbedStatein interfaceRole
-
removeAriaHaspopupProperty
public void removeAriaHaspopupProperty(Element element)
Description copied from interface:RoleRemoves the aria-haspopup attribute from theelement.- Specified by:
removeAriaHaspopupPropertyin interfaceRole
-
removeAriaHiddenState
public void removeAriaHiddenState(Element element)
Description copied from interface:RoleRemoves the aria-hidden attribute from theelement.- Specified by:
removeAriaHiddenStatein interfaceRole
-
removeAriaInvalidState
public void removeAriaInvalidState(Element element)
Description copied from interface:RoleRemoves the aria-invalid attribute from theelement.- Specified by:
removeAriaInvalidStatein interfaceRole
-
removeAriaLabelledbyProperty
public void removeAriaLabelledbyProperty(Element element)
Description copied from interface:RoleRemoves the aria-labelledby attribute from theelement.- Specified by:
removeAriaLabelledbyPropertyin interfaceRole
-
removeAriaLabelProperty
public void removeAriaLabelProperty(Element element)
Description copied from interface:RoleRemoves the aria-label attribute from theelement.- Specified by:
removeAriaLabelPropertyin interfaceRole
-
removeAriaLiveProperty
public void removeAriaLiveProperty(Element element)
Description copied from interface:RoleRemoves the aria-live attribute from theelement.- Specified by:
removeAriaLivePropertyin interfaceRole
-
removeAriaOwnsProperty
public void removeAriaOwnsProperty(Element element)
Description copied from interface:RoleRemoves the aria-owns attribute from theelement.- Specified by:
removeAriaOwnsPropertyin interfaceRole
-
removeAriaRelevantProperty
public void removeAriaRelevantProperty(Element element)
Description copied from interface:RoleRemoves the aria-relevant attribute from theelement.- Specified by:
removeAriaRelevantPropertyin interfaceRole
-
removeTabindexExtraAttribute
public void removeTabindexExtraAttribute(Element element)
Description copied from interface:RoleRemoves the tabIndex attribute from theelement.- Specified by:
removeTabindexExtraAttributein interfaceRole
-
set
public void set(Element element)
Description copied from interface:RoleSets the 'role' attribute of the givenelementto the appropriate value for this role.- Specified by:
setin interfaceRole- See Also:
- Roles documentation
-
setAriaAtomicProperty
public void setAriaAtomicProperty(Element element, boolean value)
Description copied from interface:Role- Specified by:
setAriaAtomicPropertyin interfaceRole
-
setAriaBusyState
public void setAriaBusyState(Element element, boolean value)
Description copied from interface:Role- Specified by:
setAriaBusyStatein interfaceRole
-
setAriaControlsProperty
public void setAriaControlsProperty(Element element, Id... value)
Description copied from interface:Role- Specified by:
setAriaControlsPropertyin interfaceRole
-
setAriaDescribedbyProperty
public void setAriaDescribedbyProperty(Element element, Id... value)
Description copied from interface:Role- Specified by:
setAriaDescribedbyPropertyin interfaceRole
-
setAriaDisabledState
public void setAriaDisabledState(Element element, boolean value)
Description copied from interface:Role- Specified by:
setAriaDisabledStatein interfaceRole
-
setAriaDropeffectProperty
public void setAriaDropeffectProperty(Element element, DropeffectValue... value)
Description copied from interface:Role- Specified by:
setAriaDropeffectPropertyin interfaceRole
-
setAriaFlowtoProperty
public void setAriaFlowtoProperty(Element element, Id... value)
Description copied from interface:Role- Specified by:
setAriaFlowtoPropertyin interfaceRole
-
setAriaGrabbedState
public void setAriaGrabbedState(Element element, GrabbedValue value)
Description copied from interface:Role- Specified by:
setAriaGrabbedStatein interfaceRole
-
setAriaHaspopupProperty
public void setAriaHaspopupProperty(Element element, boolean value)
Description copied from interface:Role- Specified by:
setAriaHaspopupPropertyin interfaceRole
-
setAriaHiddenState
public void setAriaHiddenState(Element element, boolean value)
Description copied from interface:Role- Specified by:
setAriaHiddenStatein interfaceRole
-
setAriaInvalidState
public void setAriaInvalidState(Element element, InvalidValue value)
Description copied from interface:Role- Specified by:
setAriaInvalidStatein interfaceRole
-
setAriaLabelledbyProperty
public void setAriaLabelledbyProperty(Element element, Id... value)
Description copied from interface:Role- Specified by:
setAriaLabelledbyPropertyin interfaceRole
-
setAriaLabelProperty
public void setAriaLabelProperty(Element element, java.lang.String value)
Description copied from interface:Role- Specified by:
setAriaLabelPropertyin interfaceRole
-
setAriaLiveProperty
public void setAriaLiveProperty(Element element, LiveValue value)
Description copied from interface:Role- Specified by:
setAriaLivePropertyin interfaceRole
-
setAriaOwnsProperty
public void setAriaOwnsProperty(Element element, Id... value)
Description copied from interface:Role- Specified by:
setAriaOwnsPropertyin interfaceRole
-
setAriaRelevantProperty
public void setAriaRelevantProperty(Element element, RelevantValue... value)
Description copied from interface:Role- Specified by:
setAriaRelevantPropertyin interfaceRole
-
setTabindexExtraAttribute
public void setTabindexExtraAttribute(Element element, int value)
Description copied from interface:Role- Specified by:
setTabindexExtraAttributein interfaceRole
-
-