|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.model.AbstractReadOnlyModel org.apache.wicket.model.ComponentPropertyModel
public class ComponentPropertyModel
A model that references a property by name on the current model of the component it is bound to. This enables direct usage of inherited models such as compound property models.
Constructor Summary | |
---|---|
ComponentPropertyModel(java.lang.String propertyName)
Constructor |
Method Summary | |
---|---|
java.lang.Object |
getObject()
Gets the model object. |
IWrapModel |
wrapOnAssignment(Component component)
This method is called when the component gets its model assigned. |
Methods inherited from class org.apache.wicket.model.AbstractReadOnlyModel |
---|
detach, getObject, setObject, 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 |
---|
setObject |
Methods inherited from interface org.apache.wicket.model.IDetachable |
---|
detach |
Constructor Detail |
---|
public ComponentPropertyModel(java.lang.String propertyName)
propertyName
- The name of the property to referenceMethod Detail |
---|
public java.lang.Object getObject()
IModel
getObject
in interface IModel
getObject
in class AbstractReadOnlyModel
AbstractReadOnlyModel.getObject()
public IWrapModel wrapOnAssignment(Component component)
IComponentAssignedModel
wrapOnAssignment
in interface IComponentAssignedModel
IComponentAssignedModel.wrapOnAssignment(org.apache.wicket.Component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |