|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViCmdEntry
This is used by vi to get command line input. An LRU history of commands should be maintained, though this history is transparent. When multiple objects are constructed, each has its own history. When active, a focus listener may be set up on the parent to keep grabing focus until the entry is stopped.
The command
entry widget is responsible for adding user keystrokes to the recorded
input by calling com.raelity.tools.vi.GetChar#userInput(String)
.
The user input should not include any initialText. If the user changes
the initialText during entry, and recording is going on, results are
undefined.
Field Summary | |
---|---|
static int |
COLON_ENTRY
|
static int |
SEARCH_ENTRY
|
Method Summary | |
---|---|
void |
activate(String mode,
ViTextView parent)
Start command entry. |
void |
activate(String mode,
ViTextView parent,
String initialText,
boolean passThru)
Start command entry. |
void |
addActionListener(ActionListener l)
When command entry is complete, this listener is invoked. |
void |
append(char c)
This method is used to append characters to the command line. |
void |
cancel()
Stop command entry. |
String |
getCommand()
This is used to retrieve the command that was entered. |
JTextComponent |
getTextComponent()
Retrieve the component used for the data entry. |
void |
removeActionListener(ActionListener l)
|
Field Detail |
---|
static final int SEARCH_ENTRY
static final int COLON_ENTRY
Method Detail |
---|
void activate(String mode, ViTextView parent)
void activate(String mode, ViTextView parent, String initialText, boolean passThru)
parent
- component associated with the entryinitialText
- text widget starts out with this textpassThru
- when true, fire action with initialText as the commandString getCommand()
void cancel()
void append(char c)
JTextComponent getTextComponent()
void addActionListener(ActionListener l) throws TooManyListenersException
TooManyListenersException
void removeActionListener(ActionListener l)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |