E
- type of the elements added to the combo boxpublic interface IComboBox<E>
JComboBox
with a custom renderer having the unified rendering logic incorporated (
IGuiUtils.renderToLabel(javax.swing.JLabel, Object, boolean, boolean)
).
Supports marking items that will be followed by a separator line in the popup list and marking disabled items which cannot be selected.
IComboBoxModel
,
IGuiFactory.newComboBox()
,
IGuiFactory.newComboBox(Object[])
,
IGuiFactory.newComboBox(java.util.Vector)
Modifier and Type | Method and Description |
---|---|
javax.swing.JComboBox<E> |
asComboBox()
Casts this instance to
JComboBox . |
E |
getSelectedItem()
Overrides
JComboBox.getSelectedItem() to return the selected value as the type specified by the element type parameter |
IComboBoxModel<E> |
getXComboBoxModel()
Returns the improved combo box model of this improved combo box.
|
void |
markDisabledItems(java.util.Collection<? extends E> items)
Makes the specified items disabled (can't be selected).
|
void |
markDisabledItems(E... items)
Makes the specified items disabled (can't be selected).
|
void |
markSeparatedItems(java.util.Collection<? extends E> items)
Marks items that will be followed by a separator in the popup list.
|
void |
markSeparatedItems(E... items)
Marks items that will be followed by a separator in the popup list.
|
javax.swing.JComboBox<E> asComboBox()
JComboBox
.this
as a JComboBox
IComboBoxModel<E> getXComboBoxModel()
E getSelectedItem()
JComboBox.getSelectedItem()
to return the selected value as the type specified by the element type parametervoid markSeparatedItems(java.util.Collection<? extends E> items)
items
- items to be marked that will be followed by a separator in the popup listmarkSeparatedItems(Object...)
void markSeparatedItems(E... items)
items
- items to be marked that will be followed by a separator in the popup listmarkSeparatedItems(Collection)
void markDisabledItems(java.util.Collection<? extends E> items)
items
- items to be marked disabledmarkDisabledItems(Object...)
void markDisabledItems(E... items)
items
- items to be marked disabledmarkDisabledItems(Collection)
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.