|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.geeboss.util.LayoutUtil
public class LayoutUtil
Factory class for some LayoutData concerns in Geeboss.
Method Summary | |
---|---|
static void |
centerShell(org.eclipse.swt.widgets.Display display,
org.eclipse.swt.widgets.Shell shell)
Center a shell on the monitor |
static org.eclipse.swt.layout.FillLayout |
createFillLayout(int marginWidth,
int marginHeight)
Create a new FillLayout with the given parameters |
static org.eclipse.swt.layout.GridLayout |
createGridLayout(int rows)
Create a new GridLayout with the given parameters |
static org.eclipse.swt.layout.GridLayout |
createGridLayout(int rows,
int marginWidth)
Create a new GridLayout with the given parameters |
static org.eclipse.swt.layout.GridLayout |
createGridLayout(int rows,
int marginWidth,
int marginHeight)
Create a new GridLayout with the given parameters |
static org.eclipse.swt.layout.GridLayout |
createGridLayout(int rows,
int marginWidth,
int marginHeight,
boolean makeColumnsEqualWidth)
Create a new GridLayout with the given parameters |
static org.eclipse.swt.layout.GridLayout |
createGridLayout(int rows,
int marginWidth,
int marginHeight,
int verticalSpacing)
Create a new GridLayout with the given parameters |
static org.eclipse.swt.layout.GridLayout |
createGridLayout(int rows,
int marginWidth,
int marginHeight,
int verticalSpacing,
int horizontalSpacing,
boolean makeColumnsEqualWidth)
Create a new GridLayout with the given parameters |
static void |
packAll(org.eclipse.swt.widgets.Control control)
Pack all controls and sub composites |
static void |
positionShell(org.eclipse.swt.widgets.Shell shell)
Sets the initial location to use for the shell. |
static void |
positionShell(org.eclipse.swt.widgets.Shell shell,
boolean computeSize)
Sets the initial location to use for the shell. |
static void |
positionShell(org.eclipse.swt.widgets.Shell shell,
boolean computeSize,
int sameDialogCount)
Sets the initial location to use for the shell. |
static void |
setDialogSpacer(org.eclipse.swt.widgets.Composite composite,
int cols,
int rows)
Set invisible labels as spacer to a composite. |
static void |
setLayoutForAll(org.eclipse.swt.widgets.Control control)
Recursivly update layout for given control and childs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void centerShell(org.eclipse.swt.widgets.Display display, org.eclipse.swt.widgets.Shell shell)
display
- The displayshell
- The shell to centerpublic static org.eclipse.swt.layout.FillLayout createFillLayout(int marginWidth, int marginHeight)
marginWidth
- Margin width in pixelmarginHeight
- Margin height in pixel
public static org.eclipse.swt.layout.GridLayout createGridLayout(int rows)
rows
- The number of rows
public static org.eclipse.swt.layout.GridLayout createGridLayout(int rows, int marginWidth)
rows
- The number of rowsmarginWidth
- Margin width in pixel
public static org.eclipse.swt.layout.GridLayout createGridLayout(int rows, int marginWidth, int marginHeight)
rows
- The number of rowsmarginWidth
- Margin width in pixelmarginHeight
- Margin height in pixel
public static org.eclipse.swt.layout.GridLayout createGridLayout(int rows, int marginWidth, int marginHeight, boolean makeColumnsEqualWidth)
rows
- The number of rowsmarginWidth
- Margin width in pixelmarginHeight
- Margin height in pixelmakeColumnsEqualWidth
- true if columns should be equals in size
public static org.eclipse.swt.layout.GridLayout createGridLayout(int rows, int marginWidth, int marginHeight, int verticalSpacing)
rows
- The number of rowsmarginWidth
- Margin width in pixelmarginHeight
- Margin height in pixelverticalSpacing
- Vertical spacing in pixel
public static org.eclipse.swt.layout.GridLayout createGridLayout(int rows, int marginWidth, int marginHeight, int verticalSpacing, int horizontalSpacing, boolean makeColumnsEqualWidth)
rows
- The number of rowsmarginWidth
- Margin width in pixelmarginHeight
- Margin height in pixelverticalSpacing
- Vertical spacing in pixelhorizontalSpacing
- Horizontal spacing in pixelmakeColumnsEqualWidth
- true if columns should be equals in size
public static void packAll(org.eclipse.swt.widgets.Control control)
control
- Control to startpublic static void positionShell(org.eclipse.swt.widgets.Shell shell)
shell
- The shell to set the locationpublic static void positionShell(org.eclipse.swt.widgets.Shell shell, boolean computeSize)
shell
- The shell to set the locationcomputeSize
- If true, initialSize is computed from the Shellpublic static void positionShell(org.eclipse.swt.widgets.Shell shell, boolean computeSize, int sameDialogCount)
shell
- The shell to set the locationcomputeSize
- If true, initialSize is computed from the ShellsameDialogCount
- In the case the same dialog is opened more than once, do not position the Shells on the same position. The sameDialogCount integer tells how many dialogs of the same kind are already open. This number is used to move the new dialog by some pixels.public static void setDialogSpacer(org.eclipse.swt.widgets.Composite composite, int cols, int rows)
composite
- The control to add the spacer intocols
- Is used as horizontal span in the GridDatarows
- Number of labels that are createdpublic static void setLayoutForAll(org.eclipse.swt.widgets.Control control)
control
- The control to set the layout
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |