org.apache.wicket.model.util
Class MapModel<K,V>

java.lang.Object
  extended by org.apache.wicket.model.util.GenericBaseModel<Map<K,V>>
      extended by org.apache.wicket.model.util.MapModel<K,V>
Type Parameters:
K - map's key type
V - map's value type
All Implemented Interfaces:
Serializable, IClusterable, IDetachable, IModel<Map<K,V>>

public class MapModel<K,V>
extends GenericBaseModel<Map<K,V>>

Based on Model but for maps of serializable objects.

Author:
Timo Rantalaiho
See Also:
Serialized Form

Constructor Summary
MapModel()
          Creates empty model
MapModel(Map<K,V> map)
          Creates model that will contain map
 
Method Summary
protected  Map<K,V> createSerializableVersionOf(Map<K,V> 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

MapModel

public MapModel()
Creates empty model


MapModel

public MapModel(Map<K,V> map)
Creates model that will contain map

Parameters:
map -
Method Detail

createSerializableVersionOf

protected Map<K,V> createSerializableVersionOf(Map<K,V> object)
Creates a serializable version of the object. The object is usually a collection.

Specified by:
createSerializableVersionOf in class GenericBaseModel<Map<K,V>>
Returns:
serializable version of object


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