Class IpsPropertyChangeSupport

java.lang.Object
java.beans.PropertyChangeSupport
org.faktorips.runtime.IpsPropertyChangeSupport
All Implemented Interfaces:
Serializable

public class IpsPropertyChangeSupport extends PropertyChangeSupport
Extension of PropertyChangeSupport providing special methods to fire AssociationChangedEvents.
Author:
Daniel Hohenberger
See Also:
  • Constructor Details

    • IpsPropertyChangeSupport

      public IpsPropertyChangeSupport(Object sourceBean)
  • Method Details

    • 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(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 PropertyChangeSupport
    • fireAssociationAdded

      public void fireAssociationAdded(String associationName, 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(String associationName, 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(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:
    • fireChildPropertyChange

      public void fireChildPropertyChange(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(PropertyChangeListener listener)
      Overrides:
      removePropertyChangeListener in class PropertyChangeSupport