ti.swing.console
Interface ConsoleTabCompleter
- public interface ConsoleTabCompleter
To add tab completion, the ConsoleKeyListener
uses an instance of
this class to implement tab completion.
- Author:
- Rob Clark
Method Summary |
java.lang.String |
complete(java.lang.String buf)
Called to find the string that will complete the current buffer. |
complete
public java.lang.String complete(java.lang.String buf)
- Called to find the string that will complete the current buffer. If no
string will complete, return a zero length string. If multiple strings
will complete, return the common prefix of those strings.
- Parameters:
buf
- the current buffer, ie. all the characters typed since the
last >EOL<
- Returns:
- the completing string