public class LayoutsRowLayout extends LayoutWrapper<RowLayout>
RowLayout
, created by Layouts
.
Inspired by Moritz Post's blog post..wrapped
Modifier and Type | Method and Description |
---|---|
LayoutsRowLayout |
center(boolean center)
center specifies whether the controls in a row should be
centered vertically in each cell for horizontal layouts,
or centered horizontally in each cell for vertical layouts.
|
LayoutsRowLayout |
fill(boolean fill)
fill specifies whether the controls in a row should be
all the same height for horizontal layouts, or the same
width for vertical layouts.
|
LayoutsRowLayout |
horizontal()
Makes this a horizontal layout.
|
LayoutsRowLayout |
justify(boolean justify)
justify specifies whether the controls in a row should be
fully justified, with any extra space placed between the controls.
|
LayoutsRowLayout |
margin(int margin)
Sets marginWidth and marginHeight to the given value, and left/right/top/bottom to 0.
|
LayoutsRowLayout |
marginBottom(int marginBottom) |
LayoutsRowLayout |
marginHeight(int marginHeight) |
LayoutsRowLayout |
marginLeft(int marginLeft) |
LayoutsRowLayout |
marginLeftRight(int left,
int right)
Sets marginWidth to 0, and left / right to the given values.
|
LayoutsRowLayout |
marginRight(int marginRight) |
LayoutsRowLayout |
marginTop(int marginTop) |
LayoutsRowLayout |
marginTopBottom(int top,
int bottom)
Sets marginHeight to 0, and top / bottom to the given values.
|
LayoutsRowLayout |
marginWidth(int marginWidth) |
LayoutsRowLayout |
pack(boolean pack)
pack specifies whether all controls in the layout take
their preferred size.
|
LayoutsRowLayout |
spacing(int spacing)
Sets the spacing to zero.
|
LayoutsRowLayout |
vertical()
Makes this a vertical layout.
|
LayoutsRowLayout |
wrap(boolean wrap)
wrap specifies whether a control will be wrapped to the next
row if there is insufficient space on the current row.
|
getRaw, setMarginAndSpacingToDefault
public LayoutsRowLayout margin(int margin)
margin
in class LayoutWrapper<RowLayout>
public LayoutsRowLayout marginTopBottom(int top, int bottom)
public LayoutsRowLayout marginLeftRight(int left, int right)
public LayoutsRowLayout spacing(int spacing)
spacing
in class LayoutWrapper<RowLayout>
public LayoutsRowLayout vertical()
public LayoutsRowLayout horizontal()
public LayoutsRowLayout marginWidth(int marginWidth)
public LayoutsRowLayout marginHeight(int marginHeight)
public LayoutsRowLayout marginLeft(int marginLeft)
public LayoutsRowLayout marginTop(int marginTop)
public LayoutsRowLayout marginRight(int marginRight)
public LayoutsRowLayout marginBottom(int marginBottom)
public LayoutsRowLayout wrap(boolean wrap)
The default value is true.
public LayoutsRowLayout pack(boolean pack)
The default value is true.
public LayoutsRowLayout fill(boolean fill)
The default value is false.
public LayoutsRowLayout center(boolean center)
The default value is false.
public LayoutsRowLayout justify(boolean justify)
The default value is false.