com.sas.swing.models
Class MutableComboBoxModelAdapter

com.sas.swing.models.MutableComboBoxModelAdapter
All Implemented Interfaces:
com.sas.beans.PropertyChangeSource, com.sas.collection.ContentsChangedListener, ViewDefaultModel, com.sas.util.transforms.DisplayTransformInterface, java.io.Serializable, java.util.EventListener, javax.swing.ComboBoxModel, javax.swing.ListModel, javax.swing.MutableComboBoxModel

public class MutableComboBoxModelAdapter
implements javax.swing.MutableComboBoxModel

The MutableComboBoxModelAdapter takes a collection which implements the OrderedCollectionInterface and allows it to be the model to a Swing ComboBox.

See Also:
ComboBoxModelAdapter, Serialized Form

Field Summary
 
Fields inherited from class com.sas.swing.models.ComboBoxModelAdapter
selectedItem
 
Fields inherited from class com.sas.swing.models.ListModelAdapter
defaultModelAttached, displayTransform, model, propertyChangeSupport
 
Constructor Summary
MutableComboBoxModelAdapter()
           
MutableComboBoxModelAdapter(com.sas.collection.OrderedCollectionInterface collection)
          Constructor.
 
Method Summary
 void addElement(java.lang.Object obj)
           
 void insertElementAt(java.lang.Object obj, int index)
           
 void removeElement(java.lang.Object obj)
           
 void removeElementAt(int index)
           
 void setModel(IndexedGetInterface model)
           
 
Methods inherited from class com.sas.swing.models.ComboBoxModelAdapter
getSelectedItem, setSelectedItem
 
Methods inherited from class com.sas.swing.models.ListModelAdapter
addPropertyChangeListener, contentsChanged, firePropertyChange, firePropertyChange, getDisplayTransform, getElementAt, getExtendedBeanInfo, getModel, getSize, isDefaultModelAttached, newDefaultModel, removePropertyChangeListener, setDefaultModelAttached, setDisplayTransform
 

Constructor Detail

MutableComboBoxModelAdapter

public MutableComboBoxModelAdapter()

MutableComboBoxModelAdapter

public MutableComboBoxModelAdapter(com.sas.collection.OrderedCollectionInterface collection)
Constructor.

Parameters:
collection - The collection to be in the MutableComboBoxModel.
Method Detail

setModel

public void setModel(IndexedGetInterface model)
Overrides:
setModel in class ListModelAdapter

addElement

public void addElement(java.lang.Object obj)
Specified by:
addElement in interface javax.swing.MutableComboBoxModel

insertElementAt

public void insertElementAt(java.lang.Object obj,
                            int index)
Specified by:
insertElementAt in interface javax.swing.MutableComboBoxModel

removeElement

public void removeElement(java.lang.Object obj)
Specified by:
removeElement in interface javax.swing.MutableComboBoxModel

removeElementAt

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



Copyright © 2009 SAS Institute Inc. All Rights Reserved.