java.lang.Object
com.iamsoft.util.ui.swing.SimpleComboBoxModel<T>
- Type Parameters:
T- the type of the elements of this model
- All Implemented Interfaces:
ComboBoxModel<T>,ListModel<T>
A list model which can store a selected object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListDataListener(ListDataListener pListener) getElementAt(int pIdx) intgetSize()voidremoveListDataListener(ListDataListener pListener) voidsetSelectedItem(Object pSelectedItem)
-
Constructor Details
-
SimpleComboBoxModel
-
-
Method Details
-
getSelectedItem
- Specified by:
getSelectedItemin interfaceComboBoxModel<T>
-
setSelectedItem
- Specified by:
setSelectedItemin interfaceComboBoxModel<T>
-
getElementAt
- Specified by:
getElementAtin interfaceListModel<T>
-
getSize
public int getSize() -
addListDataListener
- Specified by:
addListDataListenerin interfaceListModel<T>
-
removeListDataListener
- Specified by:
removeListDataListenerin interfaceListModel<T>
-