|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IModel
A IModel wraps the actual model Object used by a Component. IModel implementations are used as a facade for the real model so that users have control over the actual persistence strategy. Note that objects implementing this interface will be stored in the Session. Hence, you should use (non-transient) instance variables sparingly.
AbstractModel, or use the simple model wrapper Model
directly.
IDetachable.detach(), so that interface implementers can detach
transient information when a model is no longer being actively used by the
framework. This reduces memory use and reduces the expense of replicating the
model in a clustered server environment. To implement a detachable model, you
should generally extend org.apache.wicket.model.AbstractDetachableModelinstead
of implementing IModel directly.
getObject()method is called, the value returned will
depend on the Component which is asking for the value. Likewise, the
setObject(Object)method sets a different property depending
on which Component is doing the setting. For more information on
CompoundPropertyModels and model inheritance, see
CompoundPropertyModeland Page.
Component.sameInnermostModel(org.apache.wicket.Component),
Component.sameInnermostModel(IModel)| Method Summary | |
|---|---|
java.lang.Object |
getObject()
Gets the model object. |
void |
setObject(java.lang.Object object)
Sets the model object. |
| Methods inherited from interface org.apache.wicket.model.IDetachable |
|---|
detach |
| Method Detail |
|---|
java.lang.Object getObject()
void setObject(java.lang.Object object)
object - The model object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||