public interface IntelliHints
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. createHintsComponent()
will create a
component that contains the hints. It will be shown in a popup window. After 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 |
CLIENT_PROPERTY_INTELLI_HINTS
The key of a client property.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptHint(java.lang.Object hint)
Accepts the selected hint.
|
javax.swing.JComponent |
createHintsComponent()
Creates the component which contains hints.
|
java.lang.Object |
getSelectedHint()
Gets the selected value.
|
boolean |
updateHints(java.lang.Object context)
Update hints depending on the context.
|
static final java.lang.String CLIENT_PROPERTY_INTELLI_HINTS
javax.swing.JComponent createHintsComponent()
updateHints(Object)
will update the content.boolean updateHints(java.lang.Object context)
context
- the current contextjava.lang.Object getSelectedHint()
void acceptHint(java.lang.Object hint)
hint
- the hint to be accepted.