|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.util.shop.LayoutShop
Factory class for some LayoutData concerns in RSSOwl.
Constructor Summary | |
private |
LayoutShop()
This utility class constructor is hidden |
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 cols)
Create a new GridLayout with the given parameters |
static org.eclipse.swt.layout.GridLayout |
createGridLayout(int cols,
int marginWidth)
Create a new GridLayout with the given parameters |
static org.eclipse.swt.layout.GridLayout |
createGridLayout(int cols,
int marginWidth,
int marginHeight)
Create a new GridLayout with the given parameters |
static org.eclipse.swt.layout.GridLayout |
createGridLayout(int cols,
int marginWidth,
int marginHeight,
boolean makeColumnsEqualWidth)
Create a new GridLayout with the given parameters |
static org.eclipse.swt.layout.GridLayout |
createGridLayout(int cols,
int marginWidth,
int marginHeight,
int verticalSpacing)
Create a new GridLayout with the given parameters |
static org.eclipse.swt.layout.GridLayout |
createGridLayout(int cols,
int marginWidth,
int marginHeight,
int verticalSpacing,
int horizontalSpacing,
boolean makeColumnsEqualWidth)
Create a new GridLayout with the given parameters |
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 |
Constructor Detail |
private LayoutShop()
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 cols)
cols
- The number of columns
public static org.eclipse.swt.layout.GridLayout createGridLayout(int cols, int marginWidth)
cols
- The number of columnsmarginWidth
- Margin width in pixel
public static org.eclipse.swt.layout.GridLayout createGridLayout(int cols, int marginWidth, int marginHeight)
cols
- The number of columnsmarginWidth
- Margin width in pixelmarginHeight
- Margin height in pixel
public static org.eclipse.swt.layout.GridLayout createGridLayout(int cols, int marginWidth, int marginHeight, boolean makeColumnsEqualWidth)
cols
- The number of columnsmarginWidth
- 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 cols, int marginWidth, int marginHeight, int verticalSpacing)
cols
- The number of columnsmarginWidth
- Margin width in pixelmarginHeight
- Margin height in pixelverticalSpacing
- Vertical spacing in pixel
public static org.eclipse.swt.layout.GridLayout createGridLayout(int cols, int marginWidth, int marginHeight, int verticalSpacing, int horizontalSpacing, boolean makeColumnsEqualWidth)
cols
- The number of columnsmarginWidth
- 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 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 |