Synergy Home Page

au.edu.swin.synergy.lib
Class BComboBoxModel

java.lang.Object
  |
  +--javax.swing.AbstractListModel
        |
        +--au.edu.swin.synergy.lib.BListModel
              |
              +--au.edu.swin.synergy.lib.BComboBoxModel

public class BComboBoxModel
extends BListModel
implements ComboBoxModel

Provides a generic means of placing items in a JComboBox

Author:
Matthew Evans
See Also:
Serialized Form

Fields inherited from class au.edu.swin.synergy.lib.BListModel
listContent
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
BComboBoxModel()
           
 
Method Summary
 Object getSelectedItem()
          Returns the item that is currently selected in a JComboBox
 void setSelectedItem(Object item)
          Sets the item that is currently selected in a JComboBox
 
Methods inherited from class au.edu.swin.synergy.lib.BListModel
addElement, doRefresh, getElementAt, getSize, indexOf, removeAllElements, removeElement, removeElementAt, set, setContents
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BComboBoxModel

public BComboBoxModel()
Method Detail

getSelectedItem

public Object getSelectedItem()
Returns the item that is currently selected in a JComboBox
Specified by:
getSelectedItem in interface ComboBoxModel
Returns:
the object that is currently selected

setSelectedItem

public void setSelectedItem(Object item)
Sets the item that is currently selected in a JComboBox
Specified by:
setSelectedItem in interface ComboBoxModel
Parameters:
item - the item that is currently selected

Synergy Home Page