|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.model.ChainingModel<T> org.apache.wicket.model.CompoundPropertyModel<T>
T
- The model object typepublic class CompoundPropertyModel<T>
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 FormConstructor Summary | |
---|---|
CompoundPropertyModel(IModel<T> model)
Constructor |
|
CompoundPropertyModel(T object)
Constructor |
Method Summary | ||
---|---|---|
|
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
|
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 |
|
|
wrapOnInheritance(Component component)
|
Methods inherited from class org.apache.wicket.model.ChainingModel |
---|
detach, getChainedModel, getObject, getTarget, setChainedModel, setObject, setTarget, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.wicket.model.IModel |
---|
getObject, setObject |
Methods inherited from interface org.apache.wicket.model.IDetachable |
---|
detach |
Constructor Detail |
---|
public CompoundPropertyModel(IModel<T> model)
model
- The modelpublic CompoundPropertyModel(T object)
object
- The model objectMethod Detail |
---|
protected 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 model
IComponentInheritedModel.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 find
public static <Z> CompoundPropertyModel<Z> of(IModel<Z> model)
Z
- the type of the model's objectmodel
- model
CompoundPropertyModel
instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |