Package uk.ac.gda.client.event
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 TypeMethodDescriptionReturns the root component for the element which publishes this eventdefault booleanhaveSameParent(org.eclipse.swt.widgets.Composite container) Verifies if thecontainerhas the same parent of the event
-
Method Details
-
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 thecontainerhas the same parent of the event- Parameters:
container- the container receiving the event- Returns:
trueif have the same parent,falseotherwise
-