API Reference 0.3.24dart_web_toolkit_eventHasAllKeyHandlers

HasAllKeyHandlers abstract class

Convenience interface used to implement all key handlers at once.

WARNING, PLEASE READ: In the unlikely event that more key handler subtypes are added to GWT, this interface will be expanded, so only implement this interface if you wish to have your widget break if a new key event type is introduced.

abstract class HasAllKeyHandlers implements HasKeyUpHandlers,
   HasKeyDownHandlers, HasKeyPressHandlers {

}

Subclasses

FocusPanel, FocusWidget, Tab, Tree

Implements

HasKeyPressHandlers, HasKeyDownHandlers, HasKeyUpHandlers

Methods

abstract HandlerRegistration addKeyDownHandler(KeyDownHandler handler) #

inherited from HasKeyDownHandlers

Adds a {@link KeyDownEvent} handler.

@param handler the key down handler @return {@link HandlerRegistration} used to remove this handler

abstract HandlerRegistration addKeyPressHandler(KeyPressHandler handler) #

inherited from HasKeyPressHandlers

Adds a {@link KeyPressEvent} handler.

@param handler the key press handler @return {@link HandlerRegistration} used to remove this handler

abstract HandlerRegistration addKeyUpHandler(KeyUpHandler handler) #

inherited from HasKeyUpHandlers

Adds a {@link KeyUpEvent} handler.

@param handler the key up handler @return {@link HandlerRegistration} used to remove this handler

abstract void fireEvent(DwtEvent event) #

inherited from HasHandlers

Fires the given event to the handlers listening to the event's type.

Any exceptions thrown by handlers will be bundled into a UmbrellaException and then re-thrown after all handlers have completed. An exception thrown by a handler will not prevent other handlers from executing.

@param event the event