Class Escalator.AriaGridHelper

  • Enclosing class:
    Escalator

    public class Escalator.AriaGridHelper
    extends Object
    Helper class that helps to implement the WAI-ARIA functionality for the Grid and TreeGrid component.

    The following WAI-ARIA attributes are added through this class:

    Since:
    8.2
    • Constructor Detail

      • AriaGridHelper

        public AriaGridHelper()
    • Method Detail

      • addRows

        public void addRows​(int numberOfRows)
        Adds the given numberOfRows to allRows and calls updateAriaRowCount().
        Parameters:
        numberOfRows - number of rows that were added to the grid
        Since:
        8.2
      • removeRows

        public void removeRows​(int numberOfRows)
        Removes the given numberOfRows from allRows and calls updateAriaRowCount().
        Parameters:
        numberOfRows - number of rows that were removed from the grid
        Since:
        8.2
      • updateAriaRowCount

        public void updateAriaRowCount()
        Sets the aria-rowcount attribute with the current value of allRows if the grid is attached and allRows > 0.
        Since:
        8.2
      • updateRole

        public void updateRole​(com.google.gwt.dom.client.Element element,
                               Escalator.AriaGridRole role)
        Sets the role attribute to the given element.
        Parameters:
        element - element that should get the role attribute
        role - role to be added
        Since:
        8.2