|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.model.AbstractReadOnlyModel<T>
org.apache.wicket.model.ComponentPropertyModel<T>
T - The Model objectpublic class ComponentPropertyModel<T>
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 | |
|---|---|
T |
getObject()
Gets the model object. |
IWrapModel<T> |
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 reference| Method Detail |
|---|
public T getObject()
IModel
getObject in interface IModel<T>getObject in class AbstractReadOnlyModel<T>AbstractReadOnlyModel.getObject()public IWrapModel<T> wrapOnAssignment(Component component)
IComponentAssignedModel
wrapOnAssignment in interface IComponentAssignedModel<T>IComponentAssignedModel.wrapOnAssignment(org.apache.wicket.Component)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||