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

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

Introduction

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

Prototype

public static NoteRole getNoteRole() 

Source Link

Usage

From source file:com.vaadin.client.ui.VWindow.java

License:Apache License

/**
 * Sets the message that is provided to users of assistive devices when the
 * user reaches the top of the window when leaving a window with the tab key
 * is prevented./*from  ww  w  .  j  ava2  s  . c  o  m*/
 * <p>
 * This message is not visible on the screen.
 * 
 * @param topMessage
 *            String provided when the user navigates with Shift-Tab keys to
 *            the top of the window
 */
public void setTabStopTopAssistiveText(String topMessage) {
    Roles.getNoteRole().setAriaLabelProperty(topTabStop, topMessage);
}

From source file:com.vaadin.client.ui.VWindow.java

License:Apache License

/**
 * Sets the message that is provided to users of assistive devices when the
 * user reaches the bottom of the window when leaving a window with the tab
 * key is prevented./*from   w w w . j  a  v  a2s.  c  om*/
 * <p>
 * This message is not visible on the screen.
 * 
 * @param bottomMessage
 *            String provided when the user navigates with the Tab key to
 *            the bottom of the window
 */
public void setTabStopBottomAssistiveText(String bottomMessage) {
    Roles.getNoteRole().setAriaLabelProperty(bottomTabStop, bottomMessage);
}

From source file:com.vaadin.client.ui.VWindow.java

License:Apache License

/**
 * Gets the message that is provided to users of assistive devices when the
 * user reaches the top of the window when leaving a window with the tab key
 * is prevented.//w  w  w .ja va 2s.  c om
 * 
 * @return the top message
 */
public String getTabStopTopAssistiveText() {
    return Roles.getNoteRole().getAriaLabelProperty(topTabStop);
}

From source file:com.vaadin.client.ui.VWindow.java

License:Apache License

/**
 * Gets the message that is provided to users of assistive devices when the
 * user reaches the bottom of the window when leaving a window with the tab
 * key is prevented.//from w w w  .  jav a2 s  .co  m
 * 
 * @return the bottom message
 */
public String getTabStopBottomAssistiveText() {
    return Roles.getNoteRole().getAriaLabelProperty(bottomTabStop);
}