T - The model object typepublic class CompoundPropertyModel<T> extends ChainingModel<T> implements IComponentInheritedModel<T>
IModel,
Model,
LoadableDetachableModel,
IChainingModel,
Serialized Form| Constructor and Description |
|---|
CompoundPropertyModel(IModel<T> model)
Constructor
|
CompoundPropertyModel(T object)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
<S> IModel<S> |
bind(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.
|
static <Z> CompoundPropertyModel<Z> |
of(IModel<Z> model)
Type-infering factory method
|
protected String |
propertyExpression(Component component)
Returns the property expression that should be used against the target object
|
<C> IWrapModel<C> |
wrapOnInheritance(Component component) |
detach, getChainedModel, getObject, getTarget, setChainedModel, setObject, setTarget, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdetachpublic CompoundPropertyModel(IModel<T> model)
model - The modelpublic CompoundPropertyModel(T object)
object - The model objectprotected String propertyExpression(Component component)
component - public <C> IWrapModel<C> wrapOnInheritance(Component component)
wrapOnInheritance in interface IComponentInheritedModel<T>C - the model object type of the wrapped modelIComponentInheritedModel.wrapOnInheritance(org.apache.wicket.Component)public <S> IModel<S> bind(String property)
S - the type of the propertyproperty - the name that will be used to findpublic static <Z> CompoundPropertyModel<Z> of(IModel<Z> model)
Z - the type of the model's objectmodel - modelCompoundPropertyModel instanceCopyright © 2006–2021 Apache Software Foundation. All rights reserved.