|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JEditorPane
javax.swing.JTextPane
org.rosuda.JGR.toolkit.SyntaxArea
org.rosuda.JGR.toolkit.SyntaxInput
public class SyntaxInput
SyntaxInput - is responsible for codecompletion and helpagent
| Nested Class Summary | |
|---|---|
class |
SyntaxInput.CodeCompleteMultiple
CodeCompleteMultiple - implementation of a panel showing a list of completion-possibilities. |
| Nested classes/interfaces inherited from class javax.swing.JEditorPane |
|---|
JEditorPane.AccessibleJEditorPane, JEditorPane.AccessibleJEditorPaneHTML, JEditorPane.JEditorPaneAccessibleHypertextSupport |
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.KeyBinding |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
SyntaxInput.CodeCompleteMultiple |
mComplete
SyntaxInput.CodeCompleteMultiple |
| Fields inherited from class javax.swing.JEditorPane |
|---|
HONOR_DISPLAY_PROPERTIES, W3C_LENGTH_UNITS |
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
SyntaxInput(String parent,
boolean disableEnter)
|
|
| Method Summary | |
|---|---|
void |
commentSelection(boolean comment)
Comment/ Uncomment selected Code |
void |
keyPressed(KeyEvent ke)
keyPressed: handle key event: take care about emacs-keybindings. |
void |
keyReleased(KeyEvent ke)
keyReleased: handle key event: ESC hide tooltips, TAB show completions and/ or complete. |
void |
keyTyped(KeyEvent ke)
keyTyped: handle key event. |
protected boolean |
processKeyBinding(KeyStroke ks,
KeyEvent e,
int condition,
boolean pressed)
|
void |
shiftSelection(int direction)
Indent/ Reindent selected lines |
void |
showCompletions(String[] result)
Show possibilities for current part of command. |
| Methods inherited from class org.rosuda.JGR.toolkit.SyntaxArea |
|---|
append, append, caretUpdate, copy, cut, dragEnter, dragExit, dragOver, drop, dropActionChanged, getLineCount, getLineEndOffset, getLineOfOffset, getLineStartOffset, getScrollableTracksViewportWidth, getText, getText, getWordWrap, highlight, highlightParanthesisBackward, highlightParanthesisForward, insertAt, isEscaped, lastChar, paste, removeHighlights, setBounds, setText, setWordWrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public SyntaxInput.CodeCompleteMultiple mComplete
SyntaxInput.CodeCompleteMultiple
| Constructor Detail |
|---|
public SyntaxInput(String parent,
boolean disableEnter)
| Method Detail |
|---|
public void commentSelection(boolean comment)
throws BadLocationException
comment - remove comment string or add
BadLocationException
public void shiftSelection(int direction)
throws BadLocationException
direction - -1 for left and 1 for right indentation
BadLocationExceptionpublic void showCompletions(String[] result)
result - possibilities for completion.public void keyTyped(KeyEvent ke)
keyTyped in interface KeyListenerpublic void keyPressed(KeyEvent ke)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent ke)
keyReleased in interface KeyListener
protected boolean processKeyBinding(KeyStroke ks,
KeyEvent e,
int condition,
boolean pressed)
processKeyBinding in class JComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||