public interface ComboBoxPopupState<T>
ComboBox
's model may implement
that interface to handle a custom sub-popup to be shown for some
ComboBox elements.
com.intellij.openapi.ui.ComboBox#setSwingPopup(false)
before to activate the checks and to allow JBPopup to be usedDarculaJBPopupComboPopup
Modifier and Type | Method and Description |
---|---|
boolean |
hasSubstep(T selectedValue)
In addition to the
onChosen(Object) is it possible to
show the sub-popup on a mouse hover, without an explicit click. |
javax.swing.ListModel<T> |
onChosen(T selectedValue)
This method is called on the
ComboBoxModel instance of the
combobox to decide if there is next step needed or not. |
javax.swing.ListModel<T> onChosen(T selectedValue)
ComboBoxModel
instance of the
combobox to decide if there is next step needed or not.
null
if there is no sup-pupup to be shown. That would
mean the JComboBox.setSelectedItem(Object)
is executed with the same parameter.
ComboBox
. The returned object will
be checked again to implement this interface.selectedValue
- the selected item.null
to accept the suggested element.boolean hasSubstep(T selectedValue)
onChosen(Object)
is it possible to
show the sub-popup on a mouse hover, without an explicit click.true
to allow that.