|
The Window main = new Window("My Application");
setMainWindow(main);
// Set another root layout for the main window.
TabSheet tabsheet = new TabSheet();
main.setContent(tabsheet);
The size of the root layout is the default size of the particular layout
component, for example, a // This is actually the default.
main.setContent(new VerticalLayout());
// Set the size of the root layout to full width and height.
main.getContent().setSizeFull();
// Add a title area on top of the screen. This takes just the
// vertical space it needs.
main.addComponent(new Label("My Application"));
// Add a menu-view area that takes rest of the vertical space.
HorizontalLayout menuview = new HorizontalLayout();
menuview.setSizeFull();
main.addComponent(menuview);
See Section 6.10.1, “Layout Size” for more information about setting layout sizes. |
Table of Contents
|