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 TypeMethodDescriptionvoid
addListDataListener
(ListDataListener pListener) getElementAt
(int pIdx) int
getSize()
void
removeListDataListener
(ListDataListener pListener) void
setSelectedItem
(Object pSelectedItem)
-
Constructor Details
-
SimpleComboBoxModel
-
-
Method Details
-
getSelectedItem
- Specified by:
getSelectedItem
in interfaceComboBoxModel<T>
-
setSelectedItem
- Specified by:
setSelectedItem
in interfaceComboBoxModel<T>
-
getElementAt
- Specified by:
getElementAt
in interfaceListModel<T>
-
getSize
public int getSize() -
addListDataListener
- Specified by:
addListDataListener
in interfaceListModel<T>
-
removeListDataListener
- Specified by:
removeListDataListener
in interfaceListModel<T>
-