Class TwoColumnLayout
java.lang.Object
org.eclipse.swt.widgets.Layout
com._1c.g5.aef2.standard.swt.layouts.TwoColumnLayout
public final class TwoColumnLayout
extends org.eclipse.swt.widgets.Layout
A special version of
GridLayout
with enhanced two-column support.
Copy-pasted from GridLayout
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
horizontalSpacing specifies the number of pixels between the right edge of one cell and the left edge of its neighbouring cell to the right.boolean
makeColumnsEqualWidth specifies whether all columns in the layout will be forced to have the same width.int
marginBottom specifies the number of pixels of vertical margin that will be placed along the bottom edge of the layout.int
marginHeight specifies the number of pixels of vertical margin that will be placed along the top and bottom edges of the layout.int
marginLeft specifies the number of pixels of horizontal margin that will be placed along the left edge of the layout.int
marginRight specifies the number of pixels of horizontal margin that will be placed along the right edge of the layout.int
marginTop specifies the number of pixels of vertical margin that will be placed along the top edge of the layout.int
marginWidth specifies the number of pixels of horizontal margin that will be placed along the left and right edges of the layout.int
numColumns specifies the number of cell columns in the layout.int
verticalSpacing specifies the number of pixels between the bottom edge of one cell and the top edge of its neighbouring cell underneath. -
Constructor Summary
ConstructorsConstructorDescriptionTwoColumnLayout
(int minWidth) Constructs a new instance of this class with a single column. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.swt.graphics.Point
computeSize
(org.eclipse.swt.widgets.Composite composite, int wHint, int hHint, boolean flushCache) protected boolean
flushCache
(org.eclipse.swt.widgets.Control control) protected void
layout
(org.eclipse.swt.widgets.Composite composite, boolean flushCache) toString()
Returns a string containing a concise, human-readable description of the receiver.
-
Field Details
-
numColumns
public int numColumnsnumColumns specifies the number of cell columns in the layout. If numColumns has a value less than 1, the layout will not set the size and position of any controls. The default value is 1. -
makeColumnsEqualWidth
public boolean makeColumnsEqualWidthmakeColumnsEqualWidth specifies whether all columns in the layout will be forced to have the same width. The default value is false. -
marginWidth
public int marginWidthmarginWidth specifies the number of pixels of horizontal margin that will be placed along the left and right edges of the layout. The default value is 5. -
marginHeight
public int marginHeightmarginHeight specifies the number of pixels of vertical margin that will be placed along the top and bottom edges of the layout. The default value is 5. -
marginLeft
public int marginLeftmarginLeft specifies the number of pixels of horizontal margin that will be placed along the left edge of the layout. The default value is 0.- Since:
- 3.1
-
marginTop
public int marginTopmarginTop specifies the number of pixels of vertical margin that will be placed along the top edge of the layout. The default value is 0.- Since:
- 3.1
-
marginRight
public int marginRightmarginRight specifies the number of pixels of horizontal margin that will be placed along the right edge of the layout. The default value is 0.- Since:
- 3.1
-
marginBottom
public int marginBottommarginBottom specifies the number of pixels of vertical margin that will be placed along the bottom edge of the layout. The default value is 0.- Since:
- 3.1
-
horizontalSpacing
public int horizontalSpacinghorizontalSpacing specifies the number of pixels between the right edge of one cell and the left edge of its neighbouring cell to the right. The default value is 5. -
verticalSpacing
public int verticalSpacingverticalSpacing specifies the number of pixels between the bottom edge of one cell and the top edge of its neighbouring cell underneath. The default value is 5.
-
-
Constructor Details
-
TwoColumnLayout
public TwoColumnLayout(int minWidth) Constructs a new instance of this class with a single column.- Parameters:
minWidth
- minimum width of the whole layout.
-
-
Method Details
-
computeSize
protected org.eclipse.swt.graphics.Point computeSize(org.eclipse.swt.widgets.Composite composite, int wHint, int hHint, boolean flushCache) - Specified by:
computeSize
in classorg.eclipse.swt.widgets.Layout
-
flushCache
protected boolean flushCache(org.eclipse.swt.widgets.Control control) - Overrides:
flushCache
in classorg.eclipse.swt.widgets.Layout
-
layout
protected void layout(org.eclipse.swt.widgets.Composite composite, boolean flushCache) - Specified by:
layout
in classorg.eclipse.swt.widgets.Layout
-
toString
Returns a string containing a concise, human-readable description of the receiver.
-