public class G9KeyEventHolder extends G9Event
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASKsource| Constructor and Description |
|---|
G9KeyEventHolder(KeyEvent e)
Constructs a new G9KeyEventHolder instance.
|
| Modifier and Type | Method and Description |
|---|---|
KeyEvent |
getEvent()
Returns the event wrapped by this event holder.
|
void |
setConsume(boolean x)
Sets the consume flag, indicating if the event should be consumed
|
boolean |
shouldConsume()
Returns the consume flag
|
consume, getID, isConsumed, paramString, setSource, toStringgetSourcepublic G9KeyEventHolder(KeyEvent e)
e - the key event to wrap.public void setConsume(boolean x)
x - a boolean flag, true indicating that the event should be consumed.public boolean shouldConsume()
public KeyEvent getEvent()
Copyright © 2006–2018 Esito AS. All rights reserved.