intarsys runtime library

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:
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
ID_ALL
 
Constructor Summary
AttributeChangedEvent(Object source, Object attribute, Object oldValue, Object newValue)
           
 
Method Summary
 Object getAttribute()
          The attribute slot that has changed.
 EventType getEventType()
           
 Object getNewValue()
          The new value of the attribute.
 Object getOldValue()
          The previous value of the attribute.
 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final EventType ID
Constructor Detail

AttributeChangedEvent

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

getAttribute

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

Returns:
The attribute slot that has changed.

getEventType

public EventType getEventType()
Overrides:
getEventType in class Event

getNewValue

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

Returns:
The new value of the attribute.

getOldValue

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

Returns:
The previous value of the attribute.

toString

public String toString()
Overrides:
toString in class EventObject

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.