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
.
- Version:
- $Id: ObservedChangeEvent.java,v 1.3 2003/05/28 13:41:48 hlship Exp $
- Author:
- Howard Ship
- See Also:
- Serialized Form
Constructor Summary |
ObservedChangeEvent(IComponent component,
String propertyName,
boolean newValue)
|
ObservedChangeEvent(IComponent component,
String propertyName,
byte newValue)
|
ObservedChangeEvent(IComponent component,
String propertyName,
char newValue)
|
ObservedChangeEvent(IComponent component,
String propertyName,
double newValue)
|
ObservedChangeEvent(IComponent component,
String propertyName,
float newValue)
|
ObservedChangeEvent(IComponent component,
String propertyName,
int newValue)
|
ObservedChangeEvent(IComponent component,
String propertyName,
long newValue)
|
ObservedChangeEvent(IComponent component,
String propertyName,
Object newValue)
Creates the event. |
ObservedChangeEvent(IComponent component,
String propertyName,
short newValue)
|
ObservedChangeEvent
public ObservedChangeEvent(IComponent component,
String propertyName,
char newValue)
ObservedChangeEvent
public ObservedChangeEvent(IComponent component,
String propertyName,
byte newValue)
ObservedChangeEvent
public ObservedChangeEvent(IComponent component,
String propertyName,
short newValue)
ObservedChangeEvent
public ObservedChangeEvent(IComponent component,
String propertyName,
int newValue)
ObservedChangeEvent
public ObservedChangeEvent(IComponent component,
String propertyName,
long newValue)
ObservedChangeEvent
public ObservedChangeEvent(IComponent component,
String propertyName,
double newValue)
ObservedChangeEvent
public ObservedChangeEvent(IComponent component,
String propertyName,
float newValue)
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)
getComponent
public IComponent getComponent()
getNewValue
public Object getNewValue()
getPropertyName
public String getPropertyName()