|
The Java-Readline Library, Version 0.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--test.TestCompleter
This class is a sample custom completer. If you press the TAB-key at the readline prompt, you will see the two possible completions ("Linux" and "Tux"). Once you have entered a "L" or a "T", you will only see the respective single possible completion. In any other case, null is returned to signal that no (more) completions are available.
| Constructor Summary | |
TestCompleter()
Default constructor. |
|
| Method Summary | |
java.lang.String |
completer(java.lang.String t,
int s)
Return possible completion. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TestCompleter()
| Method Detail |
public java.lang.String completer(java.lang.String t,
int s)
completer in interface ReadlineCompletert - start of completion text. This is the text since the last
word break character.s - 0 or positive int. This state is zero on the first call
for a completion request and increments for each subsequent
call until the end of choices is reached.
null, if there
are no more choices.Readline.getWordBreakCharacters(),
TestCompleter
|
The Java-Readline Library, Version 0.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||