public class TICKeyEventComponentForwarder extends AbstractEventComponentForwarder implements TICKeyListener
TICKeyEvents to a set of TICComponents.| Constructor and Description |
|---|
TICKeyEventComponentForwarder(java.util.Set<TICComponent> components) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
keyPressed(TICKeyEvent event)
This method is called when a key on the keyboard is pressed down.
|
boolean |
keyReleased(TICKeyEvent event)
This method is called when a key on the keyboard is released.
|
dispatchEvent, getComponentspublic TICKeyEventComponentForwarder(java.util.Set<TICComponent> components)
public boolean keyPressed(TICKeyEvent event)
TICKeyListenerkeyPressed in interface TICKeyListenerevent - the object containing information about the eventtrue if the event was consumed by this listener, false otherwise (See
TICComponent for information on how the return value is used.)public boolean keyReleased(TICKeyEvent event)
TICKeyListenerkeyReleased in interface TICKeyListenerevent - the object containing information about the eventtrue if the event was consumed by this listener, false otherwise (See
TICComponent for information on how the return value is used.)