T - The Model object typepublic class ChainingModel<T> extends Object implements IChainingModel<T>
CompoundPropertyModel,
AbstractPropertyModel,
Serialized Form| Constructor and Description |
|---|
ChainingModel(Object modelObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
detach()
Unsets this property model's instance variables and detaches the model.
|
IModel<?> |
getChainedModel()
Returns the chained model if there is a chained model.
|
T |
getObject()
Gets the model object.
|
protected Object |
getTarget() |
void |
setChainedModel(IModel<?> model)
Sets the model that is chained inside this model.
|
void |
setObject(T object)
Sets the model object.
|
protected ChainingModel<T> |
setTarget(Object modelObject)
Sets a new target - object or model
|
String |
toString() |
public ChainingModel(Object modelObject)
public void detach()
detach in interface IDetachableIDetachable.detach()public void setObject(T object)
IModelsetObject in interface IModel<T>object - The model objectIModel.setObject(java.lang.Object)public T getObject()
IModelgetObject in interface IModel<T>IModel.getObject()public IModel<?> getChainedModel()
IChainingModelgetChainedModel in interface IChainingModel<T>IChainingModel.getChainedModel()public void setChainedModel(IModel<?> model)
IChainingModelsetChainedModel in interface IChainingModel<T>IChainingModel.setChainedModel(org.apache.wicket.model.IModel)protected final Object getTarget()
protected final ChainingModel<T> setTarget(Object modelObject)
public String toString()
toString in class ObjectObject.toString()Copyright © 2006–2021 Apache Software Foundation. All rights reserved.