org.apache.tapestry.event
Interface ChangeObserver

All Known Subinterfaces:
IPageRecorder
All Known Implementing Classes:
PageRecorderImpl

public interface ChangeObserver

May observe changes in an object's properties. This is a "weak" variation on JavaBean's style bound properties. It is used when there will be at most a single listener on property changes, and that the listener is not interested in the old value.

Author:
Howard Lewis Ship

Method Summary
 boolean isLocked()
          Checks if the current state changes have already been committed.
 void observeChange(ObservedChangeEvent event)
          Sent when the observed object changes a property.
 

Method Detail

observeChange

void observeChange(ObservedChangeEvent event)
Sent when the observed object changes a property. The event identifies the object, the property and the new value.


isLocked

boolean isLocked()
Checks if the current state changes have already been committed.

Returns:
True if state changes are locked, false otherwise.


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