org.springframework.richclient.list
Class ComboBoxListModelAdapter
java.lang.Object
javax.swing.AbstractListModel
org.springframework.richclient.list.AbstractFilteredListModel
org.springframework.richclient.list.ComboBoxListModelAdapter
- All Implemented Interfaces:
- Serializable, EventListener, ComboBoxModel, ListDataListener, ListModel
public class ComboBoxListModelAdapter
- extends AbstractFilteredListModel
- implements ComboBoxModel
Simple adapter to create a ComboBoxModel
from an existing ListModel
- Author:
- Mathias Broekelmann
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComboBoxListModelAdapter
public ComboBoxListModelAdapter(ListModel listModel)
- Constructs a new instance with a given listModel
- Parameters:
listModel
- the listmodel containing the elements
- Throws:
IllegalArgumentException
- if listModel is null
getSelectedItem
public Object getSelectedItem()
- Specified by:
getSelectedItem
in interface ComboBoxModel
setSelectedItem
public void setSelectedItem(Object anItem)
- Specified by:
setSelectedItem
in interface ComboBoxModel
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.