Package com.diffplug.common.swt
Class LayoutsGridLayout
A fluent api for setting and modifying a
GridLayout, created by Layouts.
Inspired by Moritz Post's blog post..-
Field Summary
Fields inherited from class com.diffplug.common.swt.LayoutWrapper
wrapped -
Method Summary
Modifier and TypeMethodDescriptioncolumnsEqualWidth(boolean columnsEqualWidth) horizontalSpacing(int horizontalSpacing) margin(int margin) Sets marginWidth and marginHeight to the given value, and left/right/top/bottom to 0.marginBottom(int marginBottom) marginHeight(int marginHeight) marginLeft(int marginLeft) marginLeftRight(int left, int right) Sets marginWidth to 0, and left / right to the given values.marginRight(int marginRight) marginTop(int marginTop) marginTopBottom(int top, int bottom) Sets marginHeight to 0, and top / bottom to the given values.marginWidth(int marginWidth) numColumns(int numColumns) spacing(int spacing) Sets all margins to the given value.verticalSpacing(int verticalSpacing) Methods inherited from class com.diffplug.common.swt.LayoutWrapper
getRaw, setMarginAndSpacingToDefault
-
Method Details
-
margin
Sets marginWidth and marginHeight to the given value, and left/right/top/bottom to 0.- Specified by:
marginin classLayoutWrapper<GridLayout>
-
marginTopBottom
Sets marginHeight to 0, and top / bottom to the given values. -
marginLeftRight
Sets marginWidth to 0, and left / right to the given values. -
spacing
Sets all margins to the given value.- Specified by:
spacingin classLayoutWrapper<GridLayout>
-
numColumns
-
columnsEqualWidth
-
marginWidth
-
marginHeight
-
marginLeft
-
marginTop
-
marginRight
-
marginBottom
-
horizontalSpacing
-
verticalSpacing
-