wicket.model
Class CompoundPropertyModel

java.lang.Object
  extended by wicket.model.AbstractDetachableModel
      extended by wicket.model.AbstractPropertyModel
          extended by wicket.model.CompoundPropertyModel
All Implemented Interfaces:
java.io.Serializable, ICompoundModel, IDetachable, IModel
Direct Known Subclasses:
BoundCompoundPropertyModel

public class CompoundPropertyModel
extends AbstractPropertyModel
implements ICompoundModel

A simple compound model which uses the component's name as the property expression to retrieve properties on the nested model object.

Author:
Jonathan Locke
See Also:
IModel, Model, AbstractDetachableModel, Serialized Form

Constructor Summary
CompoundPropertyModel(java.lang.Object model)
          Constructor
 
Method Summary
protected  java.lang.String propertyExpression(Component component)
           
protected  java.lang.Class propertyType(Component component)
           
 java.lang.String toString()
           
 
Methods inherited from class wicket.model.AbstractPropertyModel
getNestedModel, modelObject, onAttach, onDetach, onGetObject, onSetObject
 
Methods inherited from class wicket.model.AbstractDetachableModel
attach, detach, getObject, isAttached, setObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wicket.model.IModel
getNestedModel, getObject, setObject
 
Methods inherited from interface wicket.model.IDetachable
detach
 

Constructor Detail

CompoundPropertyModel

public CompoundPropertyModel(java.lang.Object model)
Constructor

Parameters:
model - The model object, which may or may not implement IModel
Method Detail

propertyExpression

protected java.lang.String propertyExpression(Component component)
Specified by:
propertyExpression in class AbstractPropertyModel
Parameters:
component - The component to get a property expression for
Returns:
The property expression for the component
See Also:
AbstractPropertyModel.propertyExpression(wicket.Component)

propertyType

protected java.lang.Class propertyType(Component component)
Specified by:
propertyType in class AbstractPropertyModel
Parameters:
component - The component
Returns:
The property type
See Also:
AbstractPropertyModel.propertyType(wicket.Component)

toString

public java.lang.String toString()
Overrides:
toString in class AbstractPropertyModel
See Also:
Object.toString()


Copyright © 2004-2007 Wicket developers. All Rights Reserved.