|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.application.swt.ShellUtils
public final class ShellUtils
Set of utility methods to work with SWT shells.
| Field Summary | |
|---|---|
static int |
SPACE_BETWEEN_DIALOGS
How mach space to put between this and parent dialog when positioned next to each other. |
| Method Summary | |
|---|---|
static org.eclipse.swt.graphics.Point |
centerParentChilShells(org.eclipse.swt.widgets.Shell parent,
org.eclipse.swt.widgets.Shell dialog,
org.eclipse.swt.graphics.Rectangle outsideBoundingArea)
Center one shell in the bounding area while the other shell is also visible. |
static void |
centerShell(org.eclipse.swt.widgets.Shell client,
org.eclipse.swt.graphics.Rectangle parentRect)
Center one shell above another |
static void |
centerShell(org.eclipse.swt.widgets.Shell client,
org.eclipse.swt.widgets.Shell parent)
Center one shell above another |
static org.eclipse.swt.graphics.Rectangle |
getAdjustedClientArea(org.eclipse.swt.widgets.Shell client)
The client area given by SWT method doesn't reflect position. |
static int |
getTableClientWidth(org.eclipse.swt.widgets.Table source)
Compute the width of the table client area taking into account scrollbar and OS deficiencies. |
static void |
runAfterOpened(org.eclipse.swt.widgets.Shell window,
java.lang.Runnable startupCode)
Run some code immidiately after the shell was opened and displayed on the screen. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SPACE_BETWEEN_DIALOGS
| Method Detail |
|---|
public static org.eclipse.swt.graphics.Rectangle getAdjustedClientArea(org.eclipse.swt.widgets.Shell client)
client - - shell for which we want to get the area
public static void centerShell(org.eclipse.swt.widgets.Shell client,
org.eclipse.swt.widgets.Shell parent)
client - - shell to centerparent - - shell to center above
public static void centerShell(org.eclipse.swt.widgets.Shell client,
org.eclipse.swt.graphics.Rectangle parentRect)
client - - shell to centerparentRect - - rectangle bounding parent area
public static void runAfterOpened(org.eclipse.swt.widgets.Shell window,
java.lang.Runnable startupCode)
window - - window for which we are waiting to openstartupCode - - code which should be run
public static org.eclipse.swt.graphics.Point centerParentChilShells(org.eclipse.swt.widgets.Shell parent,
org.eclipse.swt.widgets.Shell dialog,
org.eclipse.swt.graphics.Rectangle outsideBoundingArea)
parent - - shell which should be also visible when the dialog is
centered in the bounded areadialog - - dialog which should be visible while also parent should
be made visibleoutsideBoundingArea - - this is the area to which the parent dialog
and this dialog should be bounded. In that
case this dialog will position the parent
and itself so that both are visible
public static int getTableClientWidth(org.eclipse.swt.widgets.Table source)
source - - table to calculate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||