layout.setSpacing(true);
layout.setSizeFull();
// Add some components to the layout
layout.addComponent(new TextField(null, "Click here"));
layout.addComponent(new Link("Click here", null));
Select select = new Select(null, Arrays.asList("Click here"));
select.select("Click here");
layout.addComponent(select);
// Tab content
VerticalLayout l1 = new VerticalLayout();
l1.setMargin(true);
l1.addComponent(new Label("This is a label."));
l1.addComponent(new TextField(null, "Click here"));
l1.addComponent(new Link("Click here", null));
TabSheet t = new TabSheet();
t.setHeight("200px");
t.addTab(l1, "Tab", null);
layout.addComponent(t);
VerticalLayout nestedLayout = new VerticalLayout();
nestedLayout.addComponent(new Label("This is a label."));
nestedLayout.addComponent(new TextField(null, "Click here"));
nestedLayout.addComponent(new Link("Click here", null));
HorizontalLayout nestedLayout2 = new HorizontalLayout();
nestedLayout2.addComponent(new Label("Deeply nested label"));
nestedLayout.addComponent(nestedLayout2);