net.xoetrope.swt
Class BorderLayout
java.lang.Object
org.eclipse.swt.widgets.Layout
net.xoetrope.swt.BorderLayout
public class BorderLayout
- extends org.eclipse.swt.widgets.Layout
The border layout
- See Also:
http://www.java2s.com/ExampleCode/SWT-JFace-Eclipse/ABorderLayout.htm
|
Field Summary |
static java.lang.String |
CENTER
|
static java.lang.String |
EAST
|
static java.lang.String |
NORTH
|
static java.lang.String |
SOUTH
|
static java.lang.String |
WEST
|
|
Method Summary |
protected org.eclipse.swt.graphics.Point |
computeSize(org.eclipse.swt.widgets.Composite composite,
int wHint,
int hHint,
boolean flushCache)
Computes the size for this BorderLayout. |
protected void |
getControls(org.eclipse.swt.widgets.Composite composite)
This does the work of setting the member data. |
protected org.eclipse.swt.graphics.Point |
getSize(org.eclipse.swt.widgets.Control control,
boolean flushCache)
This returns the size of. |
protected void |
layout(org.eclipse.swt.widgets.Composite composite,
boolean flushCache)
This does the work of laying out our controls. |
| Methods inherited from class org.eclipse.swt.widgets.Layout |
flushCache |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NORTH
public static final java.lang.String NORTH
- See Also:
- Constant Field Values
SOUTH
public static final java.lang.String SOUTH
- See Also:
- Constant Field Values
EAST
public static final java.lang.String EAST
- See Also:
- Constant Field Values
WEST
public static final java.lang.String WEST
- See Also:
- Constant Field Values
CENTER
public static final java.lang.String CENTER
- See Also:
- Constant Field Values
BorderLayout
public BorderLayout()
computeSize
protected org.eclipse.swt.graphics.Point computeSize(org.eclipse.swt.widgets.Composite composite,
int wHint,
int hHint,
boolean flushCache)
- Computes the size for this BorderLayout.
- Specified by:
computeSize in class org.eclipse.swt.widgets.Layout
- Parameters:
composite - The composite that contains the controls.wHint - Width hint in pixels for the minimum width.hHint - Height hint in pixels for the minimum height.flushCache - If true, flushes any cached values.
- Returns:
- Point
layout
protected void layout(org.eclipse.swt.widgets.Composite composite,
boolean flushCache)
- This does the work of laying out our controls.
- Specified by:
layout in class org.eclipse.swt.widgets.Layout
- Parameters:
composite - The composite that contains the controls.flushCache - If true, flushes any cached values.
getSize
protected org.eclipse.swt.graphics.Point getSize(org.eclipse.swt.widgets.Control control,
boolean flushCache)
- This returns the size of.
- Parameters:
control - The control component.flushCache - If true, flushes any cached values.
getControls
protected void getControls(org.eclipse.swt.widgets.Composite composite)
- This does the work of setting the member data.
- Parameters:
composite - The composite that contains the controls.