API Reference 0.3.24dart_web_toolkit_eventKeyUpHandlerAdapter

KeyUpHandlerAdapter class

Handler interface for {@link KeyUpEvent} events.

class KeyUpHandlerAdapter extends EventHandlerAdapter implements KeyUpHandler {

 KeyUpHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

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

Extends

EventHandlerAdapter > KeyUpHandlerAdapter

Implements

KeyUpHandler

Constructors

new KeyUpHandlerAdapter(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
KeyUpHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

Properties

EventHandlerAdapterCallback callback #

inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback

Methods

void onKeyUp(KeyUpEvent event) #

Called when KeyUpEvent is fired.

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

void onKeyUp(KeyUpEvent event) {
 callback(event);
}