public class SWTEmbeddedAWTContext extends java.lang.Object implements AWTContext
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Thread |
controlThread
The thread which executes the application using this context.
|
protected org.eclipse.swt.widgets.Composite |
parentComposite
The SWT element that includes the AWT Frame the AWT component can insert
its gui elements.
|
protected java.awt.Frame |
parentFrame
The AWT Frame the AWT component can insert its GUI elements.
|
protected SWTContext |
swtContext
The SWT context the AWT GUI could be integrated into
|
| Constructor and Description |
|---|
SWTEmbeddedAWTContext(java.lang.Thread controlThread,
SWTContext swtContext)
Constructs an graphical context for an AWT based application component up
on an existing swt graphical context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the GUI for this context.
|
java.awt.Frame |
getParentFrame()
Gets the parent frame of this context to use for the GUI of the
application.
|
protected SWTContext swtContext
protected org.eclipse.swt.widgets.Composite parentComposite
protected java.awt.Frame parentFrame
protected java.lang.Thread controlThread
public SWTEmbeddedAWTContext(java.lang.Thread controlThread,
SWTContext swtContext)
controlThread - The thread which executes the application using this
context.swtContext - The existing SWT context.SWTContextpublic java.awt.Frame getParentFrame()
AWTContextInvalidExecutorThreadException will be thrown if the
method is not called by the main thread of the corresponding component.getParentFrame in interface AWTContextpublic void close()
GUIContextclose in interface GUIContext