org.apache.tapestry.record
Interface PropertyChangeObserver


public interface PropertyChangeObserver

Core service that is consulted anytime a specified component property is set. This service is intended to be used as a means of intercepting component property state objects so that their individual properties can be observed independently from basic set/get operations done on page/component properties.


Method Summary
 Object observePropertyChanges(IComponent component, Object property, String propertyName)
          Invoked by the enhanced property workers any time a IComponent property is set, either by an initial value binding or explicitly through an abstract setter.
 

Method Detail

observePropertyChanges

Object observePropertyChanges(IComponent component,
                              Object property,
                              String propertyName)
Invoked by the enhanced property workers any time a IComponent property is set, either by an initial value binding or explicitly through an abstract setter.

Parameters:
component - The component that this property is attached to.
property - The object to observe changes on, may be null.
propertyName - The name of the property being observed - needed for doing things like calling Tapestry.fireObservedChange(IComponent, String, Object).
Returns:
Expected to return either the same exact instance passed in or one that is proxied but still maintains the original state of the object.


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.