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

    Modifier and Type
    Method
    Description
    void
    elementAdded(Object addedElement, String type)
    Invoked when an element is added to the RelationSet this listener has been registered with.
    void
    elementRemoved(Object removedElement, String type)
    Invoked when an element is removed from the RelationSet this listener has been registered with.
  • Method Details

    • elementAdded

      void elementAdded(Object addedElement, 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(Object removedElement, 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.