public final class SdkListModel extends javax.swing.AbstractListModel<SdkListItem> implements ComboBoxPopupState<SdkListItem>
Modifier and Type | Method and Description |
---|---|
static SdkListModel |
emptyModel() |
SdkListItem |
findNoneSdkItem() |
SdkListItem |
findProjectSdkItem() |
SdkListItem.SdkItem |
findSdkItem(Sdk value) |
SdkListItem |
getElementAt(int index) |
java.util.List<SdkListItem> |
getItems() |
java.lang.String |
getSeparatorTextAbove(SdkListItem value) |
int |
getSize() |
boolean |
hasSubstep(SdkListItem selectedValue)
In addition to the
ComboBoxPopupState.onChosen(Object) is it possible to
show the sub-popup on a mouse hover, without an explicit click. |
boolean |
isSearching() |
SdkListModel |
onChosen(SdkListItem selectedValue)
This method is called on the
ComboBoxModel instance of the
combobox to decide if there is next step needed or not. |
public static SdkListModel emptyModel()
public SdkListItem findProjectSdkItem()
public SdkListItem findNoneSdkItem()
public int getSize()
getSize
in interface javax.swing.ListModel<SdkListItem>
public SdkListItem getElementAt(int index)
getElementAt
in interface javax.swing.ListModel<SdkListItem>
public SdkListModel onChosen(SdkListItem selectedValue)
ComboBoxPopupState
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.onChosen
in interface ComboBoxPopupState<SdkListItem>
selectedValue
- the selected item.null
to accept the suggested element.public boolean hasSubstep(SdkListItem selectedValue)
ComboBoxPopupState
ComboBoxPopupState.onChosen(Object)
is it possible to
show the sub-popup on a mouse hover, without an explicit click.hasSubstep
in interface ComboBoxPopupState<SdkListItem>
true
to allow that.public boolean isSearching()
public java.util.List<SdkListItem> getItems()
public java.lang.String getSeparatorTextAbove(SdkListItem value)
public SdkListItem.SdkItem findSdkItem(Sdk value)