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

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

public class ListModel<T>
extends GenericBaseModel<java.util.List<T>>

Based on Model but for lists of serializable objects.

Author:
Timo Rantalaiho
See Also:
Serialized Form

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

ListModel

public ListModel()
Creates empty model


ListModel

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

Parameters:
list -
Method Detail

createSerializableVersionOf

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

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


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