diva.gui.toolbox
Class ListDataModel
java.lang.Object
javax.swing.AbstractListModel
javax.swing.DefaultComboBoxModel
diva.gui.toolbox.ListDataModel
- All Implemented Interfaces:
- Serializable, ComboBoxModel, ListModel, MutableComboBoxModel
public class ListDataModel
- extends DefaultComboBoxModel
A model that captures the notion of a list of elements with a
single selected element. This is really just a
DefaultComboBoxModel, because that class happens to fit our
requirements. We subclass DefaultComboBoxModel so we can modify it
if any of the behavior should not be quite right.
- Version:
- $Revision: 1.7 $
- Author:
- John Reekie (johnr@eecs.berkeley.edu)
- See Also:
- Serialized Form
Method Summary |
boolean |
contains(Object o)
Return whether or not the given item is contained
by the model |
List |
getList()
Return this model as a list. |
Iterator |
iterator()
Return an iterator over the elements in the model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListDataModel
public ListDataModel()
- Create a new model.
getList
public List getList()
- Return this model as a list.
iterator
public Iterator iterator()
- Return an iterator over the elements in the model.
contains
public boolean contains(Object o)
- Return whether or not the given item is contained
by the model
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.