Class RoleImpl

    • Constructor Detail

      • RoleImpl

        RoleImpl​(java.lang.String roleName)
    • Method Detail

      • getAriaAtomicProperty

        public java.lang.String getAriaAtomicProperty​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-atomic attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaAtomicProperty in interface Role
      • getAriaBusyState

        public java.lang.String getAriaBusyState​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-busy attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaBusyState in interface Role
      • getAriaControlsProperty

        public java.lang.String getAriaControlsProperty​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-controls attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaControlsProperty in interface Role
      • getAriaDescribedbyProperty

        public java.lang.String getAriaDescribedbyProperty​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-describedby attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaDescribedbyProperty in interface Role
      • getAriaDisabledState

        public java.lang.String getAriaDisabledState​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-disabled attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaDisabledState in interface Role
      • getAriaDropeffectProperty

        public java.lang.String getAriaDropeffectProperty​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-dropeffect attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaDropeffectProperty in interface Role
      • getAriaFlowtoProperty

        public java.lang.String getAriaFlowtoProperty​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-flowto attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaFlowtoProperty in interface Role
      • getAriaGrabbedState

        public java.lang.String getAriaGrabbedState​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-grabbed attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaGrabbedState in interface Role
      • getAriaHaspopupProperty

        public java.lang.String getAriaHaspopupProperty​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-haspopup attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaHaspopupProperty in interface Role
      • getAriaHiddenState

        public java.lang.String getAriaHiddenState​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-hidden attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaHiddenState in interface Role
      • getAriaInvalidState

        public java.lang.String getAriaInvalidState​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-invalid attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaInvalidState in interface Role
      • getAriaLabelledbyProperty

        public java.lang.String getAriaLabelledbyProperty​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-labelledby attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaLabelledbyProperty in interface Role
      • getAriaLabelProperty

        public java.lang.String getAriaLabelProperty​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-label attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaLabelProperty in interface Role
      • getAriaLiveProperty

        public java.lang.String getAriaLiveProperty​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-live attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaLiveProperty in interface Role
      • getAriaOwnsProperty

        public java.lang.String getAriaOwnsProperty​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-owns attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaOwnsProperty in interface Role
      • getAriaRelevantProperty

        public java.lang.String getAriaRelevantProperty​(Element element)
        Description copied from interface: Role
        Returns the value of the aria-relevant attribute for the element or "" if no such attribute is present.
        Specified by:
        getAriaRelevantProperty in interface Role
      • getName

        public java.lang.String getName()
        Description copied from interface: Role
        Gets the ARIA 'role' attribute name as defined in the WAI-ARIA standard.
        Specified by:
        getName in interface Role
        See Also:
        Roles documentation
      • getTabindexExtraAttribute

        public java.lang.String getTabindexExtraAttribute​(Element element)
        Description copied from interface: Role
        Returns the value of the tabIndex attribute for the element or "" if no such attribute is present.
        Specified by:
        getTabindexExtraAttribute in interface Role
      • remove

        public void remove​(Element element)
        Description copied from interface: Role
        Removes the 'role' attribute from the element.
        Specified by:
        remove in interface Role
        See Also:
        Roles documentation
      • removeAriaBusyState

        public void removeAriaBusyState​(Element element)
        Description copied from interface: Role
        Removes the aria-busy attribute from the element.
        Specified by:
        removeAriaBusyState in interface Role
      • set

        public void set​(Element element)
        Description copied from interface: Role
        Sets the 'role' attribute of the given element to the appropriate value for this role.
        Specified by:
        set in interface Role
        See Also:
        Roles documentation
      • setAriaAtomicProperty

        public void setAriaAtomicProperty​(Element element,
                                          boolean value)
        Description copied from interface: Role
        Sets the aria-atomic attribute for the element to the given value.
        Specified by:
        setAriaAtomicProperty in interface Role
      • setAriaBusyState

        public void setAriaBusyState​(Element element,
                                     boolean value)
        Description copied from interface: Role
        Sets the aria-busy attribute for the element to the given value.
        Specified by:
        setAriaBusyState in interface Role
      • setAriaDisabledState

        public void setAriaDisabledState​(Element element,
                                         boolean value)
        Description copied from interface: Role
        Sets the aria-disabled attribute for the element to the given value.
        Specified by:
        setAriaDisabledState in interface Role
      • setAriaFlowtoProperty

        public void setAriaFlowtoProperty​(Element element,
                                          Id... value)
        Description copied from interface: Role
        Sets the aria-flowto attribute for the element to the given value.
        Specified by:
        setAriaFlowtoProperty in interface Role
      • setAriaHaspopupProperty

        public void setAriaHaspopupProperty​(Element element,
                                            boolean value)
        Description copied from interface: Role
        Sets the aria-haspopup attribute for the element to the given value.
        Specified by:
        setAriaHaspopupProperty in interface Role
      • setAriaHiddenState

        public void setAriaHiddenState​(Element element,
                                       boolean value)
        Description copied from interface: Role
        Sets the aria-hidden attribute for the element to the given value.
        Specified by:
        setAriaHiddenState in interface Role
      • setAriaLabelProperty

        public void setAriaLabelProperty​(Element element,
                                         java.lang.String value)
        Description copied from interface: Role
        Sets the aria-label attribute for the element to the given value.
        Specified by:
        setAriaLabelProperty in interface Role
      • setAriaOwnsProperty

        public void setAriaOwnsProperty​(Element element,
                                        Id... value)
        Description copied from interface: Role
        Sets the aria-owns attribute for the element to the given value.
        Specified by:
        setAriaOwnsProperty in interface Role
      • setTabindexExtraAttribute

        public void setTabindexExtraAttribute​(Element element,
                                              int value)
        Description copied from interface: Role
        Sets the tabIndex attribute for the element to the given value.
        Specified by:
        setTabindexExtraAttribute in interface Role