public class JaxxComboBoxModel<O>
extends io.ultreia.java4all.bean.AbstractJavaBean
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_BEAN |
static String |
PROPERTY_DATA |
static String |
PROPERTY_INDEX |
static String |
PROPERTY_REVERSE_SORT |
static String |
PROPERTY_SELECTED_ITEM |
| Constructor and Description |
|---|
JaxxComboBoxModel(JaxxComboBoxConfig<O> config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(O item)
Add the given item into the comboBox.
|
void |
addItems(Iterable<O> items)
Add the given items into the comboBox.
|
Object |
getBean() |
JaxxComboBoxConfig<O> |
getConfig() |
List<O> |
getData() |
int |
getIndex() |
Boolean |
getReverseSort() |
O |
getSelectedItem() |
boolean |
isEmpty() |
void |
removeItem(O item)
Remove the given item from the comboBox model.
|
void |
removeItems(Iterable<O> items)
Remove the given items from the comboBox model.
|
void |
setBean(Object bean) |
void |
setData(List<O> data) |
void |
setIndex(int index) |
void |
setReverseSort(Boolean reverseSort) |
void |
setSelectedItem(O selectedItem) |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getChild, getJavaBeanType, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, javaBeanDefinition, pcs, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, vcspublic static final String PROPERTY_BEAN
public static final String PROPERTY_DATA
public static final String PROPERTY_INDEX
public static final String PROPERTY_REVERSE_SORT
public static final String PROPERTY_SELECTED_ITEM
public JaxxComboBoxModel(JaxxComboBoxConfig<O> config)
public Boolean getReverseSort()
public void setReverseSort(Boolean reverseSort)
public Object getBean()
public void setBean(Object bean)
public O getSelectedItem()
public void setSelectedItem(O selectedItem)
public int getIndex()
public void setIndex(int index)
public JaxxComboBoxConfig<O> getConfig()
public boolean isEmpty()
true if there is no data in comboBox, false otherwise.public void addItems(Iterable<O> items)
Note: The item will be inserted at his correct following the selected ordering.
items - items to add in comboBox.public void removeItems(Iterable<O> items)
Note: If this item was selected, then selection will be cleared.
items - items to remove from the comboBox modelpublic void addItem(O item)
Note: The item will be inserted at his correct following the selected ordering.
item - item to add in comboBox.public void removeItem(O item)
Note: If this item was selected, then selection will be cleared.
item - the item to remove from the comboBox modelCopyright © 2008–2020 Ultreia.io. All rights reserved.