Class 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

      Fields 
      Modifier and Type Field Description
      static EventType ID  
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      AttributeChangedEvent​(java.lang.Object source, java.lang.Object attribute, java.lang.Object oldValue, java.lang.Object newValue)  
    • 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.
      • 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