public class JavaInputHandler extends PdeInputHandler
InputHandler.backspace, InputHandler.backspace_word, InputHandler.clipboard_copy, InputHandler.clipboard_cut, InputHandler.clipboard_paste, InputHandler.delete, InputHandler.delete_word, InputHandler.document_end, InputHandler.document_home, InputHandler.end, InputHandler.home, InputHandler.insert_break, InputHandler.insert_char, InputHandler.insert_tab, InputHandler.MacroRecorder, InputHandler.next_char, InputHandler.next_line, InputHandler.next_page, InputHandler.next_word, InputHandler.NonRecordable, InputHandler.NonRepeatable, InputHandler.overwrite, InputHandler.prev_char, InputHandler.prev_line, InputHandler.prev_page, InputHandler.prev_word, InputHandler.repeat, InputHandler.WrappereditorBACKSPACE, BACKSPACE_WORD, CLIPBOARD_COPY, CLIPBOARD_CUT, CLIPBOARD_PASTE, CONTEXT_AWARE_HOME_END, DELETE, DELETE_WORD, DOCUMENT_END, DOCUMENT_HOME, END, grabAction, HOME, INSERT_BREAK, INSERT_CHAR, INSERT_TAB, NEXT_CHAR, NEXT_LINE, NEXT_PAGE, NEXT_WORD, OVERWRITE, PREV_CHAR, PREV_LINE, PREV_PAGE, PREV_WORD, recorder, repeat, REPEAT, repeatCount, SELECT_DOC_END, SELECT_DOC_HOME, SELECT_END, SELECT_HOME, SELECT_NEXT_CHAR, SELECT_NEXT_LINE, SELECT_NEXT_PAGE, SELECT_NEXT_WORD, SELECT_PREV_CHAR, SELECT_PREV_LINE, SELECT_PREV_PAGE, SELECT_PREV_WORD, SMART_HOME_END_PROPERTY| Constructor and Description |
|---|
JavaInputHandler(Editor editor) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calcBraceIndent(int index,
char[] contents)
Walk back from 'index' until the brace that seems to be
the beginning of the current block, and return the number of
spaces found on that line.
|
protected int |
calcLineStart(int index,
char[] contents)
Return the index for the first character on this line.
|
protected int |
calcSpaceCount(int index,
char[] contents)
Calculate the number of spaces on this line.
|
boolean |
handlePressed(KeyEvent event)
Intercepts key pressed events for JEditTextArea.
|
boolean |
handleTyped(KeyEvent event) |
handleInputMethodCommit, isMnemonic, keyPressed, keyTypedaddDefaultKeyBindings, addKeyBinding, copy, parseKeyStroke, removeAllKeyBindings, removeKeyBindingexecuteAction, findWordEnd, findWordStart, getAction, getActionName, getActions, getMacroRecorder, getRepeatCount, getTextArea, grabNextKeyStroke, handleGrabAction, isRepeatEnabled, setMacroRecorder, setRepeatCount, setRepeatEnabledkeyReleasedpublic JavaInputHandler(Editor editor)
public boolean handlePressed(KeyEvent event)
handlePressed in class PdeInputHandlerpublic boolean handleTyped(KeyEvent event)
handleTyped in class PdeInputHandlerprotected int calcLineStart(int index,
char[] contents)
protected int calcSpaceCount(int index,
char[] contents)
protected int calcBraceIndent(int index,
char[] contents)
Copyright © 2001–2017 Processing Foundation. All rights reserved.