org.jbeans
Class BaseEvent
java.lang.Object
|
+--java.util.EventObject
|
+--org.jbeans.BaseEvent
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ConversionEvent, PropertyEvent
- public abstract class BaseEvent
- extends EventObject
This class is the base event that all events will extends from. It
contains the fundamental items that all events should have. Since
this event derives from the EeventObject, the source of the event
is the BaseBeanProperty object that created the event.
- Author:
- Brian Pontarelli
- See Also:
- Serialized Form
BaseEvent
public BaseEvent(BaseBeanProperty property,
Object oldValue,
Object newValue,
Object bean)
- Creates a new base event using the values given
getPropertyName
public String getPropertyName()
- Retrieves the name of the property the event occurred for
getPropertyType
public Class getPropertyType()
- Returns the type of the property the event occurred for
getFullName
public String getFullName()
- Returns the full name of the property the event occurred for
getOldValue
public Object getOldValue()
- Returns the old value. This is different for each type of event, so
please consult the sub-classes for a more complete description of
this method.
getNewValue
public Object getNewValue()
- Returns the new value. This is different for each type of event, so
please consult the sub-classes for a more complete description of
this method.
getBean
public Object getBean()
- Returns the bean object whose property the event occurred for