com.gsoft.titration.client
Class StringComboBoxModel

java.lang.Object
  |
  +--javax.swing.AbstractListModel
        |
        +--com.gsoft.titration.client.StringListModel
              |
              +--com.gsoft.titration.client.StringComboBoxModel

public class StringComboBoxModel
extends StringListModel
implements ComboBoxModel, Serializable

Similar to the StringListModel with the addition of a "selected item" property.

See Also: getSelectedItem(), setSelectedItem(java.lang.Object)

Field Summary
 protected ObjectselectedItem
          The currently selected item.

Fields inherited from class com.gsoft.titration.client.StringListModel
delegate

Fields inherited from class javax.swing.AbstractListModel
listenerList

Constructor Summary
StringComboBoxModel()
          Constructs a default StringComboBoxModel.

Method Summary
 ObjectgetSelectedItem()
          Gets the currently selected item.
 voidsetSelectedItem(Object item)
          Sets the currently selected item.

Methods inherited from class com.gsoft.titration.client.StringListModel
add, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, fetchItems, firstElement, get, getElementAt, getItems, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setItems, setSize, size, toArray, toString, trimToSize

Methods inherited from class javax.swing.AbstractListModel
addListDataListener, removeListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListeners

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize

Field Detail

selectedItem

protected Object selectedItem
The currently selected item.
Constructor Detail

StringComboBoxModel

public StringComboBoxModel()
Constructs a default StringComboBoxModel.
Method Detail

getSelectedItem

public Object getSelectedItem()
Gets the currently selected item.
Returns: the item that is currently selected
See Also:
setSelectedItem(java.lang.Object)

setSelectedItem

public void setSelectedItem(Object item)
Sets the currently selected item.
Parameters:
item the item that is currently selected
See Also:
getSelectedItem()