Interface RelationSetUpdateListener
-
public interface RelationSetUpdateListener
The listener interface that must be implemented by any class that needs to be informed when an element is added to, or removed from, a
RelationSet
.The listener must be registered with RelationSet using the
RelationSet.addUpdateListener(RelationSetUpdateListener)
method.The listener will only be informed of updates to the RelationSet as the result of Notifications that it has processed. "Manual" additions/removals of elements to/from the RelationSet will not be sent onto any update listeners.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
elementAdded(java.lang.Object addedElement, java.lang.String type)
Invoked when an element is added to the RelationSet this listener has been registered with.void
elementRemoved(java.lang.Object removedElement, java.lang.String type)
Invoked when an element is removed from the RelationSet this listener has been registered with.
-
-
-
Method Detail
-
elementAdded
void elementAdded(java.lang.Object addedElement, java.lang.String type)
Invoked when an element is added to the RelationSet this listener has been registered with.
- Parameters:
addedElement
- The element that has been added to the RelationSet.type
- The fully qualified class name of the element that has been added.
-
elementRemoved
void elementRemoved(java.lang.Object removedElement, java.lang.String type)
Invoked when an element is removed from the RelationSet this listener has been registered with.
- Parameters:
removedElement
- The element that has been removed to the RelationSet.type
- The fully qualified class name of the element that has been removed.
-
-