org.springframework.richclient.list
Class FilteredComboBoxListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.springframework.richclient.list.AbstractFilteredListModel
          extended by org.springframework.richclient.list.FilteredListModel
              extended by org.springframework.richclient.list.FilteredComboBoxListModel
All Implemented Interfaces:
Serializable, EventListener, Observer, ComboBoxModel, ListDataListener, ListModel

public class FilteredComboBoxListModel
extends FilteredListModel
implements ComboBoxModel

Author:
kdonald
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.richclient.list.AbstractFilteredListModel
filteredModel, logger
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
FilteredComboBoxListModel(ComboBoxModel filteredModel, Constraint filter)
           
 
Method Summary
protected  ComboBoxModel getComboBoxModel()
           
 Object getSelectedItem()
           
protected  void onMatchingElement(Object element)
          Called to notify that an element has matched the filter constraint.
protected  void postConstraintApplied()
          Called to notify that the constraint was applied to all elements.
 void setFilteredModel(ListModel model)
           
 void setSelectedItem(Object anItem)
           
 
Methods inherited from class org.springframework.richclient.list.FilteredListModel
contentsChanged, fireContentsChanged, getConstraint, getElementIndex, getSize, intervalAdded, intervalRemoved, reallocateIndexes, setConstraint, update
 
Methods inherited from class org.springframework.richclient.list.AbstractFilteredListModel
getElementAt, getFilteredModel
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, 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
 

Constructor Detail

FilteredComboBoxListModel

public FilteredComboBoxListModel(ComboBoxModel filteredModel,
                                 Constraint filter)
Method Detail

setFilteredModel

public void setFilteredModel(ListModel model)
Overrides:
setFilteredModel in class AbstractFilteredListModel

getComboBoxModel

protected ComboBoxModel getComboBoxModel()

onMatchingElement

protected void onMatchingElement(Object element)
Description copied from class: FilteredListModel
Called to notify that an element has matched the filter constraint. This implementation does nothing.

Overrides:
onMatchingElement in class FilteredListModel
Parameters:
element - the element which was accepted by the filter

postConstraintApplied

protected void postConstraintApplied()
Description copied from class: FilteredListModel
Called to notify that the constraint was applied to all elements. This implementation does nothing.

Overrides:
postConstraintApplied in class FilteredListModel

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.