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 a GUIManager and provided to the application component via SessionContext.getGUIContext(). The application component has to cast the returned GUIContext 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(...) and java.awt.EventQueue.invokeLater(...) respectively.

Author:
Markus Lauer
  • Method Summary

    Modifier and Type
    Method
    Description
    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 Details

    • getParentFrame

      Frame getParentFrame()
      Gets the parent frame of this context to use for the GUI of the application.
      An InvalidExecutorThreadException 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.