Package org.eclipse.ui.forms.widgets
Class ColumnLayoutData
java.lang.Object
org.eclipse.ui.forms.widgets.ColumnLayoutData
This class is used to store layout data for the
ColumnLayout
class. You can control width and height hints, as well as horizontal
alignment using instances of this class. As with other layouts, they are not
required to get the default behaviour.- Since:
- 3.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Horizontal alignment constant - control will be centered.static final int
Horizontal alignment constant - control will fill the column.int
Height hint that will be used instead of the computed control height when used in conjunction withColumnLayout
class (default is SWT.DEFAULT).int
Horizontal alignment variable (default is FILL).static final int
Horizontal alignment constant - control will be aligned to the left.static final int
Horizontal alignment constant - control will be aligned to the right.int
Width hint that will be used instead of the computed control width when used in conjunction withColumnLayout
class (default is SWT.DEFAULT). -
Constructor Summary
ConstructorDescriptionThe default constructor.ColumnLayoutData
(int wHint) Convinience constructor for the class.ColumnLayoutData
(int wHint, int hHint) Convinience constructor for the class. -
Method Summary
-
Field Details
-
widthHint
public int widthHintWidth hint that will be used instead of the computed control width when used in conjunction withColumnLayout
class (default is SWT.DEFAULT). -
heightHint
public int heightHintHeight hint that will be used instead of the computed control height when used in conjunction withColumnLayout
class (default is SWT.DEFAULT). -
LEFT
public static final int LEFTHorizontal alignment constant - control will be aligned to the left.- See Also:
-
CENTER
public static final int CENTERHorizontal alignment constant - control will be centered.- See Also:
-
RIGHT
public static final int RIGHTHorizontal alignment constant - control will be aligned to the right.- See Also:
-
FILL
public static final int FILLHorizontal alignment constant - control will fill the column.- See Also:
-
horizontalAlignment
public int horizontalAlignmentHorizontal alignment variable (default is FILL).
-
-
Constructor Details
-
ColumnLayoutData
public ColumnLayoutData(int wHint, int hHint) Convinience constructor for the class.- Parameters:
wHint
- width hint for the controlhHint
- height hint for the control
-
ColumnLayoutData
public ColumnLayoutData(int wHint) Convinience constructor for the class.- Parameters:
wHint
- width hint for the control
-
ColumnLayoutData
public ColumnLayoutData()The default constructor.
-