Package ca.phon.ui.text
Class FinalTokenTextCompleterModel
java.lang.Object
ca.phon.ui.text.TreeTextCompleterModel<Object>
ca.phon.ui.text.DefaultTextCompleterModel
ca.phon.ui.text.FinalTokenTextCompleterModel
- All Implemented Interfaces:
TextCompleterModel<Object>
Text completion model which replaces the final token
in a string.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompleteText
(String text, String completion) Perform completion and return new text.getCompletions
(String text) Return completions for given text.Methods inherited from class ca.phon.ui.text.DefaultTextCompleterModel
addCompletion
Methods inherited from class ca.phon.ui.text.TreeTextCompleterModel
addCompletion, clearCompletions, containsCompletion, getData, getDisplayText, getSeparator, isIncludeInfixEntries, removeCompletion, setIncludeInfixEntries, setSeparator
-
Constructor Details
-
FinalTokenTextCompleterModel
public FinalTokenTextCompleterModel()
-
-
Method Details
-
getCompletions
Description copied from interface:TextCompleterModel
Return completions for given text.- Specified by:
getCompletions
in interfaceTextCompleterModel<Object>
- Overrides:
getCompletions
in classTreeTextCompleterModel<Object>
-
completeText
Description copied from interface:TextCompleterModel
Perform completion and return new text.- Specified by:
completeText
in interfaceTextCompleterModel<Object>
- Overrides:
completeText
in classTreeTextCompleterModel<Object>
- Returns:
- new text
-