Package de.aristaflow.adept2.ui.awtgui
Interface AWTContext
-
- All Superinterfaces:
AutoCloseable
,Closeable
,GUIContext
- All Known Implementing Classes:
SWTEmbeddedAWTContext
public interface AWTContext extends GUIContext
This interface defines a graphical context that could be used by application components to integrate them into a AWT-GUI on a workflow-client. The graphical context is created by aGUIManager
and provided to the application component viaSessionContext.getGUIContext()
. The application component has to cast the returnedGUIContext
to this graphical context.Using this context it is guaranteed that commands could be executed by the designated AWT-Dispatch-Thread via the methods
java.awt.EventQueue.invokeAndWait(...)
andjava.awt.EventQueue.invokeLater(...)
respectively.- Author:
- Markus Lauer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Frame
getParentFrame()
Gets the parent frame of this context to use for the GUI of the application.-
Methods inherited from interface de.aristaflow.adept2.model.runtimeenvironment.GUIContext
close
-
-
-
-
Method Detail
-
getParentFrame
Frame getParentFrame()
Gets the parent frame of this context to use for the GUI of the application.
AnInvalidExecutorThreadException
will be thrown if the method is not called by the main thread of the corresponding component.- Returns:
- Returns the parent composite which should be used by the Component to draw its GUI.
-
-