Package com.luciad.lucy.gui
Class TLcyTwoColumnLayoutBuilder.RowBuilder
java.lang.Object
com.luciad.lucy.gui.TLcyTwoColumnLayoutBuilder.RowBuilder
- Enclosing class:
TLcyTwoColumnLayoutBuilder
Class following the Builder pattern which allows to add a row to a two column layout.
- Since:
- 2012.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Call this method when all components for the row are specified.Add a component which spans the whole width of the first columnAdd a label and/or component to the first column of this rowAdd a component which spans the whole width of the second columnAdd a label and/or component to the second column of this rowgrowVertically(boolean aGrowVertically) Specify whether the row should grow vertically or not.spanBothColumns(Component aComponent) Add a component which spans the whole width of the two columns.
-
Method Details
-
columnOne
Add a label and/or component to the first column of this row- Parameters:
aLabel- The label component. May benullin caseaComponentis notnullaComponent- The editor component. May benullin caseaLabelis notnull- Returns:
- this
-
columnOne
Add a component which spans the whole width of the first column- Parameters:
aComponent- The component. Must not benull- Returns:
- this
-
columnTwo
Add a label and/or component to the second column of this row- Parameters:
aLabel- The label component. May benullin caseaComponentis notnullaComponent- The editor component. May benullin caseaLabelis notnull- Returns:
- this
-
columnTwo
Add a component which spans the whole width of the second column- Parameters:
aComponent- The component. Must not benull- Returns:
- this
-
spanBothColumns
Add a component which spans the whole width of the two columns.
In case
aComponentis a container where the child components were added using theTLcyTwoColumnLayoutBuilder, the layout ofaComponentand the layout of the panel for which this builder is used will be aligned.- Parameters:
aComponent- The component- Returns:
- this
-
growVertically
Specify whether the row should grow vertically or not. The default value isfalse- Parameters:
aGrowVertically-truewhen the row should grow vertically,falseotherwise- Returns:
- this
-
build
Call this method when all components for the row are specified. This will return the outer builder instance- Returns:
- the outer builder instance for which this row builder is used.
-