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
Constructors
new KeyDownHandlerAdapter(EventHandlerAdapterCallback 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); }