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.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
-
-
-
-
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:IEvent
A type for this event.- Specified by:
getEventType
in interfaceIEvent
- Overrides:
getEventType
in 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:
toString
in classjava.util.EventObject
-
-