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

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

public class WildcardCollectionModel<T>
extends GenericBaseModel<java.util.Collection<? extends T>>

Based on Model but for any collections of serializable objects.

Author:
Timo Rantalaiho
See Also:
Serialized Form

Constructor Summary
WildcardCollectionModel()
          Creates empty model
WildcardCollectionModel(java.util.Collection<? extends T> collection)
          Creates model that will contain collection
 
Method Summary
protected  java.util.Collection<? extends T> createSerializableVersionOf(java.util.Collection<? extends 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

WildcardCollectionModel

public WildcardCollectionModel()
Creates empty model


WildcardCollectionModel

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

Parameters:
collection -
Method Detail

createSerializableVersionOf

protected java.util.Collection<? extends T> createSerializableVersionOf(java.util.Collection<? extends T> object)
Creates a serializable version of the object. The object is usually a collection.

Specified by:
createSerializableVersionOf in class GenericBaseModel<java.util.Collection<? extends T>>
Returns:
serializable version of object


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