Package de.intarsys.tools.event
Class AttributeChangedEvent
- java.lang.Object
-
- java.util.EventObject
-
- de.intarsys.tools.event.Event
-
- 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
-
-
Constructor Summary
Constructors Constructor Description AttributeChangedEvent(java.lang.Object source, java.lang.Object attribute, java.lang.Object oldValue, java.lang.Object newValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetAttribute()The attribute slot that has changed.EventTypegetEventType()A type for this event.java.lang.ObjectgetNewValue()The new value of the attribute.java.lang.ObjectgetOldValue()The previous value of the attribute.java.lang.StringtoString()-
Methods inherited from class de.intarsys.tools.event.Event
consume, getName, getRc, isConsumed, isVetoed, setRc, setVeto, veto
-
-
-
-
Field Detail
-
ID
public static final EventType ID
-
-
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:IEventA type for this event.- Specified by:
getEventTypein interfaceIEvent- Overrides:
getEventTypein classEvent- 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:
toStringin classjava.util.EventObject
-
-