T - the data type of the hintspublic interface IntelliHints<T>
IntelliHints is an interface that defines all necessary methods to implement showing a hint popup depending
on a context and allows user to pick from a list of hints. createHintsNode() will create a node that
contains the hints. It will be shown in a popup window. After the hint popup is created, updateHints(Object)
will update the content of hints based on the context. Once user picks a hint from the hint popup, getSelectedHint() will be called to find the hint that user selected and call acceptHint(Object) to accept
it.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_INTELLI_HINTS
The key of a client property.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acceptHint(T hint)
Accepts the selected hint.
|
javafx.scene.Node |
createHintsNode()
Creates the node which contains hints.
|
T |
getSelectedHint()
Gets the selected hint.
|
boolean |
updateHints(java.lang.Object context)
Update hints depending on the context.
|
static final java.lang.String PROPERTY_INTELLI_HINTS
javafx.scene.Node createHintsNode()
updateHints(Object) will update the content.boolean updateHints(java.lang.Object context)
AbstractListIntelliHints.setAvailableHints(javafx.collections.ObservableList) to set it and returns true after
that.context - the current contextT getSelectedHint()
acceptHint(Object).void acceptHint(T hint)
hint - the hint to be accepted.