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
Based on
Model
but for any collections of serializable objects.- Author:
- Timo Rantalaiho
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates empty modelCollectionModel
(Collection<T> collection) Creates model that will containcollection
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
CollectionModel
public CollectionModel()Creates empty model -
CollectionModel
Creates model that will containcollection
- Parameters:
collection
-
-
-
Method Details
-
createSerializableVersionOf
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
-