Class IpsPropertyChangeSupport

  • All Implemented Interfaces:
    java.io.Serializable

    public class IpsPropertyChangeSupport
    extends java.beans.PropertyChangeSupport
    Extension of PropertyChangeSupport providing special methods to fire AssociationChangedEvents.
    Author:
    Daniel Hohenberger
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPropertyChangeListener​(java.beans.PropertyChangeListener listener, boolean propagateEventsFromChildren)  
      void fireAssociationAdded​(java.lang.String associationName, java.lang.Object addedAssociationTarget)
      Report a bound association property update to any registered listeners.
      void fireAssociationChange​(AssociationChangedEvent evt)
      Fire an existing AssociationChangedEvent to any registered listeners.
      void fireAssociationRemoved​(java.lang.String associationName, java.lang.Object removedAssociationTarget)
      Report a bound association property update to any registered listeners.
      void fireChildPropertyChange​(java.beans.PropertyChangeEvent evt)
      This will be called if any child of this object fires a change event.
      void firePropertyChange​(java.beans.PropertyChangeEvent evt)
      Events with the same source as the source registered as sourceBean are fired as usual, others are fired using fireChildPropertyChange(PropertyChangeEvent).
      void removePropertyChangeListener​(java.beans.PropertyChangeListener listener)  
      • Methods inherited from class java.beans.PropertyChangeSupport

        addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IpsPropertyChangeSupport

        public IpsPropertyChangeSupport​(java.lang.Object sourceBean)
    • Method Detail

      • fireAssociationChange

        public void fireAssociationChange​(AssociationChangedEvent evt)
        Fire an existing AssociationChangedEvent to any registered listeners. No event is fired if the given event's added and removed targets are equal or both null.
        Parameters:
        evt - The AssociationChangedEvent object.
      • firePropertyChange

        public void firePropertyChange​(java.beans.PropertyChangeEvent evt)
        Events with the same source as the source registered as sourceBean are fired as usual, others are fired using fireChildPropertyChange(PropertyChangeEvent).
        Overrides:
        firePropertyChange in class java.beans.PropertyChangeSupport
      • fireAssociationAdded

        public void fireAssociationAdded​(java.lang.String associationName,
                                         java.lang.Object addedAssociationTarget)
        Report a bound association property update to any registered listeners. No event is fired if the added association target is null.
        Parameters:
        associationName - The programmatic name of the association that was changed.
        addedAssociationTarget - The target added to the association.
      • fireAssociationRemoved

        public void fireAssociationRemoved​(java.lang.String associationName,
                                           java.lang.Object removedAssociationTarget)
        Report a bound association property update to any registered listeners. No event is fired if the removed association target is null.
        Parameters:
        associationName - The programmatic name of the association that was changed.
        removedAssociationTarget - The target removed from the association.
      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.beans.PropertyChangeListener listener,
                                              boolean propagateEventsFromChildren)
        Parameters:
        propagateEventsFromChildren - if set to true, this object's change listeners will also be notified when one of this object's children fires a change event.
        See Also:
        PropertyChangeSupport.addPropertyChangeListener(PropertyChangeListener)
      • fireChildPropertyChange

        public void fireChildPropertyChange​(java.beans.PropertyChangeEvent evt)
        This will be called if any child of this object fires a change event. Any listeners subscribed to this object interested in child property changes will be notified in turn.
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Overrides:
        removePropertyChangeListener in class java.beans.PropertyChangeSupport