org.springframework.richclient.list
Class ComboBoxListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.springframework.binding.value.support.ListListModel
          extended by org.springframework.richclient.list.ComboBoxListModel
All Implemented Interfaces:
Serializable, Iterable, Collection, List, ComboBoxModel, ListModel, MutableComboBoxModel, ObservableList
Direct Known Subclasses:
DynamicComboBoxListModel

public class ComboBoxListModel
extends ListListModel
implements ComboBoxModel, MutableComboBoxModel

Author:
Keith Donald
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
ComboBoxListModel()
           
ComboBoxListModel(List items)
           
ComboBoxListModel(List items, Comparator sorter)
           
 
Method Summary
 void add(int index, Object o)
           
 boolean add(Object o)
           
 boolean addAll(Collection c)
           
 boolean addAll(int index, Collection c)
           
 void addElement(Object anObject)
           
 void clear()
           
 Object getSelectedItem()
           
 void insertElementAt(Object anObject, int index)
           
 Object remove(int index)
           
 void removeElement(Object o)
           
 void removeElementAt(int index)
           
 void setSelectedItem(Object anItem)
           
protected  void setSelectedItemIfNecessary(Object o)
           
protected  void setSelectedItemOnNullValue()
           
 
Methods inherited from class org.springframework.binding.value.support.ListListModel
contains, containsAll, fireContentsChanged, fireContentsChanged, get, getElementAt, getIndexAdapter, getItems, getSize, hasChanged, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceWith, retainAll, set, setComparator, size, sort, subList, toArray, toArray
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

ComboBoxListModel

public ComboBoxListModel()

ComboBoxListModel

public ComboBoxListModel(List items)

ComboBoxListModel

public ComboBoxListModel(List items,
                         Comparator sorter)
Method Detail

getSelectedItem

public Object getSelectedItem()
Specified by:
getSelectedItem in interface ComboBoxModel

setSelectedItem

public void setSelectedItem(Object anItem)
Specified by:
setSelectedItem in interface ComboBoxModel

add

public void add(int index,
                Object o)
Specified by:
add in interface List
Overrides:
add in class ListListModel

setSelectedItemOnNullValue

protected void setSelectedItemOnNullValue()

setSelectedItemIfNecessary

protected void setSelectedItemIfNecessary(Object o)

add

public boolean add(Object o)
Specified by:
add in interface Collection
Specified by:
add in interface List
Overrides:
add in class ListListModel

addAll

public boolean addAll(Collection c)
Specified by:
addAll in interface Collection
Specified by:
addAll in interface List
Overrides:
addAll in class ListListModel

addAll

public boolean addAll(int index,
                      Collection c)
Specified by:
addAll in interface List
Overrides:
addAll in class ListListModel

clear

public void clear()
Specified by:
clear in interface Collection
Specified by:
clear in interface List
Overrides:
clear in class ListListModel

remove

public Object remove(int index)
Specified by:
remove in interface List
Overrides:
remove in class ListListModel

addElement

public void addElement(Object anObject)
Specified by:
addElement in interface MutableComboBoxModel

insertElementAt

public void insertElementAt(Object anObject,
                            int index)
Specified by:
insertElementAt in interface MutableComboBoxModel

removeElementAt

public void removeElementAt(int index)
Specified by:
removeElementAt in interface MutableComboBoxModel

removeElement

public void removeElement(Object o)
Specified by:
removeElement in interface MutableComboBoxModel


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.