public class RMTextKeyProcessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
char |
keyChar |
int |
keyCode |
java.awt.event.KeyEvent |
keyEvent |
RMTextEditor |
textEditor |
Constructor and Description |
---|
RMTextKeyProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
consume()
Consumes the current key event.
|
boolean |
isAltDown()
Returns whether alt key is down.
|
boolean |
isCharDefined()
Returns whether key char is defined (not CHAR_UNDEFINED).
|
boolean |
isCommandDown()
Returns whether Command key is down.
|
boolean |
isControlDown()
Returns whether Control key is down.
|
boolean |
isKeyPressed()
Returns whether current event is KEY_PRESSED.
|
boolean |
isKeyReleased()
Returns whether current event is KEY_RELEASED.
|
boolean |
isKeyTyped()
Returns whether current event is KEY_TYPED.
|
boolean |
isShiftDown()
Returns whether Shift key is down.
|
boolean |
processKeyEvent(RMTextEditor aTextEditor,
java.awt.event.KeyEvent aKeyEvent)
Called from text editor to process a key event.
|
public RMTextEditor textEditor
public java.awt.event.KeyEvent keyEvent
public int keyCode
public char keyChar
public final boolean processKeyEvent(RMTextEditor aTextEditor, java.awt.event.KeyEvent aKeyEvent)
public final boolean isKeyPressed()
public final boolean isKeyReleased()
public final boolean isKeyTyped()
public final boolean isShiftDown()
public final boolean isCommandDown()
public final boolean isControlDown()
public final boolean isAltDown()
public final boolean isCharDefined()
public void consume()