Package org.faktorips.runtime
Class IpsPropertyChangeSupport
java.lang.Object
java.beans.PropertyChangeSupport
org.faktorips.runtime.IpsPropertyChangeSupport
- All Implemented Interfaces:
Serializable
Extension of
PropertyChangeSupport providing special methods to fire
AssociationChangedEvents.- Author:
- Daniel Hohenberger
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(PropertyChangeListener listener, boolean propagateEventsFromChildren) voidfireAssociationAdded(String associationName, Object addedAssociationTarget) Report a bound association property update to any registered listeners.voidFire an existing AssociationChangedEvent to any registered listeners.voidfireAssociationRemoved(String associationName, Object removedAssociationTarget) Report a bound association property update to any registered listeners.voidThis will be called if any child of this object fires a change event.voidEvents with the same source as the source registered assourceBeanare fired as usual, others are fired usingfireChildPropertyChange(PropertyChangeEvent).voidMethods inherited from class java.beans.PropertyChangeSupport
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener
-
Constructor Details
-
IpsPropertyChangeSupport
-
-
Method Details
-
fireAssociationChange
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
Events with the same source as the source registered assourceBeanare fired as usual, others are fired usingfireChildPropertyChange(PropertyChangeEvent).- Overrides:
firePropertyChangein classPropertyChangeSupport
-
fireAssociationAdded
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
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 totrue, this object's change listeners will also be notified when one of this object's children fires a change event.- See Also:
-
fireChildPropertyChange
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
- Overrides:
removePropertyChangeListenerin classPropertyChangeSupport
-