de.intarsys.tools.event
Class AttributeChangedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by de.intarsys.tools.event.Event
          extended by de.intarsys.tools.event.AttributeChangedEvent
All Implemented Interfaces:
IEvent, java.io.Serializable

public class AttributeChangedEvent
extends Event

An event representing an objects state change.

See Also:
Serialized Form

Field Summary
static EventType ID
           
 
Fields inherited from class de.intarsys.tools.event.Event
consumed, ID_ALL, veto
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AttributeChangedEvent(java.lang.Object source, java.lang.Object attribute, java.lang.Object oldValue, java.lang.Object newValue)
           
 
Method Summary
 java.lang.Object getAttribute()
          The attribute slot that has changed.
 EventType getEventType()
          A type for this event.
 java.lang.Object getNewValue()
          The new value of the attribute.
 java.lang.Object getOldValue()
          The previous value of the attribute.
 java.lang.String toString()
           
 
Methods inherited from class de.intarsys.tools.event.Event
consume, getName, getRc, isConsumed, isVetoed, setRc, setVeto, veto
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.intarsys.tools.event.IEvent
getSource
 

Field Detail

ID

public static final EventType ID
Constructor Detail

AttributeChangedEvent

public AttributeChangedEvent(java.lang.Object source,
                             java.lang.Object attribute,
                             java.lang.Object oldValue,
                             java.lang.Object newValue)
Method Detail

getAttribute

public java.lang.Object getAttribute()
The attribute slot that has changed.

Returns:
The attribute slot that has changed.

getEventType

public EventType getEventType()
Description copied from interface: IEvent
A type for this event.

Specified by:
getEventType in interface IEvent
Overrides:
getEventType in class Event
Returns:
A type for this event.

getNewValue

public java.lang.Object getNewValue()
The new value of the attribute.

Returns:
The new value of the attribute.

getOldValue

public java.lang.Object getOldValue()
The previous value of the attribute.

Returns:
The previous value of the attribute.

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject