public final class AutoCompleter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ComponentAdapter |
componentListener |
protected String |
lastTextUpdate |
protected JWindow |
popupWindow |
protected JTextComponent |
textComponent |
| Constructor and Description |
|---|
AutoCompleter(JTextComponent tc,
AutoCompletionMatcher matcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
hide popup
|
protected void |
completeWithPopupSelection() |
protected void |
createPopupWindow() |
protected List<String> |
getMatches() |
protected void |
hidePopup() |
protected void |
processKeyPressed(KeyEvent e) |
void |
uninstall()
uninstall the completer
|
protected void |
updatePopup(List<String> matches) |
protected final JTextComponent textComponent
protected JWindow popupWindow
protected String lastTextUpdate
protected final ComponentAdapter componentListener
public AutoCompleter(JTextComponent tc, AutoCompletionMatcher matcher)
tc - tcmatcher - matcherpublic void cancel()
protected void processKeyPressed(KeyEvent e)
protected void completeWithPopupSelection()
protected void createPopupWindow()
protected void hidePopup()
public void uninstall()
Copyright © 2015 The University of Manchester. All Rights Reserved.