ewe.ui
Class InputMethod
java.lang.Object
ewe.ui.InputMethod
- All Implemented Interfaces:
- TimerProc
- public class InputMethod
- extends Object
- implements TimerProc
|
Method Summary |
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(int id,
int howLate)
|
protected void |
timeConditionalKey(KeyEvent ke,
int keyTime)
|
keyTime
public int keyTime
cycledKeys
public Vector cycledKeys
conditionalKey
protected KeyEvent conditionalKey
lastKeyPress
protected int lastKeyPress
InputMethod
public InputMethod()
clearCycledKeys
public void clearCycledKeys()
addCycledKeys
public void addCycledKeys(int keyPress,
long[] keys)
addCycledKeys
public void addCycledKeys(int keyPress,
String keys)
modifyCycledKey
protected long modifyCycledKey(KeyEvent rxed,
int keyToSend,
int modifiers)
checkCycledKeys
protected KeyEvent checkCycledKeys(KeyEvent rxed)
handleKey
public KeyEvent handleKey(KeyEvent inputEvent)
- This is the only method called by an EditControl. It is usually called
by the EditControl before any other key handling during active input.
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.
handleKeyPress
protected KeyEvent handleKeyPress(KeyEvent inputEvent,
Control target)
- Override this to provide functionality.
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.
makeKeyEvent
protected KeyEvent makeKeyEvent(KeyEvent rxed,
int key,
int modifiers)
- Use this to create a new KeyEvent to return during handleKey.
getLastCycledKey
protected KeyEvent getLastCycledKey(KeyEvent rxed)
makeCycledKeyEvent
protected KeyEvent makeCycledKeyEvent(KeyEvent rxed,
int keyToReturn,
int modifiers)
timeConditionalKey
protected void timeConditionalKey(KeyEvent ke,
int keyTime)
cancelConditionalKey
protected void cancelConditionalKey()
ticked
public void ticked(int id,
int howLate)
- Specified by:
ticked in interface TimerProc
dispatch
protected void dispatch(KeyEvent ev)