public final class RowDataFactory extends Object
Modifier and Type | Method and Description |
---|---|
void |
applyTo(Control control)
Sets the layout data on the given control.
|
RowDataFactory |
copy()
Creates a copy of the receiver.
|
static RowData |
copyData(RowData data)
Returns a copy of the given RowData
|
RowData |
create()
Creates a new GridData instance.
|
static RowDataFactory |
createFrom(RowData data)
Creates a new RowDataFactory that creates copies of the given RowData by
default.
|
RowDataFactory |
exclude(boolean shouldExclude)
Instructs the GridLayout to ignore this control when performing layouts.
|
RowDataFactory |
hint(int xHint,
int yHint)
Sets the width and height hints.
|
RowDataFactory |
hint(Point hint)
Sets the width and height hints.
|
static RowDataFactory |
swtDefaults()
Creates a new RowDataFactory initialized with the SWT defaults.
|
public static RowDataFactory swtDefaults()
Initial values are:
public static RowDataFactory createFrom(RowData data)
data
- RowData to copypublic static RowData copyData(RowData data)
data
- RowData to copypublic RowDataFactory exclude(boolean shouldExclude)
shouldExclude
- true iff the control should be excluded from layoutspublic RowData create()
public RowDataFactory copy()
public void applyTo(Control control)
control
- control whose layout data will be initialisedpublic RowDataFactory hint(int xHint, int yHint)
xHint
- horizontal hint (pixels), or SWT.DEFAULT to use the control's
preferred sizeyHint
- vertical hint (pixels), or SWT.DEFAULT to use the control's
preferred sizepublic RowDataFactory hint(Point hint)
hint
- size (pixels) to be used instead of the control's preferred
size. If the x or y values are set to SWT.DEFAULT, the
control's computeSize() method will be used to obtain that
dimension of the preferred size.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.