Interface RootCompositeAware

All Known Implementing Classes:
ChangeActiveCameraEvent, DrawableRegionRegisteredEvent, ListenToConnectionEvent, PlottingSystemUpdateEvent, RegisterDrawableRegionEvent, ROIChangeEvent, RootCompositeEvent, StopListenToConnectionEvent

public interface RootCompositeAware
A context aware event. A context aware element may discriminate events comparing its root parent UUID with the one returned by getRootComposite().
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the root component for the element which publishes this event
    default boolean
    haveSameParent(org.eclipse.swt.widgets.Composite container)
    Verifies if the container has the same parent of the event
  • Method Details

    • getRootComposite

      Optional<UUID> getRootComposite()
      Returns the root component for the element which publishes this event
      Returns:
      a component unique id
    • haveSameParent

      default boolean haveSameParent(org.eclipse.swt.widgets.Composite container)
      Verifies if the container has the same parent of the event
      Parameters:
      container - the container receiving the event
      Returns:
      true if have the same parent, false otherwise