|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.taursys.model.AbstractCollectionValueHolder com.taursys.model.ObjectCollectionValueHolder
This class is a ValueHolder which contains a Collection of Objects. All get/setPropertyValue methods return the whole Object. It provides access to a current object via an internal iterator. The next and reset methods control the position in the collection. The hasNext indicates whether there is another object in the collection (used before invoking next).
You must invoke the next() method before invoking any method which acts on the valueObject (getValueObject, getPropertyValue, setPropertyValue). The next() method will retrieve a ValueObject from the collection and hold it for access and modification.
This ValueHolder also support connection to a parentValueHolder to provide its Collection. This is used for hierarchical data representations (master/detail). To make use of this feature, set the parentValueHolder and the property name which holds the Collection in the parent via the parentPropertyName property. This object will then be notified of changes in the parent and will retrieve its new Collection.
Constructor Summary | |
ObjectCollectionValueHolder()
Constructs an ObjectCollectionValueHolder. |
|
ObjectCollectionValueHolder(java.util.Collection collection)
Constructs a new ObjectCollectionValueHolder for the given collection. |
|
ObjectCollectionValueHolder(java.lang.Object[] array)
Constructs an ObjectCollectionValueHolder with the given array of Objects as its Collection. |
Methods inherited from class com.taursys.model.AbstractCollectionValueHolder |
add, addAll, addChangeListener, clear, contains, containsAll, getAlias, getCollection, getJavaDataType, getObject, getObjectValueHolder, getParentPropertyName, getParentValueHolder, getPropertyValue, getPropertyValues, hasNext, isEmpty, iterator, next, remove, removeAll, removeChangeListener, reset, retainAll, setAlias, setCollection, setObject, setParentPropertyName, setParentValueHolder, setPropertyValue, setPropertyValues, size, stateChanged, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.taursys.model.CollectionValueHolder |
equals, hashCode |
Constructor Detail |
public ObjectCollectionValueHolder()
public ObjectCollectionValueHolder(java.lang.Object[] array)
public ObjectCollectionValueHolder(java.util.Collection collection)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |