public abstract class HandlesAllKeyEvents extends Object implements KeyDownHandler, KeyUpHandler, KeyPressHandler
Constructor and Description |
---|
HandlesAllKeyEvents()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static <H extends KeyDownHandler & KeyUpHandler & KeyPressHandler> |
addHandlers(HasAllKeyHandlers eventSource,
H reciever)
Convenience method used to handle all key events from an event source.
|
void |
addKeyHandlersTo(HasAllKeyHandlers source)
Convenience method to handle all key events from an event source.
|
onKeyDown
onKeyUp
onKeyPress
public static <H extends KeyDownHandler & KeyUpHandler & KeyPressHandler> void addHandlers(HasAllKeyHandlers eventSource, H reciever)
H
- receiver type, must implement all key handlerseventSource
- the event sourcereciever
- the receiver implementing all key handlerspublic final void addKeyHandlersTo(HasAllKeyHandlers source)
source
- the event sourceCopyright © 2018. All rights reserved.