public class ListDataIntelliHints<T> extends AbstractListIntelliHints<T>
ListDataIntelliHints is a concrete implementation of IntelliHints. It provides hints from a
known list of data. It is similar to auto complete text field except the list will be filtered depending on what user
types in so far.autoPopupProperty, showHintsDelayPropertyPROPERTY_INTELLI_HINTS| Constructor and Description |
|---|
ListDataIntelliHints(javafx.scene.control.TextInputControl comp,
java.util.List<T> completionList) |
ListDataIntelliHints(javafx.scene.control.TextInputControl comp,
T[] completionList) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
compare(java.lang.Object context,
T o)
Compares the context with the object in the completion list.
|
java.util.List<T> |
getCompletionList()
Gets the list of hints.
|
boolean |
isCaseSensitive()
Checks if it used case sensitive search.
|
void |
setCaseSensitive(boolean caseSensitive)
Sets the case sensitive flag.
|
void |
setCompletionList(java.util.List<T> completionList)
Sets a new list of hints.
|
void |
setCompletionList(T[] completionList)
Sets a new list of hints.
|
boolean |
updateHints(java.lang.Object context)
Update hints depending on the context.
|
createHintsNode, createListView, getDelegateKeyCombination, getDelegateNode, getListView, getSelectedHint, setAvailableHintsacceptHint, addShowHintsKeyCombination, autoPopupProperty, createPopup, getAllShowHintsKeyStrokes, getContext, getIntelliHints, getShowHintsDelay, getShowHintsKeyCombination, getTextInputControl, hideHintsPopup, isAutoPopup, isHintsPopupVisible, isMultiline, removeShowHintKeyCombination, setAutoPopup, setHintsEnabled, setShowHintsDelay, showHints, showHintsDelayProperty, showHintsPopuppublic ListDataIntelliHints(javafx.scene.control.TextInputControl comp,
java.util.List<T> completionList)
public ListDataIntelliHints(javafx.scene.control.TextInputControl comp,
T[] completionList)
public java.util.List<T> getCompletionList()
public void setCompletionList(java.util.List<T> completionList)
completionList - a new list of hints.public void setCompletionList(T[] completionList)
completionList - a new array of hints.public boolean updateHints(java.lang.Object context)
IntelliHintsAbstractListIntelliHints.setAvailableHints(javafx.collections.ObservableList) to set it and returns true after
that.context - the current contextprotected boolean compare(java.lang.Object context,
T o)
context - the context returned from AbstractIntelliHints.getContext() method.o - the object in the completion list.public boolean isCaseSensitive()
public void setCaseSensitive(boolean caseSensitive)
caseSensitive - true or false.