org.wings
Class SDefaultComboBoxModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.wings.SDefaultListModel
          extended by org.wings.SDefaultComboBoxModel
All Implemented Interfaces:
Serializable, ComboBoxModel, ListModel, MutableComboBoxModel

public class SDefaultComboBoxModel
extends SDefaultListModel
implements MutableComboBoxModel

Default implementation of a model for SComboBox components.

Author:
Armin Haaf
See Also:
Serialized Form

Field Summary
protected  Object selectedItem
           
 
Fields inherited from class org.wings.SDefaultListModel
data
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
SDefaultComboBoxModel()
           
SDefaultComboBoxModel(List d)
           
SDefaultComboBoxModel(Object[] d)
           
 
Method Summary
 void addElement(Object obj)
           
 Object getSelectedItem()
           
 void insertElementAt(Object obj, int index)
           
 void removeElement(Object obj)
           
 void removeElementAt(int index)
           
 void setSelectedItem(Object anItem)
           
 
Methods inherited from class org.wings.SDefaultListModel
clear, elements, getElementAt, getSize, indexOf
 
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
 

Field Detail

selectedItem

protected Object selectedItem
Constructor Detail

SDefaultComboBoxModel

public SDefaultComboBoxModel(List d)

SDefaultComboBoxModel

public SDefaultComboBoxModel(Object[] d)

SDefaultComboBoxModel

public SDefaultComboBoxModel()
Method Detail

setSelectedItem

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

getSelectedItem

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

addElement

public void addElement(Object obj)
Specified by:
addElement in interface MutableComboBoxModel
Overrides:
addElement in class SDefaultListModel

removeElement

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

insertElementAt

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

removeElementAt

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


wingS Swings ;-)