List of usage examples for com.google.gwt.aria.client Roles getAlertdialogRole
public static AlertdialogRole getAlertdialogRole()
From source file:com.vaadin.client.ui.VWindow.java
License:Apache License
/** * Sets the WAI-ARIA role the window./* ww w .j av a 2s .c om*/ * * This role defines how an assistive device handles a window. Available * roles are alertdialog and dialog (@see <a * href="http://www.w3.org/TR/2011/CR-wai-aria-20110118/roles">Roles * Model</a>). * * The default role is dialog. * * @param role * WAI-ARIA role to set for the window */ public void setWaiAriaRole(WindowRole role) { if (role == WindowRole.ALERTDIALOG) { Roles.getAlertdialogRole().set(getElement()); } else { Roles.getDialogRole().set(getElement()); } }