KeyPressHandlerAdapter class
Handler interface for {@link KeyPressEvent} events.
class KeyPressHandlerAdapter extends EventHandlerAdapter implements KeyPressHandler { KeyPressHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback); /** * Called when KeyPressEvent is fired. * * @param event the {@link KeyPressEvent} that was fired */ void onKeyPress(KeyPressEvent event) { callback(event); } }
Extends
EventHandlerAdapter > KeyPressHandlerAdapter
Implements
Constructors
new KeyPressHandlerAdapter(EventHandlerAdapterCallback callback) #
Properties
EventHandlerAdapterCallback callback #
inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback
Methods
void onKeyPress(KeyPressEvent event) #
Called when KeyPressEvent is fired.
@param event the {@link KeyPressEvent} that was fired
void onKeyPress(KeyPressEvent event) { callback(event); }