|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gjt.sp.jedit.input.AbstractInputHandler
public abstract class AbstractInputHandler
Field Summary | |
---|---|
protected java.awt.event.KeyListener |
keyEventInterceptor
This listener will receive keyboard events if it is not null. |
protected int |
lastActionCount
|
protected java.lang.String |
readNextChar
|
protected static int |
REPEAT_COUNT_THRESHOLD
|
protected int |
repeatCount
|
Constructor Summary | |
---|---|
AbstractInputHandler()
|
Method Summary | |
---|---|
java.awt.event.KeyListener |
getKeyEventInterceptor()
|
int |
getLastActionCount()
Returns the number of times the last action was executed. |
abstract boolean |
handleKey(KeyEventTranslator.Key keyStroke,
boolean dryRun)
Handles a keystroke. |
boolean |
isPrefixActive()
Returns if a prefix key has been pressed. |
abstract void |
processKeyEvent(java.awt.event.KeyEvent evt,
int from,
boolean global)
|
protected void |
processKeyEventKeyStrokeHandling(java.awt.event.KeyEvent evt,
int from,
java.lang.String mode,
boolean global)
|
void |
resetLastActionCount()
Resets the last action count. |
void |
setKeyEventInterceptor(java.awt.event.KeyListener keyEventInterceptor)
Sets the listener that will handle all key events in this view. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int lastActionCount
protected java.awt.event.KeyListener keyEventInterceptor
protected java.lang.String readNextChar
protected int repeatCount
protected static final int REPEAT_COUNT_THRESHOLD
Constructor Detail |
---|
public AbstractInputHandler()
Method Detail |
---|
public int getLastActionCount()
public void resetLastActionCount()
public java.awt.event.KeyListener getKeyEventInterceptor()
public void setKeyEventInterceptor(java.awt.event.KeyListener keyEventInterceptor)
keyEventInterceptor
- the KeyListener that will receive the eventspublic boolean isPrefixActive()
public abstract boolean handleKey(KeyEventTranslator.Key keyStroke, boolean dryRun)
keyStroke
- The key stroke.dryRun
- only calculate the return value, do not have any other effect
public abstract void processKeyEvent(java.awt.event.KeyEvent evt, int from, boolean global)
protected void processKeyEventKeyStrokeHandling(java.awt.event.KeyEvent evt, int from, java.lang.String mode, boolean global)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |