org.scopemvc.view.swing
Class SComboBoxModel

java.lang.Object
  |
  +--javax.swing.AbstractListModel
        |
        +--org.scopemvc.view.swing.SAbstractListModel
              |
              +--org.scopemvc.view.swing.SComboBoxModel
All Implemented Interfaces:
javax.swing.ComboBoxModel, javax.swing.ListModel, ModelBindable, ModelChangeListener, Refreshable, java.io.Serializable

public final class SComboBoxModel
extends SAbstractListModel
implements javax.swing.ComboBoxModel

Version:
$Revision: 1.10 $ $Date: 2002/09/12 18:24:41 $
Author:
Daniel Michalik
, Steve Meyfroidt
See Also:
SComboBox, Serialized Form

Field Summary
 
Fields inherited from class org.scopemvc.view.swing.SAbstractListModel
listModel, sizeSelector
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
SComboBoxModel(javax.swing.JComboBox inCombo)
          Constructor for the SComboBoxModel object
 
Method Summary
 java.lang.Object getBoundSelectionModel()
          Gets the bound selection model
 java.lang.Object getSelectedItem()
          Gets the selected item
 Selector getSelectionSelector()
          Gets the selection selector
 void refresh()
          TODO: document the method
 void setBoundModel(java.lang.Object inModel)
          Sets the bound model
 void setBoundSelectionModel(java.lang.Object inModel)
          Sets the bound selection model
 void setSelectedItem(java.lang.Object inItem)
          Sets the selected item
 void setSelectionSelector(Selector inSelector)
          Sets the selection selector
 void setSelectionSelectorString(java.lang.String inSelectorString)
          Sets the selection selector string
 
Methods inherited from class org.scopemvc.view.swing.SAbstractListModel
containsElement, doModelChanged, getBoundModel, getElementAt, getSelector, getShownModel, getSize, getSizeSelector, getViewValue, isSorted, modelChanged, setComparator, setListModel, setSelector, setSelectorString, setShownModel, setSizeSelector, setSizeSelectorString, setSorted, setSorted, updateFromProperty, validationFailed, validationSuccess
 
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
 

Constructor Detail

SComboBoxModel

public SComboBoxModel(javax.swing.JComboBox inCombo)
Constructor for the SComboBoxModel object

Parameters:
inCombo - TODO: Describe the Parameter
Method Detail

getBoundSelectionModel

public final java.lang.Object getBoundSelectionModel()
Gets the bound selection model

Returns:
The boundSelectionModel value

getSelectionSelector

public final Selector getSelectionSelector()
Gets the selection selector

Returns:
The selectionSelector value

getSelectedItem

public java.lang.Object getSelectedItem()
Gets the selected item

Specified by:
getSelectedItem in interface javax.swing.ComboBoxModel
Returns:
The selectedItem value

setBoundSelectionModel

public final void setBoundSelectionModel(java.lang.Object inModel)
Sets the bound selection model

Parameters:
inModel - The new boundSelectionModel value

setSelectionSelector

public final void setSelectionSelector(Selector inSelector)
Sets the selection selector

Parameters:
inSelector - The new selectionSelector value

setSelectionSelectorString

public final void setSelectionSelectorString(java.lang.String inSelectorString)
Sets the selection selector string

Parameters:
inSelectorString - The new selectionSelectorString value

setSelectedItem

public void setSelectedItem(java.lang.Object inItem)
Sets the selected item

Specified by:
setSelectedItem in interface javax.swing.ComboBoxModel
Parameters:
inItem - The new selectedItem value

setBoundModel

public void setBoundModel(java.lang.Object inModel)
Sets the bound model

Overrides:
setBoundModel in class SAbstractListModel
Parameters:
inModel - The new boundModel value

refresh

public void refresh()
TODO: document the method

Specified by:
refresh in interface Refreshable
Overrides:
refresh in class SAbstractListModel


Copyright © 2000-2002 The Scope Team. All Rights Reserved.