|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.model.AbstractModel
wicket.model.Model
public class Model
Model is the basic implementation of an AbstractModel. 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
AbstractDetachableModelinstead of this class.
| Constructor Summary | |
|---|---|
Model()
Construct the model without providing an object. |
|
Model(java.io.Serializable object)
Construct the model, setting the given object as the wrapped object. |
|
| Method Summary | |
|---|---|
IModel |
getNestedModel()
This default implementation of getNestedModel unconditionally returns null. |
java.lang.Object |
getObject(Component component)
Gets the model object. |
void |
setObject(Component component,
java.lang.Object object)
Set the model object; calls setObject(java.io.Serializable). |
void |
setObject(java.io.Serializable object)
Sets the model object. |
java.lang.String |
toString()
|
static Model |
valueOf(java.util.List list)
|
static Model |
valueOf(java.util.Map map)
|
| Methods inherited from class wicket.model.AbstractModel |
|---|
detach |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Model()
public Model(java.io.Serializable object)
object - The model object proper| Method Detail |
|---|
public static Model valueOf(java.util.Map map)
map - The Map, which may or may not be Serializable
public static Model valueOf(java.util.List list)
list - The List, which may or may not be Serializable
public IModel getNestedModel()
AbstractModel
getNestedModel in interface IModelgetNestedModel in class AbstractModelIModel.getNestedModel()public java.lang.Object getObject(Component component)
IModel
component - The component which wants to get a model Object
IModel.getObject(wicket.Component)
public void setObject(Component component,
java.lang.Object object)
object - the model objectcomponent - The component which wants to set a new model ObjectIModel.setObject(Component, Object)public void setObject(java.io.Serializable object)
object - The serializable model objectIModel.setObject(Component, Object)public java.lang.String toString()
toString in class AbstractModelObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||