|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gjt.sp.jedit.input.AbstractInputHandler<EditAction>
org.gjt.sp.jedit.gui.InputHandler
org.gjt.sp.jedit.gui.DefaultInputHandler
public class DefaultInputHandler
The default input handler. It maps sequences of keystrokes into actions and inserts key typed events into the text area.
Field Summary |
---|
Fields inherited from class org.gjt.sp.jedit.gui.InputHandler |
---|
view |
Fields inherited from class org.gjt.sp.jedit.input.AbstractInputHandler |
---|
bindings, currentBindings, keyEventInterceptor, lastAction, lastActionCount, PREFIX_STR, readNextChar, REPEAT_COUNT_THRESHOLD, repeatCount, shortcutOn |
Constructor Summary | |
---|---|
DefaultInputHandler(View view)
Creates a new input handler with no key bindings defined. |
|
DefaultInputHandler(View view,
DefaultInputHandler copy)
Creates a new input handler with the same set of key bindings as the one specified. |
|
DefaultInputHandler(View view,
java.util.Hashtable bindings)
Creates a new input handler with no key bindings defined. |
Method Summary | |
---|---|
static java.lang.String |
getModifierString(java.awt.event.InputEvent evt)
Returns a string containing symbolic modifier names set in the specified event. |
static char |
getSymbolicModifierName(int mod)
Returns a the symbolic modifier name for the specified Java modifier flag. |
boolean |
handleKey(KeyEventTranslator.Key keyStroke,
boolean dryRun)
Handles the given keystroke. |
boolean |
isPrefixActive()
Returns if a prefix key has been pressed. |
void |
setCurrentBindings(java.util.Hashtable bindings)
|
Methods inherited from class org.gjt.sp.jedit.gui.InputHandler |
---|
getLastAction, getRepeatCount, handleKey, invokeAction, invokeAction, invokeLastAction, invokeReadNextChar, processKeyEvent, readNextChar, readNextChar, setRepeatCount, userInput |
Methods inherited from class org.gjt.sp.jedit.input.AbstractInputHandler |
---|
addKeyBinding, addKeyBinding, addKeyBinding, getKeyBinding, getKeyEventInterceptor, getLastActionCount, processKeyEventKeyStrokeHandling, removeAllKeyBindings, removeKeyBinding, resetLastActionCount, sendShortcutPrefixOff, setBindings, setKeyEventInterceptor, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultInputHandler(View view, java.util.Hashtable bindings)
view
- The viewbindings
- An explicitly-specified set of key bindings,
must not be null.public DefaultInputHandler(View view)
view
- The viewpublic DefaultInputHandler(View view, DefaultInputHandler copy)
copy
- The input handler to copy key bindings fromview
- The viewMethod Detail |
---|
public boolean isPrefixActive()
isPrefixActive
in class AbstractInputHandler<EditAction>
public void setCurrentBindings(java.util.Hashtable bindings)
setCurrentBindings
in class AbstractInputHandler<EditAction>
public boolean handleKey(KeyEventTranslator.Key keyStroke, boolean dryRun)
handleKey
in class AbstractInputHandler<EditAction>
keyStroke
- The key strokedryRun
- only calculate the return value, do not have any other effect
public static char getSymbolicModifierName(int mod)
mod
- A modifier constant from InputEvent
public static java.lang.String getModifierString(java.awt.event.InputEvent evt)
evt
- The event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |