Class SimplePropertyEvent<S,​D extends IDiff>

  • Type Parameters:
    D - type of the diff handled by this event
    S - type of the source object handled by this event
    All Implemented Interfaces:
    java.io.Serializable

    public final class SimplePropertyEvent<S,​D extends IDiff>
    extends java.util.EventObject
    Event object events in the properties API
    Since:
    1.2
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CHANGE
      Event type constant indicating that the property changed
      D diff
      If event == CHANGE, a diff object describing the change in state, or null for an unknown change.
      IProperty property
      The property on which the event took place
      static int STALE
      Event type constant indicating that the property became stale
      int type
      The type of property event that occured
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      SimplePropertyEvent​(int type, S source, IProperty property, D diff)
      Constructs a PropertyChangeEvent with the given attributes
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • CHANGE

        public static final int CHANGE
        Event type constant indicating that the property changed
      • STALE

        public static final int STALE
        Event type constant indicating that the property became stale
      • type

        public final int type
        The type of property event that occured
      • property

        public final IProperty property
        The property on which the event took place
      • diff

        public final D extends IDiff diff
        If event == CHANGE, a diff object describing the change in state, or null for an unknown change.
    • Constructor Detail

      • SimplePropertyEvent

        public SimplePropertyEvent​(int type,
                                   S source,
                                   IProperty property,
                                   D diff)
        Constructs a PropertyChangeEvent with the given attributes
        Parameters:
        type - the property type
        source - the property source
        property - the property that changed on the source
        diff - a diff describing the change in state, or null if the change is unknown or not applicable.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object