Package ca.phon.ui.text
Interface TextCompleterModel<T>
- All Known Implementing Classes:
DefaultTextCompleterModel
,FinalTokenTextCompleterModel
,TierNameTextCompleterModel
,TreeTextCompleterModel
public interface TextCompleterModel<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCompletion
(String completion, T value) Add completion to model with given data.void
completeText
(String text, String completion) Perform completion and return new text.boolean
containsCompletion
(String completion) getCompletions
(String text) Return completions for given text.Get data for completion key.getDisplayText
(String completion) Get text used for display of completion.void
removeCompletion
(String key) Remove completion from model.
-
Method Details
-
addCompletion
Add completion to model with given data.- Parameters:
completion
-key
-
-
removeCompletion
Remove completion from model.- Parameters:
completion
-
-
clearCompletions
void clearCompletions() -
getData
Get data for completion key.- Parameters:
completion
-
-
getDisplayText
Get text used for display of completion.- Returns:
- text
-
getCompletions
Return completions for given text.- Parameters:
text
-
-
completeText
Perform completion and return new text.- Parameters:
text
-completion
-- Returns:
- new text
-
containsCompletion
-