public static final class WidgetAction.WidgetKeyEvent extends Object implements WidgetAction.WidgetEvent
Constructor and Description |
---|
WidgetKeyEvent(long id,
KeyEvent event)
Creates a key event.
|
Modifier and Type | Method and Description |
---|---|
long |
getEventID()
Returns an event id.
|
char |
getKeyChar() |
int |
getKeyCode() |
int |
getKeyLocation() |
int |
getModifiers() |
int |
getModifiersEx() |
long |
getWhen() |
boolean |
isActionKey() |
boolean |
isAltDown() |
boolean |
isAltGraphDown() |
boolean |
isControlDown() |
boolean |
isMetaDown() |
boolean |
isShiftDown() |
public WidgetKeyEvent(long id, KeyEvent event)
id
- the event idevent
- the Swing eventpublic long getEventID()
getEventID
in interface WidgetAction.WidgetEvent
public int getKeyCode()
KeyEvent
public char getKeyChar()
KeyEvent
public int getKeyLocation()
KeyEvent
public boolean isActionKey()
KeyEvent
public boolean isShiftDown()
KeyEvent
public boolean isControlDown()
KeyEvent
public boolean isMetaDown()
KeyEvent
public boolean isAltDown()
KeyEvent
public boolean isAltGraphDown()
KeyEvent
public long getWhen()
KeyEvent
public int getModifiers()
KeyEvent
public int getModifiersEx()
KeyEvent