net.sourceforge.xwing.swing
Class XComboBoxModel

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended bynet.sourceforge.xwing.swing.XComboBoxModel
All Implemented Interfaces:
ComboBoxModel, ListModel, Serializable

public class XComboBoxModel
extends AbstractListModel
implements ComboBoxModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
XComboBoxModel(SourceSink selection, ListModel choices)
           
 
Method Summary
 void addListDataListener(ListDataListener l)
           
 Object getElementAt(int index)
           
 Object getSelectedItem()
           
 int getSize()
           
 void removeListDataListener(ListDataListener l)
           
 void setSelectedItem(Object item)
           
 
Methods inherited from class javax.swing.AbstractListModel
fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XComboBoxModel

public XComboBoxModel(SourceSink selection,
                      ListModel choices)
               throws Exception
Method Detail

setSelectedItem

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

getSelectedItem

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

getSize

public int getSize()
Specified by:
getSize in interface ListModel

getElementAt

public Object getElementAt(int index)
Specified by:
getElementAt in interface ListModel

addListDataListener

public void addListDataListener(ListDataListener l)
Specified by:
addListDataListener in interface ListModel

removeListDataListener

public void removeListDataListener(ListDataListener l)
Specified by:
removeListDataListener in interface ListModel


Copyright © 2003 The Xwing Project. All Rights Reserved.