org.apache.tapestry.event
Class ObservedChangeEvent
java.lang.Object
java.util.EventObject
org.apache.tapestry.event.ObservedChangeEvent
- All Implemented Interfaces:
- Serializable
public class ObservedChangeEvent
- extends EventObject
Event which describes a change to a particular IComponent
.
- Author:
- Howard Ship
- See Also:
- Serialized Form
ObservedChangeEvent
public ObservedChangeEvent(IComponent component,
String propertyName,
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:
IllegalArgumentException
- if propertyName is null, or if the new value is not
serializable
getComponent
public IComponent getComponent()
getNewValue
public Object getNewValue()
getPropertyName
public String getPropertyName()
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.