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

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

public class WildcardListModel<T>
extends GenericBaseModel<java.util.List<? extends T>>

Based on Model but for lists of serializable objects.

Author:
Timo Rantalaiho
See Also:
Serialized Form

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

WildcardListModel

public WildcardListModel()
Creates empty model


WildcardListModel

public WildcardListModel(java.util.List<? extends T> list)
Creates model that will contain list

Parameters:
list -
Method Detail

createSerializableVersionOf

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

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


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