public class Escalator.AriaGridHelper extends Object
The following WAI-ARIA attributes are added through this class:
Escalator.AriaGridRole (since 8.2)| Constructor and Description |
|---|
AriaGridHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRows(int numberOfRows)
Adds the given numberOfRows to allRows and calls
updateAriaRowCount(). |
void |
removeRows(int numberOfRows)
Removes the given numberOfRows from allRows and calls
updateAriaRowCount(). |
void |
updateAriaRowCount()
|
void |
updateRole(com.google.gwt.dom.client.Element element,
Escalator.AriaGridRole role)
Sets the
role attribute to the given element. |
public void addRows(int numberOfRows)
updateAriaRowCount().numberOfRows - number of rows that were added to the gridpublic void removeRows(int numberOfRows)
updateAriaRowCount().numberOfRows - number of rows that were removed from the gridpublic void updateAriaRowCount()
allRows if the grid is attached and
allRows > 0.public void updateRole(com.google.gwt.dom.client.Element element,
Escalator.AriaGridRole role)
role attribute to the given element.element - element that should get the role attributerole - role to be addedCopyright © 2018 Vaadin Ltd. All rights reserved.