public static final class TLcyTwoColumnLayoutBuilder.RowBuilder extends Object
Modifier and Type | Method and Description |
---|---|
TLcyTwoColumnLayoutBuilder |
build()
Call this method when all components for the row are specified.
|
TLcyTwoColumnLayoutBuilder.RowBuilder |
columnOne(Component aComponent)
Add a component which spans the whole width of the first column
|
TLcyTwoColumnLayoutBuilder.RowBuilder |
columnOne(Component aLabel,
Component aComponent)
Add a label and/or component to the first column of this row
|
TLcyTwoColumnLayoutBuilder.RowBuilder |
columnTwo(Component aComponent)
Add a component which spans the whole width of the second column
|
TLcyTwoColumnLayoutBuilder.RowBuilder |
columnTwo(Component aLabel,
Component aComponent)
Add a label and/or component to the second column of this row
|
TLcyTwoColumnLayoutBuilder.RowBuilder |
growVertically(boolean aGrowVertically)
Specify whether the row should grow vertically or not.
|
TLcyTwoColumnLayoutBuilder.RowBuilder |
spanBothColumns(Component aComponent)
Add a component which spans the whole width of the two columns.
|
public TLcyTwoColumnLayoutBuilder.RowBuilder columnOne(Component aLabel, Component aComponent)
aLabel
- The label component. May be null
in case aComponent
is not null
aComponent
- The editor component. May be null
in case aLabel
is not null
public TLcyTwoColumnLayoutBuilder.RowBuilder columnOne(Component aComponent)
aComponent
- The component. Must not be null
public TLcyTwoColumnLayoutBuilder.RowBuilder columnTwo(Component aLabel, Component aComponent)
aLabel
- The label component. May be null
in case aComponent
is not null
aComponent
- The editor component. May be null
in case aLabel
is not null
public TLcyTwoColumnLayoutBuilder.RowBuilder columnTwo(Component aComponent)
aComponent
- The component. Must not be null
public TLcyTwoColumnLayoutBuilder.RowBuilder spanBothColumns(Component aComponent)
Add a component which spans the whole width of the two columns.
In case aComponent
is a container where the child components were added using
the TLcyTwoColumnLayoutBuilder
, the layout of aComponent
and the
layout of the panel for which this builder is used will be aligned.
aComponent
- The componentpublic TLcyTwoColumnLayoutBuilder.RowBuilder growVertically(boolean aGrowVertically)
false
aGrowVertically
- true
when the row should grow vertically, false
otherwisepublic TLcyTwoColumnLayoutBuilder build()