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

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

public class WildcardListModel<T>
extends GenericBaseModel<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(List<? extends T> list)
          Creates model that will contain list
 
Method Summary
protected  List<? extends T> createSerializableVersionOf(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(List<? extends T> list)
Creates model that will contain list

Parameters:
list -
Method Detail

createSerializableVersionOf

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

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


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