Class PropertyChangeEvent<T>

    • Constructor Detail

      • PropertyChangeEvent

        public PropertyChangeEvent​(StateObject source,
                                   String propertyName,
                                   T oldValue,
                                   T newValue)
        Creates a new PropertyChangeEvent.
        Parameters:
        source - The source where the modification occurred and that fired the event
        propertyName - The name of the property associated with the property change
        oldValue - The old value of the property that changed
        newValue - The new value of the property that changed
    • Method Detail

      • getNewValue

        public T getNewValue()
        Returns the new value of the property that changed.
        Specified by:
        getNewValue in interface IPropertyChangeEvent<T>
        Returns:
        The property's new value
      • getOldValue

        public T getOldValue()
        Returns the old value of the property that changed.
        Specified by:
        getOldValue in interface IPropertyChangeEvent<T>
        Returns:
        The property's old value
      • getPropertyName

        public String getPropertyName()
        Returns the name of the property that changed.
        Specified by:
        getPropertyName in interface IPropertyChangeEvent<T>
        Returns:
        A unique identifier of the property that changed
      • getSource

        public <S extends StateObject> S getSource()
        Returns the source where the modification occurred and that fired the event.
        Specified by:
        getSource in interface IPropertyChangeEvent<T>
        Returns:
        The source of the event