Package org.apache.wicket.model.util
Class CollectionModel<T>
- java.lang.Object
-
- org.apache.wicket.model.util.GenericBaseModel<Collection<T>>
-
- org.apache.wicket.model.util.CollectionModel<T>
-
- Type Parameters:
T
- type of object inside collection
- All Implemented Interfaces:
Serializable
,IDetachable
,IModel<Collection<T>>
,IObjectClassAwareModel<Collection<T>>
,IClusterable
public class CollectionModel<T> extends GenericBaseModel<Collection<T>>
Based onModel
but for any collections of serializable objects.- Author:
- Timo Rantalaiho
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CollectionModel()
Creates empty modelCollectionModel(Collection<T> collection)
Creates model that will containcollection
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<T>
createSerializableVersionOf(Collection<T> object)
Creates a serializable version of the object.-
Methods inherited from class org.apache.wicket.model.util.GenericBaseModel
detach, equals, getObject, getObjectClass, hashCode, setObject, toString
-
-
-
-
Constructor Detail
-
CollectionModel
public CollectionModel()
Creates empty model
-
CollectionModel
public CollectionModel(Collection<T> collection)
Creates model that will containcollection
- Parameters:
collection
-
-
-
Method Detail
-
createSerializableVersionOf
protected Collection<T> createSerializableVersionOf(Collection<T> object)
Creates a serializable version of the object. The object is usually a collection.- Specified by:
createSerializableVersionOf
in classGenericBaseModel<Collection<T>>
- Returns:
- serializable version of
object
-
-