org.apache.tapestry.event
Class ObservedChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.apache.tapestry.event.ObservedChangeEvent
All Implemented Interfaces:
Serializable

public class ObservedChangeEvent
extends EventObject

Event which describes a change to a particular IComponent.

Version:
$Id: ObservedChangeEvent.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Ship
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ObservedChangeEvent(IComponent component, String propertyName, boolean newValue)
          Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.
ObservedChangeEvent(IComponent component, String propertyName, byte newValue)
          Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.
ObservedChangeEvent(IComponent component, String propertyName, char newValue)
          Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.
ObservedChangeEvent(IComponent component, String propertyName, double newValue)
          Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.
ObservedChangeEvent(IComponent component, String propertyName, float newValue)
          Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.
ObservedChangeEvent(IComponent component, String propertyName, int newValue)
          Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.
ObservedChangeEvent(IComponent component, String propertyName, long newValue)
          Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.
ObservedChangeEvent(IComponent component, String propertyName, Object newValue)
          Creates the event.
ObservedChangeEvent(IComponent component, String propertyName, short newValue)
          Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.
 
Method Summary
 IComponent getComponent()
           
 Object getNewValue()
           
 String getPropertyName()
           
 
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
 

Constructor Detail

ObservedChangeEvent

public ObservedChangeEvent(IComponent component,
                           String propertyName,
                           char newValue)
Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.


ObservedChangeEvent

public ObservedChangeEvent(IComponent component,
                           String propertyName,
                           byte newValue)
Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.


ObservedChangeEvent

public ObservedChangeEvent(IComponent component,
                           String propertyName,
                           short newValue)
Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.


ObservedChangeEvent

public ObservedChangeEvent(IComponent component,
                           String propertyName,
                           int newValue)
Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.


ObservedChangeEvent

public ObservedChangeEvent(IComponent component,
                           String propertyName,
                           long newValue)
Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.


ObservedChangeEvent

public ObservedChangeEvent(IComponent component,
                           String propertyName,
                           double newValue)
Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.


ObservedChangeEvent

public ObservedChangeEvent(IComponent component,
                           String propertyName,
                           float newValue)
Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.


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

ObservedChangeEvent

public ObservedChangeEvent(IComponent component,
                           String propertyName,
                           boolean newValue)
Deprecated. To be removed in 3.1. Use ObservedChangeEvent(IComponent, String, Object) instead.

Method Detail

getComponent

public IComponent getComponent()

getNewValue

public Object getNewValue()

getPropertyName

public String getPropertyName()