org.syphr.prom
Class PropertyEvent<T>
java.lang.Object
java.util.EventObject
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
PropertyEvent
public PropertyEvent(PropertiesManager<T> source,
T property)
- Construct a new event.
- Parameters:
source
- the manager that triggered this eventproperty
- the property to which this event corresponds (may be null
for multi-property events)
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.