| Constructor and Description |
|---|
SWTUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getButtonWidthHint(Button button)
Returns a width hint for a button control.
|
static Shell |
getShell(Widget widget)
Returns the shell for the given widget.
|
static Display |
getStandardDisplay()
Returns the standard display to be used.
|
static void |
setButtonDimensionHint(Button button)
Sets width and height hint for the button control.
|
static void |
setDialogSize(Dialog dialog,
int width,
int height) |
public SWTUtil()
public static Display getStandardDisplay()
public static Shell getShell(Widget widget)
null is returned.public static int getButtonWidthHint(Button button)
public static void setButtonDimensionHint(Button button)
GridData.the - button for which to set the dimension hintpublic static void setDialogSize(Dialog dialog, int width, int height)