public abstract class TextAreaInputHandler extends AbstractInputHandler<JEditBeanShellAction>
bindings, currentBindings, keyEventInterceptor, lastAction, lastActionCount, PREFIX_STR, readNextChar, REPEAT_COUNT_THRESHOLD, repeatCount, shortcutOn
Modifier | Constructor and Description |
---|---|
protected |
TextAreaInputHandler(TextArea textArea) |
Modifier and Type | Method and Description |
---|---|
protected abstract JEditBeanShellAction |
getAction(java.lang.String action) |
boolean |
handleKey(KeyEventTranslator.Key keyStroke,
boolean dryRun)
Handles the given keystroke.
|
void |
invokeAction(JEditBeanShellAction action)
Invokes the specified action, repeating and recording it as
necessary.
|
void |
invokeAction(java.lang.String action)
Invokes the specified action, repeating and recording it as
necessary.
|
protected void |
invokeReadNextChar(char ch) |
void |
processKeyEvent(java.awt.event.KeyEvent evt,
int from,
boolean global)
Forwards key events directly to the input handler.
|
protected void |
userInput(char ch) |
addKeyBinding, addKeyBinding, addKeyBinding, getKeyBinding, getKeyEventInterceptor, getLastActionCount, isPrefixActive, processKeyEventKeyStrokeHandling, removeAllKeyBindings, removeKeyBinding, resetLastActionCount, sendShortcutPrefixOff, setBindings, setCurrentBindings, setKeyEventInterceptor, toString
protected TextAreaInputHandler(TextArea textArea)
public void processKeyEvent(java.awt.event.KeyEvent evt, int from, boolean global)
processKeyEvent
in class AbstractInputHandler<JEditBeanShellAction>
evt
- the keyboard eventfrom
- the source of the event. Since this is the input handler of the textarea, it should always be 1global
- it is only true if the event comes from the DefaultKeyboardFocusManagerprotected abstract JEditBeanShellAction getAction(java.lang.String action)
public void invokeAction(java.lang.String action)
invokeAction
in class AbstractInputHandler<JEditBeanShellAction>
action
- The actionpublic void invokeAction(JEditBeanShellAction action)
invokeAction
in class AbstractInputHandler<JEditBeanShellAction>
action
- The actionpublic boolean handleKey(KeyEventTranslator.Key keyStroke, boolean dryRun)
handleKey
in class AbstractInputHandler<JEditBeanShellAction>
keyStroke
- The key strokedryRun
- only calculate the return value, do not have any other effectprotected void userInput(char ch)
protected void invokeReadNextChar(char ch)