Class AttributeChangedEvent

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

public class AttributeChangedEvent extends Event
An event representing an objects state change.
See Also:
  • Field Details

  • Constructor Details

    • AttributeChangedEvent

      public AttributeChangedEvent(Object source, Object attribute, Object oldValue, Object newValue)
  • Method Details

    • getAttribute

      public 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 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