org.scopemvc.model.collection
Class ListModelSource

java.lang.Object
  |
  +--org.scopemvc.model.collection.ListModelSource

public class ListModelSource
extends java.lang.Object

Used with ListModelAdaptor to wrap a Collection, List, Array, Enumeration or Iterator as the source of a list of model objects. Useful when initialising SComboBox or SList with a static list of data.

Version:
$Revision: 1.3 $ $Date: 2002/09/05 15:41:46 $
Author:
Roytman, Alex

Constructor Summary
ListModelSource(java.util.Collection listSource)
          Constructor for the ListModelSource object
ListModelSource(java.util.Enumeration listSource)
          Constructor for the ListModelSource object
ListModelSource(java.util.Iterator listSource)
          Constructor for the ListModelSource object
ListModelSource(java.util.List listSource)
          Constructor for the ListModelSource object
ListModelSource(ModelChangeEventSource listSourceModel, Selector listSourceSelector)
          Constructor for the ListModelSource object
 
Method Summary
 void addToList(java.util.List list)
          Adds an element to the ToList attribute of the ListModelSource object
 java.lang.Object getListSource()
          Gets the list source
 ModelChangeEventSource getListSourceModel()
          Gets the list source model
 Selector getListSourceSelector()
          Gets the list source selector
 boolean isList()
          Gets the list
 boolean isModelBased()
          Gets the model based
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListModelSource

public ListModelSource(ModelChangeEventSource listSourceModel,
                       Selector listSourceSelector)
Constructor for the ListModelSource object

Parameters:
listSourceModel - TODO: Describe the Parameter
listSourceSelector - TODO: Describe the Parameter

ListModelSource

public ListModelSource(java.util.Collection listSource)
Constructor for the ListModelSource object

Parameters:
listSource - TODO: Describe the Parameter

ListModelSource

public ListModelSource(java.util.List listSource)
Constructor for the ListModelSource object

Parameters:
listSource - TODO: Describe the Parameter

ListModelSource

public ListModelSource(java.util.Iterator listSource)
Constructor for the ListModelSource object

Parameters:
listSource - TODO: Describe the Parameter

ListModelSource

public ListModelSource(java.util.Enumeration listSource)
Constructor for the ListModelSource object

Parameters:
listSource - TODO: Describe the Parameter
Method Detail

isModelBased

public boolean isModelBased()
Gets the model based

Returns:
The modelBased value

isList

public boolean isList()
Gets the list

Returns:
The list value

getListSourceModel

public ModelChangeEventSource getListSourceModel()
Gets the list source model

Returns:
The listSourceModel value

getListSource

public java.lang.Object getListSource()
Gets the list source

Returns:
The listSource value

getListSourceSelector

public Selector getListSourceSelector()
Gets the list source selector

Returns:
The listSourceSelector value

addToList

public void addToList(java.util.List list)
Adds an element to the ToList attribute of the ListModelSource object

Parameters:
list - The element to be added to the ToList attribute


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