Package docking.widgets.autocomplete
Interface AutocompletionModel<T>
-
- Type Parameters:
T
- the type of suggestions this model gives.
public interface AutocompletionModel<T>
A model to generate the suggested completions, given a viable prefix.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<T>
computeCompletions(java.lang.String text)
Compute a collection of possible completions to the given text (prefix).
-
-
-
Method Detail
-
computeCompletions
java.util.Collection<T> computeCompletions(java.lang.String text)
Compute a collection of possible completions to the given text (prefix).- Parameters:
text
- the prefix, i.e., the text to the left of the user's caret.- Returns:
- a (possibly null or empty) list of suggested completions.
-
-