|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.model.AbstractDetachableModel
wicket.model.AbstractPropertyModel
Serves as a base class for different kinds of property models.
AbstractDetachableModel,
Serialized Form| Constructor Summary | |
AbstractPropertyModel(java.lang.Object modelObject)
Constructor |
|
| Method Summary | |
IModel |
getNestedModel()
Gets the nested model. |
protected java.lang.Object |
modelObject(Component component)
|
protected abstract java.lang.String |
ognlExpression(Component component)
|
protected void |
onAttach()
Attaches to the current request. |
protected void |
onDetach()
Unsets this property model's instance variables and detaches the model. |
protected java.lang.Object |
onGetObject(Component component)
Called when getObject is called in order to retrieve the detachable object. |
protected void |
onSetObject(Component component,
java.lang.Object object)
Applies the Ognl expression on the model object using the given object argument (Ognl.setValue). |
protected abstract java.lang.Class |
propertyType(Component component)
|
java.lang.String |
toString()
|
| Methods inherited from class wicket.model.AbstractDetachableModel |
attach, detach, getObject, isAttached, setObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractPropertyModel(java.lang.Object modelObject)
modelObject - The nested model object| Method Detail |
public final IModel getNestedModel()
getNestedModel in interface IModelgetNestedModel in class AbstractDetachableModelnull when this is the
final model in the hierarchyIModel.getNestedModel()protected java.lang.Object modelObject(Component component)
component - The component to get the model object for
protected abstract java.lang.String ognlExpression(Component component)
component - The component to get an OGNL expression for
protected void onAttach()
AbstractDetachableModel
onAttach in class AbstractDetachableModelAbstractDetachableModel.onAttach()protected void onDetach()
onDetach in class AbstractDetachableModelAbstractDetachableModel.onDetach()protected java.lang.Object onGetObject(Component component)
AbstractDetachableModel
onGetObject in class AbstractDetachableModelcomponent - The component asking for the object
AbstractDetachableModel.onGetObject(wicket.Component)
protected void onSetObject(Component component,
java.lang.Object object)
onSetObject in class AbstractDetachableModelobject - the object that will be used when applying Ognl.setValue on
the model objectcomponent - The component asking for replacement of the model objectAbstractDetachableModel.onSetObject(Component, Object)protected abstract java.lang.Class propertyType(Component component)
component - The component
public java.lang.String toString()
toString in class AbstractDetachableModelObject.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||