API Reference 0.3.24dart_web_toolkit_eventKeyDownHandlerAdapter

KeyDownHandlerAdapter class

Handler interface for {@link KeyDownEvent} events.

class KeyDownHandlerAdapter extends EventHandlerAdapter implements KeyDownHandler {

 KeyDownHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

 /**
  * Called when {@link KeyDownEvent} is fired.
  *
  * @param event the {@link KeyDownEvent} that was fired
  */
 void onKeyDown(KeyDownEvent event) {
   callback(event);
 }
}

Extends

EventHandlerAdapter > KeyDownHandlerAdapter

Implements

KeyDownHandler

Constructors

new KeyDownHandlerAdapter(EventHandlerAdapterCallback callback) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
KeyDownHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

Properties

EventHandlerAdapterCallback callback #

inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback

Methods

void onKeyDown(KeyDownEvent event) #

Called when {@link KeyDownEvent} is fired.

@param event the {@link KeyDownEvent} that was fired

void onKeyDown(KeyDownEvent event) {
 callback(event);
}