|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.scopemvc.model.collection.ListModelSource
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.
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 |
public ListModelSource(ModelChangeEventSource listSourceModel, Selector listSourceSelector)
listSourceModel
- TODO: Describe the ParameterlistSourceSelector
- TODO: Describe the Parameterpublic ListModelSource(java.util.Collection listSource)
listSource
- TODO: Describe the Parameterpublic ListModelSource(java.util.List listSource)
listSource
- TODO: Describe the Parameterpublic ListModelSource(java.util.Iterator listSource)
listSource
- TODO: Describe the Parameterpublic ListModelSource(java.util.Enumeration listSource)
listSource
- TODO: Describe the ParameterMethod Detail |
public boolean isModelBased()
public boolean isList()
public ModelChangeEventSource getListSourceModel()
public java.lang.Object getListSource()
public Selector getListSourceSelector()
public void addToList(java.util.List list)
list
- The element to be added to the ToList attribute
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |