|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.models.MapToComboBoxModelAdapter
public class MapToComboBoxModelAdapter
The MapToComboBoxModelAdapter allows Maps that extend from java.util.Map
to be used as the
model for a javax.swing.JComboBox
. The Map must be set as the model for the adapter,
which can then used as the model for the viewer.
Field Summary | |
---|---|
protected java.lang.Object |
selectedItem
Currently selected item |
Fields inherited from class com.sas.swing.models.MapToListModelAdapter |
---|
delegate, model, showKeysOnly, spcs |
Constructor Summary | |
---|---|
MapToComboBoxModelAdapter()
Default constructor |
|
MapToComboBoxModelAdapter(int size)
Overloaded constructor that initializes the delegate to be of given size |
|
MapToComboBoxModelAdapter(java.util.Map m)
Overloaded constructor that intializes the adapter with the data given by the Map |
Method Summary | |
---|---|
java.lang.Object |
getSelectedItem()
Returns the selected item |
void |
setSelectedItem(java.lang.Object item)
Sets the selected item |
Methods inherited from class com.sas.swing.models.MapToListModelAdapter |
---|
addPropertyChangeListener, createDelegate, getElementAt, getExtendedBeanInfo, getModel, getShowKeysOnly, getSize, refresh, removePropertyChangeListener, setModel, setShowKeysOnly |
Field Detail |
---|
protected java.lang.Object selectedItem
Constructor Detail |
---|
public MapToComboBoxModelAdapter()
public MapToComboBoxModelAdapter(int size)
size
- Initial size of the delegate representing the Mappublic MapToComboBoxModelAdapter(java.util.Map m)
m
- Map whose data will be used within the adapterMethod Detail |
---|
public java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel
public void setSelectedItem(java.lang.Object item)
setSelectedItem
in interface javax.swing.ComboBoxModel
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |