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

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

Introduction

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

Prototype

public static GridRole getGridRole() 

Source Link

Usage

From source file:com.example.test.client.VMultiSelectCalendarWidget.java

License:Apache License

public VMultiSelectCalendarWidget() {
    getElement().setId(DOM.createUniqueId());
    setStyleName(STYLE_PRIMARY + "-calendarpanel");
    Roles.getGridRole().set(getElement());

    /*//from w w  w. j a va  2  s  .c o  m
     * Firefox auto-repeat works correctly only if we use a key press handler, other browsers handle it correctly
     * when using a key down handler
     */
    if (BrowserInfo.get().isGecko()) {
        addKeyPressHandler(this);
    } else {
        addKeyDownHandler(this);
    }
    addFocusHandler(this);
    addBlurHandler(this);
}

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

License:Apache License

public VAbstractCalendarPanel() {
    getElement().setId(DOM.createUniqueId());
    setStyleName(VDateField.CLASSNAME + "-calendarpanel");
    Roles.getGridRole().set(getElement());

    /*/*w  ww  . ja  v a 2 s  .co m*/
     * Firefox auto-repeat works correctly only if we use a key press
     * handler, other browsers handle it correctly when using a key down
     * handler
     */
    if (BrowserInfo.get().isGecko()) {
        addKeyPressHandler(this);
    } else {
        addKeyDownHandler(this);
    }
    addFocusHandler(this);
    addBlurHandler(this);
}

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

License:Apache License

public VCalendarPanel() {
    getElement().setId(DOM.createUniqueId());
    setStyleName(VDateField.CLASSNAME + "-calendarpanel");
    Roles.getGridRole().set(getElement());

    /*/*from ww  w  . ja va2 s.c  om*/
     * Firefox auto-repeat works correctly only if we use a key press
     * handler, other browsers handle it correctly when using a key down
     * handler
     */
    if (BrowserInfo.get().isGecko()) {
        addKeyPressHandler(this);
    } else {
        addKeyDownHandler(this);
    }
    addFocusHandler(this);
    addBlurHandler(this);
}

From source file:org.unitime.timetable.gwt.client.widgets.UniTimeTable.java

License:Apache License

public UniTimeTable() {
    setCellPadding(2);/*from  w w  w .ja v  a  2  s . c o  m*/
    setCellSpacing(0);
    sinkEvents(Event.ONMOUSEOVER);
    sinkEvents(Event.ONMOUSEOUT);
    sinkEvents(Event.ONCLICK);
    sinkEvents(Event.ONKEYDOWN);
    setStylePrimaryName("unitime-MainTable");
    iHintPanel = new PopupPanel();
    iHintPanel.setStyleName("unitime-PopupHint");
    Roles.getGridRole().set(getElement());
}

From source file:org.unitime.timetable.gwt.client.widgets.WebTable.java

License:Apache License

public WebTable() {
    iTable = new RowSelectingFlexTable();
    iTable.setCellPadding(2);/*from   ww w  . ja  va  2 s  .co m*/
    iTable.setCellSpacing(0);
    iTable.setStyleName("unitime-WebTable");
    initWidget(iTable);
    Roles.getGridRole().set(iTable.getElement());
}