Modifier and Type | Field and Description |
---|---|
protected KeyEvent |
conditionalKey |
Vector |
cycledKeys |
int |
keyTime |
protected int |
lastKeyPress |
Constructor and Description |
---|
InputMethod() |
Modifier and Type | Method and Description |
---|---|
void |
addCycledKeys(int keyPress,
long[] keys) |
void |
addCycledKeys(int keyPress,
String keys) |
protected void |
cancelConditionalKey() |
protected KeyEvent |
checkCycledKeys(KeyEvent rxed) |
void |
clearCycledKeys() |
protected void |
dispatch(KeyEvent ev) |
protected KeyEvent |
getLastCycledKey(KeyEvent rxed) |
KeyEvent |
handleKey(KeyEvent inputEvent)
This is the only method called by an EditControl.
|
protected KeyEvent |
handleKeyPress(KeyEvent inputEvent,
Control target)
Override this to provide functionality.
|
protected KeyEvent |
makeCycledKeyEvent(KeyEvent rxed,
int keyToReturn,
int modifiers) |
protected KeyEvent |
makeKeyEvent(KeyEvent rxed,
int key,
int modifiers)
Use this to create a new KeyEvent to return during handleKey.
|
protected long |
modifyCycledKey(KeyEvent rxed,
int keyToSend,
int modifiers) |
void |
ticked(Object id,
long elapsed) |
protected void |
timeConditionalKey(KeyEvent ke,
int keyTime) |
public int keyTime
public Vector cycledKeys
protected KeyEvent conditionalKey
protected int lastKeyPress
public void clearCycledKeys()
public void addCycledKeys(int keyPress, long[] keys)
public void addCycledKeys(int keyPress, String keys)
protected long modifyCycledKey(KeyEvent rxed, int keyToSend, int modifiers)
public KeyEvent handleKey(KeyEvent inputEvent)
If this method wishes to modify the key event in some way, it must return a new key event. If it returns null then the EditControl will handle the original KeyEvent as normal.
protected KeyEvent handleKeyPress(KeyEvent inputEvent, Control target)
If this method wishes to modify the key event in some way, it must return a new key event. If it returns null then the EditControl will handle the original KeyEvent as normal.
protected KeyEvent makeKeyEvent(KeyEvent rxed, int key, int modifiers)
protected KeyEvent makeCycledKeyEvent(KeyEvent rxed, int keyToReturn, int modifiers)
protected void timeConditionalKey(KeyEvent ke, int keyTime)
protected void cancelConditionalKey()
protected void dispatch(KeyEvent ev)