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

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BaseEvent(BaseBeanProperty property, Object oldValue, Object newValue, Object bean)
          Creates a new base event using the values given
 
Method Summary
 Object getBean()
          Returns the bean object whose property the event occurred for
 String getFullName()
          Returns the full name of the property the event occurred for
 Object getNewValue()
          Returns the new value.
 Object getOldValue()
          Returns the old value.
 String getPropertyName()
          Retrieves the name of the property the event occurred for
 Class getPropertyType()
          Returns the type of the property the event occurred for
 
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

BaseEvent

public BaseEvent(BaseBeanProperty property,
                 Object oldValue,
                 Object newValue,
                 Object bean)
Creates a new base event using the values given
Method Detail

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