public static class XdevComboBox.ItemListModelWrapper extends Object implements MutableComboBoxModel, ItemListOwner
Constructor and Description |
---|
ItemListModelWrapper(ItemList itemList) |
Modifier and Type | Method and Description |
---|---|
void |
addElement(Object obj) |
void |
addListDataListener(ListDataListener l) |
Object |
getElementAt(int index) |
ItemList |
getItemList()
Returns the associated
ItemList of this object. |
Object |
getSelectedItem() |
int |
getSize() |
void |
insertElementAt(Object obj,
int index) |
void |
removeElement(Object obj) |
void |
removeElementAt(int index) |
void |
removeListDataListener(ListDataListener l) |
void |
setSelectedItem(Object o) |
public ItemListModelWrapper(ItemList itemList)
public ItemList getItemList()
ItemListOwner
ItemList
of this object.getItemList
in interface ItemListOwner
ItemList
of this object.public void setSelectedItem(Object o)
setSelectedItem
in interface ComboBoxModel
public Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel
public Object getElementAt(int index)
getElementAt
in interface ListModel
public void addElement(Object obj)
addElement
in interface MutableComboBoxModel
public void insertElementAt(Object obj, int index)
insertElementAt
in interface MutableComboBoxModel
public void removeElement(Object obj)
removeElement
in interface MutableComboBoxModel
public void removeElementAt(int index)
removeElementAt
in interface MutableComboBoxModel
public void addListDataListener(ListDataListener l)
addListDataListener
in interface ListModel
public void removeListDataListener(ListDataListener l)
removeListDataListener
in interface ListModel
Copyright © 2003–2020 XDEV Software. All rights reserved.