wicket.model
Class CompoundPropertyModel

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

public class CompoundPropertyModel
extends AbstractPropertyModel
implements ICompoundModel

A simple compound model which uses the component's name as the OGNL 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 ognlExpression(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

ognlExpression

protected java.lang.String ognlExpression(Component component)
Specified by:
ognlExpression in class AbstractPropertyModel
Parameters:
component - The component to get an OGNL expression for
Returns:
The OGNL expression for the component
See Also:
AbstractPropertyModel.ognlExpression(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-2006 Wicket developers. All Rights Reserved.