Interface OptionRole

All Superinterfaces:
InputRole, Role, WidgetRole
All Known Subinterfaces:
MenuitemradioRole, RadioRole, TreeitemRole
All Known Implementing Classes:
MenuitemradioRoleImpl, OptionRoleImpl, RadioRoleImpl, TreeitemRoleImpl

public interface OptionRole extends InputRole
A type that represents the option role in the ARIA specification.
See Also:
  • Method Details

    • getAriaCheckedState

      String getAriaCheckedState(Element element)
      Returns the value of the aria-checked attribute for the element or "" if no such attribute is present.
    • getAriaPosinsetProperty

      String getAriaPosinsetProperty(Element element)
      Returns the value of the aria-posinset attribute for the element or "" if no such attribute is present.
    • getAriaSelectedState

      String getAriaSelectedState(Element element)
      Returns the value of the aria-selected attribute for the element or "" if no such attribute is present.
    • getAriaSetsizeProperty

      String getAriaSetsizeProperty(Element element)
      Returns the value of the aria-setsize attribute for the element or "" if no such attribute is present.
    • removeAriaCheckedState

      void removeAriaCheckedState(Element element)
      Removes the aria-checked attribute from the element.
    • removeAriaPosinsetProperty

      void removeAriaPosinsetProperty(Element element)
      Removes the aria-posinset attribute from the element.
    • removeAriaSelectedState

      void removeAriaSelectedState(Element element)
      Removes the aria-selected attribute from the element.
    • removeAriaSetsizeProperty

      void removeAriaSetsizeProperty(Element element)
      Removes the aria-setsize attribute from the element.
    • setAriaCheckedState

      void setAriaCheckedState(Element element, CheckedValue value)
      Sets the aria-checked attribute for the element to the given value.
    • setAriaPosinsetProperty

      void setAriaPosinsetProperty(Element element, int value)
      Sets the aria-posinset attribute for the element to the given value.
    • setAriaSelectedState

      void setAriaSelectedState(Element element, SelectedValue value)
      Sets the aria-selected attribute for the element to the given value.
    • setAriaSetsizeProperty

      void setAriaSetsizeProperty(Element element, int value)
      Sets the aria-setsize attribute for the element to the given value.