Package org.eclipse.draw2d
Class KeyEvent
java.lang.Object
java.util.EventObject
org.eclipse.draw2d.InputEvent
org.eclipse.draw2d.KeyEvent
- All Implemented Interfaces:
Serializable
An event caused by the user interacting with the keyboard.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionchar
The character that was pressed.int
The keycode.Fields inherited from class org.eclipse.draw2d.InputEvent
ALT, ANY_BUTTON, BUTTON1, BUTTON2, BUTTON3, BUTTON4, BUTTON5, CONTROL, SHIFT
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionKeyEvent
(EventDispatcher dispatcher, IFigure source, KeyEvent ke) Constructs a new KeyEvent. -
Method Summary
Methods inherited from class org.eclipse.draw2d.InputEvent
consume, getState, isConsumed
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
character
public char characterThe character that was pressed.- See Also:
-
keycode
public int keycodeThe keycode.- See Also:
-
-
Constructor Details
-
KeyEvent
Constructs a new KeyEvent.- Parameters:
dispatcher
- the event dispatchersource
- the source of the eventke
- an SWT key event used to supply the statemask, keycode and character
-