Package com.google.gwt.events.client

Examples of com.google.gwt.events.client.EventListener


   * @return a handle that may be used to remove this listener
   */
  public static EventListenerRemover addResizeListener(final Object source,
      JavaScriptObject nativeSource, final ResizeListener listener) {
    return Event.addEventListener(ResizeEvent.NAME, nativeSource,
        new EventListener() {
          public void handleEvent(Event event) {
            listener.onResize(new ResizeEvent(source, event));
          }
        });
  }
View Full Code Here


   * @return a handle that may be used to remove this listener
   */
  public static EventListenerRemover addKeyUpListener(final Object source,
      JavaScriptObject nativeSource, final KeyUpListener listener) {
    return Event.addEventListener(KeyUpEvent.NAME, nativeSource,
        new EventListener() {
          public void handleEvent(Event event) {
            listener.onKeyUp(new KeyUpEvent(source, event));
          }
        });
  }
View Full Code Here

   * @return a handle that may be used to remove this listener
   */
  public static EventListenerRemover addKeyPressListener(final Object source,
      JavaScriptObject nativeSource, final KeyPressListener listener) {
    return Event.addEventListener(KeyPressEvent.NAME, nativeSource,
        new EventListener() {
          public void handleEvent(Event event) {
            listener.onKeyPress(new KeyPressEvent(source, event));
          }
        });
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.events.client.EventListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.