org.apache.wicket.model.util
Class CollectionModel<T>

java.lang.Object
  extended by org.apache.wicket.model.util.GenericBaseModel<java.util.Collection<T>>
      extended by org.apache.wicket.model.util.CollectionModel<T>
Type Parameters:
T - type of object inside collection
All Implemented Interfaces:
java.io.Serializable, IClusterable, IDetachable, IModel<java.util.Collection<T>>

public class CollectionModel<T>
extends GenericBaseModel<java.util.Collection<T>>

Based on Model but for any collections of serializable objects.

Author:
Timo Rantalaiho
See Also:
Serialized Form

Constructor Summary
CollectionModel()
          Creates empty model
CollectionModel(java.util.Collection<T> collection)
          Creates model that will contain collection
 
Method Summary
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, hashCode, setObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionModel

public CollectionModel()
Creates empty model


CollectionModel

public CollectionModel(java.util.Collection<T> collection)
Creates model that will contain collection

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 class GenericBaseModel<java.util.Collection<T>>
Returns:
serializable version of object


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.