public class TICKeyEventComponentForwarder extends AbstractEventComponentForwarder implements TICKeyListener
TICKeyEvent
s to a set of TICComponent
s.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, getComponents
public TICKeyEventComponentForwarder(java.util.Set<TICComponent> components)
public boolean keyPressed(TICKeyEvent event)
TICKeyListener
keyPressed
in interface TICKeyListener
event
- 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)
TICKeyListener
keyReleased
in interface TICKeyListener
event
- 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.)