List of usage examples for com.google.gwt.aria.client Roles getStatusRole
public static StatusRole getStatusRole()
From source file:com.vaadin.client.ui.VNotification.java
License:Apache License
private void setWaiAriaRole(NotificationTypeConfiguration styleSetup) { Roles.getAlertRole().set(getElement()); if (styleSetup != null && styleSetup.notificationRole != null) { if (NotificationRole.STATUS == styleSetup.notificationRole) { Roles.getStatusRole().set(getElement()); }// w w w. j a v a2 s . co m } }
From source file:org.unitime.timetable.gwt.client.aria.AriaStatus.java
License:Apache License
protected AriaStatus(Element element, boolean assertive) { setElement(element);/*from w w w . java2 s. c o m*/ setStyleName("unitime-AriaStatus"); Roles.getStatusRole().set(getElement()); Roles.getStatusRole().setAriaLiveProperty(getElement(), assertive ? LiveValue.ASSERTIVE : LiveValue.POLITE); Roles.getStatusRole().setAriaAtomicProperty(getElement(), true); }