public class SWTCreator
extends java.lang.Object
Constructor and Description |
---|
SWTCreator(int style) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.widgets.Button |
button(org.eclipse.swt.widgets.Composite parent,
java.lang.String text) |
org.eclipse.swt.widgets.Button |
button(org.eclipse.swt.widgets.Composite parent,
java.lang.String text,
Executor onClick) |
static void |
clearComposite(org.eclipse.swt.widgets.Composite c) |
org.eclipse.swt.widgets.Combo |
combo(org.eclipse.swt.widgets.Composite parent,
java.util.Collection<java.lang.String> options) |
org.eclipse.swt.widgets.Composite |
compositeWithGridLayout(org.eclipse.swt.widgets.Composite parent,
int columns) |
org.eclipse.swt.widgets.Composite |
compositeWithHorizontalLayout(org.eclipse.swt.widgets.Composite parent) |
org.eclipse.swt.widgets.Composite |
compositeWithLayout(org.eclipse.swt.widgets.Composite parent,
org.eclipse.swt.widgets.Layout layout) |
org.eclipse.swt.widgets.Composite |
compositeWithVerticalLayout(org.eclipse.swt.widgets.Composite parent) |
org.eclipse.swt.widgets.Text |
editableTextField(org.eclipse.swt.widgets.Composite parent,
java.lang.String text) |
static org.eclipse.swt.graphics.Font |
getDefaultFont() |
static org.eclipse.swt.custom.ScrolledComposite |
getScrollingParent(org.eclipse.swt.widgets.Control control) |
int |
getStyle() |
static org.eclipse.swt.graphics.Point |
locationOnScreen(org.eclipse.swt.widgets.Control control) |
org.eclipse.swt.widgets.List |
multiList(org.eclipse.swt.widgets.Composite parent,
java.util.Collection<java.lang.String> options) |
static void |
pack(org.eclipse.swt.widgets.Composite composite,
boolean resized)
Pack the given composite and possibly the entire hierarchy of parents of the composite.
|
void |
resetStyle() |
static void |
setDefaultFont(org.eclipse.swt.graphics.Font defaultFont) |
void |
setStyle(int style) |
org.eclipse.swt.widgets.Text |
textField(org.eclipse.swt.widgets.Composite parent,
java.lang.String text,
boolean editable) |
org.eclipse.swt.widgets.Text |
uneditableTextField(org.eclipse.swt.widgets.Composite parent,
java.lang.String text) |
static org.eclipse.swt.graphics.Color |
white(org.eclipse.swt.widgets.Display display) |
static SWTCreator |
withDefaultStyle() |
public static SWTCreator withDefaultStyle()
public int getStyle()
public void setStyle(int style)
public void resetStyle()
public org.eclipse.swt.widgets.Button button(org.eclipse.swt.widgets.Composite parent, java.lang.String text, Executor onClick)
public org.eclipse.swt.widgets.Button button(org.eclipse.swt.widgets.Composite parent, java.lang.String text)
public org.eclipse.swt.widgets.Text uneditableTextField(org.eclipse.swt.widgets.Composite parent, java.lang.String text)
public org.eclipse.swt.widgets.Text editableTextField(org.eclipse.swt.widgets.Composite parent, java.lang.String text)
public org.eclipse.swt.widgets.Text textField(org.eclipse.swt.widgets.Composite parent, java.lang.String text, boolean editable)
public org.eclipse.swt.widgets.Composite compositeWithGridLayout(org.eclipse.swt.widgets.Composite parent, int columns)
public org.eclipse.swt.widgets.Composite compositeWithVerticalLayout(org.eclipse.swt.widgets.Composite parent)
public org.eclipse.swt.widgets.Composite compositeWithHorizontalLayout(org.eclipse.swt.widgets.Composite parent)
public org.eclipse.swt.widgets.Composite compositeWithLayout(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Layout layout)
public org.eclipse.swt.widgets.Combo combo(org.eclipse.swt.widgets.Composite parent, java.util.Collection<java.lang.String> options)
public org.eclipse.swt.widgets.List multiList(org.eclipse.swt.widgets.Composite parent, java.util.Collection<java.lang.String> options)
public static org.eclipse.swt.graphics.Font getDefaultFont()
public static org.eclipse.swt.graphics.Color white(org.eclipse.swt.widgets.Display display)
public static void setDefaultFont(org.eclipse.swt.graphics.Font defaultFont)
public static void clearComposite(org.eclipse.swt.widgets.Composite c)
public static org.eclipse.swt.custom.ScrolledComposite getScrollingParent(org.eclipse.swt.widgets.Control control)
public static org.eclipse.swt.graphics.Point locationOnScreen(org.eclipse.swt.widgets.Control control)
public static void pack(org.eclipse.swt.widgets.Composite composite, boolean resized)
composite
- The composite to pack.resized
- Set this to true, if the size of the entire composite changes. Then the hierarchy is packed up to the top,
or until a ScrolledComposite instance is found, where resizing is also stopped, as it handles size changes of internal composites
anyway. If set to false, only the given composite is packed.