public static class

ListenerWrapper.WrappedKeyboardListener

extends ListenerWrapper<T>
implements KeyDownHandler KeyPressHandler KeyUpHandler
java.lang.Object
   ↳ com.google.gwt.user.client.BaseListenerWrapper<T>
     ↳ com.google.gwt.user.client.ui.ListenerWrapper<T>
       ↳ com.google.gwt.user.client.ui.ListenerWrapper.WrappedKeyboardListener

Class Overview

Wrapper for a KeyboardListener.

Summary

Public Methods
static ListenerWrapper.WrappedKeyboardListener add(HasAllKeyHandlers source, KeyboardListener listener)
This method is deprecated. will be removed in GWT 2.0 along with the listener classes
void onKeyDown(KeyDownEvent event)
Called when KeyDownEvent is fired.
void onKeyPress(KeyPressEvent event)
Called when KeyPressEvent is fired.
void onKeyUp(KeyUpEvent event)
Called when KeyUpEvent is fired.
static void remove(Widget eventSource, KeyboardListener listener)
This method is deprecated. will be removed in GWT 2.0 along with the listener classes
[Expand]
Inherited Methods
From class com.google.gwt.user.client.ui.ListenerWrapper
From class com.google.gwt.user.client.BaseListenerWrapper
From class java.lang.Object
From interface com.google.gwt.event.dom.client.KeyDownHandler
From interface com.google.gwt.event.dom.client.KeyPressHandler
From interface com.google.gwt.event.dom.client.KeyUpHandler

Public Methods

public static ListenerWrapper.WrappedKeyboardListener add (HasAllKeyHandlers source, KeyboardListener listener)

This method is deprecated.
will be removed in GWT 2.0 along with the listener classes

Adds the wrapped listener.

Parameters
source the event source
listener the listener
Returns
  • the wrapped listener

public void onKeyDown (KeyDownEvent event)

Called when KeyDownEvent is fired.

Parameters
event the KeyDownEvent that was fired

public void onKeyPress (KeyPressEvent event)

Called when KeyPressEvent is fired.

Parameters
event the KeyPressEvent that was fired

public void onKeyUp (KeyUpEvent event)

Called when KeyUpEvent is fired.

Parameters
event the KeyUpEvent that was fired

public static void remove (Widget eventSource, KeyboardListener listener)

This method is deprecated.
will be removed in GWT 2.0 along with the listener classes

Removes the wrapped listener.

Parameters
eventSource the event source from which to remove the wrapped listener
listener the listener to remove