Constructor and Description |
---|
SWTUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
childHasFocus(Composite parent) |
static Composite |
embedAWTComponent(Component awtComponent,
Composite parentComposite)
Creates a new
Composite with an embedded AWT or Swing component. |
static boolean |
isChildComponent(Composite parent,
Control child) |
public SWTUtils()
public static boolean childHasFocus(Composite parent)
public static boolean isChildComponent(Composite parent, Control child)
public static Composite embedAWTComponent(Component awtComponent, 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