Example usage for com.google.gwt.user.client.ui KeyboardListenerCollection KeyboardListenerCollection

List of usage examples for com.google.gwt.user.client.ui KeyboardListenerCollection KeyboardListenerCollection

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui KeyboardListenerCollection KeyboardListenerCollection.

Prototype

KeyboardListenerCollection

Source Link

Usage

From source file:com.apress.progwt.client.college.gui.ext.FocusPanelExt.java

License:Apache License

public void addKeyboardListener(KeyboardListener listener) {
    if (keyboardListeners == null) {
        keyboardListeners = new KeyboardListenerCollection();
    }/*  w w w  . jav  a 2  s . c om*/
    keyboardListeners.add(listener);
}

From source file:fr.fg.client.openjwt.ui.JSTextField.java

License:Open Source License

public void addKeyboardListener(KeyboardListener listener) {
    if (keyboardListeners == null) {
        keyboardListeners = new KeyboardListenerCollection();
        DOM.sinkEvents(getSubElementById("text"), Event.KEYEVENTS);
    }//from w w w. j  a v a2s.c  o  m
    keyboardListeners.add(listener);
}