public class SWTUtils extends java.lang.Object
Constructor and Description |
---|
SWTUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
childHasFocus(org.eclipse.swt.widgets.Composite parent) |
static org.eclipse.swt.widgets.Composite |
embedAWTComponent(java.awt.Component awtComponent,
org.eclipse.swt.widgets.Composite parentComposite)
Creates a new
Composite with an embedded AWT or Swing component. |
static boolean |
isChildComponent(org.eclipse.swt.widgets.Composite parent,
org.eclipse.swt.widgets.Control child) |
public SWTUtils()
public static boolean childHasFocus(org.eclipse.swt.widgets.Composite parent)
public static boolean isChildComponent(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control child)
public static org.eclipse.swt.widgets.Composite embedAWTComponent(java.awt.Component awtComponent, org.eclipse.swt.widgets.Composite parentComposite)
Composite
with an embedded AWT or Swing component.
This method makes use of SWT_AWT.new_Frame(Composite)
internally.
awtComponent
- the AWT or Swing component to be embeddedparentComposite
- the parent SWT composite