|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.model.CompoundPropertyModel
public class CompoundPropertyModel
A simple compound model which uses the component's name as the property expression to retrieve properties on the nested model object. CompoundPropertyModel is a chaining model so it will call get/setobject on the given object if the object is an instanceof IModel itself.
IModel,
Model,
LoadableDetachableModel,
IChainingModel,
Serialized Form| Constructor Summary | |
|---|---|
CompoundPropertyModel(java.lang.Object object)
Constructor |
|
| Method Summary | |
|---|---|
IModel |
bind(java.lang.String property)
Binds this model to a special property by returning a model that has this compound model as its nested/wrapped model and the property which should be evaluated. |
void |
detach()
Detaches model after use. |
IModel |
getChainedModel()
Returns the chained model if there is a chained model. |
java.lang.Object |
getObject()
Gets the model object. |
java.lang.Object |
getObject(Component component)
Deprecated. replace by IModel.getObject(). |
protected java.lang.String |
propertyExpression(Component component)
Returns the property expression that should be used against the target object |
void |
setChainedModel(IModel model)
Sets the model that is chained inside this model. |
void |
setObject(Component component,
java.lang.Object object)
Deprecated. replace by IModel.setObject(Object). |
void |
setObject(java.lang.Object object)
Sets the model object. |
java.lang.String |
toString()
|
IWrapModel |
wrapOnInheritance(Component component)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompoundPropertyModel(java.lang.Object object)
object - The model object, which may or may not implement IModel| Method Detail |
|---|
public java.lang.Object getObject()
IModel
getObject in interface IModelIModel.getObject()public void setObject(java.lang.Object object)
IModel
setObject in interface IModelobject - The model objectIModel.setObject(java.lang.Object)public IModel getChainedModel()
IChainingModel
getChainedModel in interface IChainingModelIChainingModel.getChainedModel()public void setChainedModel(IModel model)
IChainingModel
setChainedModel in interface IChainingModelIChainingModel.setChainedModel(org.apache.wicket.model.IModel)public void detach()
IDetachable
detach in interface IDetachableIDetachable.detach()protected java.lang.String propertyExpression(Component component)
component -
public IWrapModel wrapOnInheritance(Component component)
wrapOnInheritance in interface IComponentInheritedModelIComponentInheritedModel.wrapOnInheritance(org.apache.wicket.Component)public IModel bind(java.lang.String property)
property -
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public final java.lang.Object getObject(Component component)
IModel.getObject().
component -
public final void setObject(Component component,
java.lang.Object object)
IModel.setObject(Object).
component - object -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||