org.syphr.prom
Class PropertyEvent<T>

java.lang.Object
  extended by java.util.EventObject
      extended by org.syphr.prom.PropertyEvent<T>
Type Parameters:
T - the type of objects used to defined the property keys
All Implemented Interfaces:
Serializable

public class PropertyEvent<T>
extends EventObject

This event class encapsulates an event concerning a single property or a set of properties.

Author:
Gregory P. Moyer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PropertyEvent(PropertiesManager<T> source, T property)
          Construct a new event.
 
Method Summary
 T getProperty()
          Get the property associated with this event.
 PropertiesManager<T> getSource()
           
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyEvent

public PropertyEvent(PropertiesManager<T> source,
                     T property)
Construct a new event.

Parameters:
source - the manager that triggered this event
property - the property to which this event corresponds (may be null for multi-property events)
Method Detail

getSource

public PropertiesManager<T> getSource()
Overrides:
getSource in class EventObject

getProperty

public T getProperty()
Get the property associated with this event.

Returns:
the property associated with this event or null in the case of a multi-property event


Copyright © 2010-2012 Gregory P. Moyer. All Rights Reserved.