org.apache.tapestry.event
Class ObservedChangeEvent
java.lang.Object
java.util.EventObject
org.apache.tapestry.event.ObservedChangeEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ObservedChangeEvent
- extends java.util.EventObject
Event which describes a change to a particular IComponent
.
- Author:
- Howard Ship
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ObservedChangeEvent
public ObservedChangeEvent(IComponent component,
java.lang.String propertyName,
java.lang.Object newValue)
- Creates the event. The new value must be null, or be a serializable object. (It is declared
as Object as a concession to the Java 2 collections framework, where the implementations are
serializable but the interfaces (Map, List, etc.) don't extend Serializable ... so we wait
until runtime to check).
- Parameters:
component
- The component (not necessarily a page) whose property changed.propertyName
- the name of the property which was changed.newValue
- The new value of the property.
- Throws:
java.lang.IllegalArgumentException
- if propertyName is null, or if the new value is not serializable
getComponent
public IComponent getComponent()
getNewValue
public java.lang.Object getNewValue()
getPropertyName
public java.lang.String getPropertyName()