org.gjt.sp.jedit.input
Class TextAreaInputHandler

java.lang.Object
  extended by org.gjt.sp.jedit.input.AbstractInputHandler
      extended by org.gjt.sp.jedit.input.TextAreaInputHandler

public class TextAreaInputHandler
extends AbstractInputHandler


Field Summary
 
Fields inherited from class org.gjt.sp.jedit.input.AbstractInputHandler
keyEventInterceptor, lastActionCount, readNextChar, REPEAT_COUNT_THRESHOLD, repeatCount
 
Constructor Summary
TextAreaInputHandler(TextArea textArea)
           
 
Method Summary
 boolean handleKey(KeyEventTranslator.Key keyStroke, boolean dryRun)
          Handles the given keystroke.
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)
           
 
Methods inherited from class org.gjt.sp.jedit.input.AbstractInputHandler
getKeyEventInterceptor, getLastActionCount, isPrefixActive, processKeyEventKeyStrokeHandling, resetLastActionCount, setKeyEventInterceptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAreaInputHandler

public TextAreaInputHandler(TextArea textArea)
Method Detail

processKeyEvent

public void processKeyEvent(java.awt.event.KeyEvent evt,
                            int from,
                            boolean global)
Forwards key events directly to the input handler. This is slightly faster than using a KeyListener because some Swing overhead is avoided.

Specified by:
processKeyEvent in class AbstractInputHandler
Since:
4.3pre7

handleKey

public boolean handleKey(KeyEventTranslator.Key keyStroke,
                         boolean dryRun)
Handles the given keystroke.

Specified by:
handleKey in class AbstractInputHandler
Parameters:
keyStroke - The key stroke
dryRun - only calculate the return value, do not have any other effect
Returns:
true if the input could be handled.
Since:
jEdit 4.2pre5

userInput

protected void userInput(char ch)

invokeReadNextChar

protected void invokeReadNextChar(char ch)