Interface Observable

All Superinterfaces:
ReflectiveDataObject
All Known Subinterfaces:
SharedGraphNode
All Known Implementing Classes:
AbstractSharedGraphNode, Command, InsertElement, ListUpdate, RemoveElement, SetProperty

public interface Observable extends ReflectiveDataObject
ReflectiveDataObject whose properties can be observed.
  • Method Details

    • registerListener

      Observable registerListener(Listener l)
      Attaches the given Listener to this object.

      If the given Listener is already attached, it is not attached again.

      Parameters:
      l - The Listener to attach.
      Returns:
      This object for call chaining.
    • unregisterListener

      Observable unregisterListener(Listener l)
      Removes the given Listener from this object.
      Parameters:
      l - The Listener to remove.
      Returns:
      This object for call chaining.