public class GlossaryAutoCompleterView extends AutoCompleterListView
completer
Constructor and Description |
---|
GlossaryAutoCompleterView() |
Modifier and Type | Method and Description |
---|---|
java.util.List<AutoCompleterItem> |
computeListData(java.lang.String prevText,
boolean contextualOnly)
Compute the items visible in the auto-completer list
|
protected boolean |
isEnabled()
Indicates whether the view should be considered "on" or "off".
|
java.lang.String |
itemToString(AutoCompleterItem item)
Each view should determine how to print a view item.
|
boolean |
shouldPopUp()
Return true to indicate that the view has relevant contextual suggestions
that merit displaying the AutoCompleter popup unprompted.
|
getLastToken, getList, getPreferredHeight, getPreferredWidth, getRowCount, getSelectedValue, getViewContent, processKeys, selectNextPossibleValue, selectNextPossibleValueByPage, selectPreviousPossibleValue, selectPreviousPossibleValueByPage, setData, updateViewData
getLeadingText, getModifiedRowCount, getName, getTargetLanguage, getTokenizer, setParent, shouldCloseOnSelection
public boolean shouldPopUp()
AbstractAutoCompleterView
shouldPopUp
in class AutoCompleterListView
public java.util.List<AutoCompleterItem> computeListData(java.lang.String prevText, boolean contextualOnly)
AutoCompleterListView
computeListData
in class AutoCompleterListView
prevText
- the text in the editing field up to the cursor locationpublic java.lang.String itemToString(AutoCompleterItem item)
AutoCompleterListView
itemToString
in class AutoCompleterListView
item
- The item to printprotected boolean isEnabled()
AbstractAutoCompleterView
isEnabled
in class AbstractAutoCompleterView