Layouts
Layouts define how components are arranged.
Common layouts
Section titled “Common layouts”- vertical (
VerticalLayout) - horizontal (
HorizontalLayout) - split (
SplitLayout)
Example
Section titled “Example”public class Panels implements ComponentTreeSupplier { @Override public Component component(HttpRequest httpRequest) { return new SplitLayout(new Text("Left"), new Text("Right")); }}In a reflected form, arrange sections with @Section, @Zones and @Tab instead.
When to use
Section titled “When to use”Use layouts to structure your UI instead of manual HTML/CSS.
See it live in the Explorer: Stacks & boxes · Responsive grid & named areas