FormLayout
classin packageklyn.gui.windows.layouts
public class FormLayout extends Layout:
└ FormLayout

Form layout.

Rows should be declared with addRow, which creates label/field pairs and associates label mnemonics with their fields. A FormLayoutParams instance with fullRow set to true can still be used for separators or section titles.

layout = FormLayout()
form = Container(layout)
layout.addRow("&Login:", TextBox())
Properties
Modifier and Type Member Description
public property columnSpacing
columnSpacing as Int = 12
No summary.
public property labelAlign
labelAlign as String = "start"
No summary.
public property labelWidth
labelWidth as Int = 0
No summary.
public property rowSpacing
rowSpacing as Int = 8
No summary.
Properties inherited from Layout: container
Constructors
Modifier and Type Member Description
public FormLayout
FormLayout(rowSpacing as Int = 8, columnSpacing as Int = 12, labelWidth as Int = 0, labelAlign as String = "start"):
No summary.
Methods
Modifier and Type Member Description
public addRow
addRow(label as Label, field as Widget) as Void:
Adds a row using an existing label and automatically assigns its buddy.
public addRow
addRow(label as String, field as Widget) as Void:
Adds a `label / field` row and automatically links the label mnemonic to the field.
public addRow
addRow(widget as Widget) as Void:
Adds a widget spanning the full form width.
public override layout
layout(container as Container) as Void:
No summary.
Methods inherited from Layout: _ceilDiv, _childOuterPreferredHeight, _childOuterPreferredWidth, _childParams, _clamp, _edgeBottom, _edgeLeft, _edgeRight, _edgeTop, _growX, _growY, _horizontalSizePolicy, _innerHeight, _innerWidth, _innerX, _innerY, _marginBottom, _marginLeft, _marginRight, _marginTop, _max, _min, _normalizeAlign, _place, _preferredHeight, _preferredWidth, _verticalSizePolicy, add, attach, detach, layout