Column
What it does
- The
Column
class is a UI component that arranges its child components in a vertical column.
Builder Parameters
children
- The children of to arrange in a column.
spacing
(Optional)- The amount of space between each child component.
- Default: 0
sizeBehaviour
(Optional)- The behavior of the
Column
in regard to its size. - Default: min
- The behavior of the
alignment
(Optional)- The horizontal alignment of the children.
- Default: Center
Space Behaviour
- Can be changed via parameter
sizeBehaviour
Example
public class TestColumn implements UIComponent {
@Override
public UIComponent build(Layout layout) {
return new Center(
new Column.Builder().build(
new Text.Builder("Hello1"),
new Text.Builder("Hello2"),
new Text.Builder("Hello3"),
new Text.Builder("Hello4")
));
}
}