public interface ListPopupStep<T>
Modifier and Type | Method and Description |
---|---|
int |
getDefaultOptionIndex()
Returns the index of the item to be initially selected in the list.
|
javax.swing.Icon |
getIconFor(T aValue)
Returns the icon to display for the specified list item.
|
default javax.swing.Icon |
getSelectedIconFor(T value) |
ListSeparator |
getSeparatorAbove(T value)
Returns the separator to display above the specified list item.
|
java.lang.String |
getTextFor(T value)
Returns the text to display for the specified list item.
|
java.util.List<T> |
getValues()
Returns the values to be displayed in the list popup.
|
boolean |
isSelectable(T value)
Checks if the specified value in the list can be selected.
|
java.util.List<T> getValues()
boolean isSelectable(T value)
value
- the value to check.javax.swing.Icon getIconFor(T aValue)
aValue
- the value for which the icon is requested.default javax.swing.Icon getSelectedIconFor(T value)
java.lang.String getTextFor(T value)
value
- the value for which the text is requested.ListSeparator getSeparatorAbove(T value)
value
- the value for which the separator is requested.int getDefaultOptionIndex()