Package org.apache.wicket.model.util
Class CollectionModel<T>
- java.lang.Object
-
- org.apache.wicket.model.util.GenericBaseModel<java.util.Collection<T>>
-
- org.apache.wicket.model.util.CollectionModel<T>
-
- Type Parameters:
T
- type of object inside collection
- All Implemented Interfaces:
java.io.Serializable
,IDetachable
,IModel<java.util.Collection<T>>
,IObjectClassAwareModel<java.util.Collection<T>>
,org.apache.wicket.util.io.IClusterable
public class CollectionModel<T> extends GenericBaseModel<java.util.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(java.util.Collection<T> collection)
Creates model that will containcollection
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Collection<T>
createSerializableVersionOf(java.util.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(java.util.Collection<T> collection)
Creates model that will containcollection
- Parameters:
collection
-
-
-
Method Detail
-
createSerializableVersionOf
protected java.util.Collection<T> createSerializableVersionOf(java.util.Collection<T> object)
Creates a serializable version of the object. The object is usually a collection.- Specified by:
createSerializableVersionOf
in classGenericBaseModel<java.util.Collection<T>>
- Returns:
- serializable version of
object
-
-