package org.apache.wicket.model;
Model is the basic implementation of an
IModel. It just wraps a
simple model object. The model object must be serializable, as it is stored in the session. If
you have large objects to store, consider using
LoadableDetachableModel instead of this class.
- Author(s):
- Chris Turner
- Eelco Hillenius
Construct the model without providing an object.
Construct the model, setting the given object as the wrapped object.
- Parameters:
object
The model object proper
- Parameters:
map
The Map, which may or may not be Serializable- Returns:
- A Model object wrapping the Map
- Parameters:
list
The List, which may or may not be Serializable- Returns:
- A Model object wrapping the List
Set the model object; calls setObject(java.io.Serializable). The model object must be
serializable, as it is stored in the session
Sets the model object. The model object must be serializable, as it is stored in the session