Example usage for com.google.gwt.aria.client Roles getStatusRole

List of usage examples for com.google.gwt.aria.client Roles getStatusRole

Introduction

In this page you can find the example usage for com.google.gwt.aria.client Roles getStatusRole.

Prototype

public static StatusRole getStatusRole() 

Source Link

Usage

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);
}