org.apache.wicket.model
Class BoundCompoundPropertyModel

java.lang.Object
  extended by org.apache.wicket.model.CompoundPropertyModel
      extended by org.apache.wicket.model.BoundCompoundPropertyModel
All Implemented Interfaces:
java.io.Serializable, IClusterable, IChainingModel, IComponentInheritedModel, IDetachable, IModel

public class BoundCompoundPropertyModel
extends CompoundPropertyModel

A compound property model that supports type conversions and property expression bindings.

Author:
Jonathan Locke
See Also:
Serialized Form

Constructor Summary
BoundCompoundPropertyModel(java.lang.Object model)
          Constructor
 
Method Summary
 Component bind(Component component)
          Adds a property binding, using the component's id as the property expression.
 Component bind(Component component, java.lang.String propertyExpression)
          Adds a property binding.
 void detach()
          Detaches model after use.
protected  java.lang.String propertyExpression(Component component)
          Returns the property expression that should be used against the target object
 java.lang.String toString()
           
 
Methods inherited from class org.apache.wicket.model.CompoundPropertyModel
bind, getChainedModel, getObject, getObject, setChainedModel, setObject, setObject, wrapOnInheritance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BoundCompoundPropertyModel

public BoundCompoundPropertyModel(java.lang.Object model)
Constructor

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

bind

public Component bind(Component component)
Adds a property binding, using the component's id as the property expression.

Parameters:
component - The component to bind
Returns:
The component, for convenience in adding components

bind

public Component bind(Component component,
                      java.lang.String propertyExpression)
Adds a property binding.

Parameters:
component - The component to bind
propertyExpression - A property expression pointing to the property in this model
Returns:
The component, for convenience in adding components

detach

public void detach()
Description copied from interface: IDetachable
Detaches model after use. This is generally used to null out transient references that can be re-attached later.

Specified by:
detach in interface IDetachable
Overrides:
detach in class CompoundPropertyModel
See Also:
CompoundPropertyModel.detach()

toString

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

propertyExpression

protected java.lang.String propertyExpression(Component component)
Description copied from class: CompoundPropertyModel
Returns the property expression that should be used against the target object

Overrides:
propertyExpression in class CompoundPropertyModel
Returns:
property expression that should be used against the target object
See Also:
CompoundPropertyModel.propertyExpression(org.apache.wicket.Component)


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.