List of usage examples for com.vaadin.ui VerticalLayout setSizeFull
@Override public void setSizeFull()
From source file:com.github.fbhd.AbstractSideBarUI.java
@Override protected void init(VaadinRequest vaadinRequest) { getPage().setTitle("fbhd"); final HorizontalLayout rootLayout = new HorizontalLayout(); rootLayout.setSizeFull();/*from ww w .jav a 2 s.co m*/ setContent(rootLayout); final VerticalLayout viewContainer = new VerticalLayout(); viewContainer.setSizeFull(); final Navigator navigator = new Navigator(this, viewContainer); navigator.setErrorView(new ErrorView()); navigator.addProvider(viewProvider); setNavigator(navigator); rootLayout.addComponent(getSideBar()); rootLayout.addComponent(viewContainer); rootLayout.setExpandRatio(viewContainer, 1.0f); }
From source file:com.github.lsiu.MyVaadinApplication.java
@Override public void init() { window = new Window("My Vaadin Application"); setMainWindow(window);//from w w w.ja v a2 s. c om VerticalLayout layout = new VerticalLayout(); layout.setSizeFull(); table = new FilterTable(); initTable(table); HorizontalLayout topBar = new HorizontalLayout(); initTopBar(topBar); layout.addComponent(topBar); layout.addComponent(table); layout.setExpandRatio(table, 1); window.setContent(layout); }
From source file:com.github.mjvesa.herd.HerdIDE.java
License:Apache License
private Component constructStatusTab() { VerticalLayout vl = new VerticalLayout(); vl.setSizeFull(); vl.addComponent(createPrintStackButton()); wordListSelect = createWordListSelect(); vl.addComponent(wordListSelect);/* w w w. j a v a 2s. com*/ vl.setExpandRatio(wordListSelect, 1); return vl; }
From source file:com.github.mjvesa.herd.HerdIDE.java
License:Apache License
private Component constructFilesTab() { VerticalLayout vl = new VerticalLayout(); vl.setSpacing(true);//w ww . j a va2 s .c om vl.setSizeFull(); vl.addComponent(constructFileNameAndSaveButton()); fileSelect = createFileSelect(); vl.addComponent(fileSelect); vl.setExpandRatio(fileSelect, 1); return vl; }
From source file:com.github.mjvesa.herd.HerdIDE.java
License:Apache License
private Component constructOutputTab() { VerticalLayout vl = new VerticalLayout(); vl.setSizeFull(); vl.addComponent(createLayoutClearButton()); mainPanel = createMainPanel();/* w ww . j a v a 2 s. com*/ vl.addComponent(mainPanel); vl.setExpandRatio(mainPanel, 1); return vl; }
From source file:com.github.mjvesa.herd.HerdIDE.java
License:Apache License
private Component constructEditorTab() { VerticalLayout vl = new VerticalLayout(); vl.setSpacing(true);//from www. ja v a2s .c o m vl.setSizeFull(); editor = createEditor(); vl.addComponent(editor); vl.setExpandRatio(editor, 1); vl.addComponent(constructButtons()); return vl; }
From source file:com.github.moscaville.contactsdb.AbstractSideBarUI.java
License:Apache License
@Override protected void init(VaadinRequest vaadinRequest) { getPage().setTitle("ContactsDb"); final HorizontalLayout rootLayout = new HorizontalLayout(); rootLayout.setSizeFull();/* w w w.j a v a2s . com*/ setContent(rootLayout); final VerticalLayout viewContainer = new VerticalLayout(); viewContainer.setSizeFull(); final Navigator navigator = new Navigator(this, viewContainer); navigator.setErrorView(new ErrorView()); navigator.addProvider(viewProvider); setNavigator(navigator); rootLayout.addComponent(getSideBar()); rootLayout.addComponent(viewContainer); rootLayout.setExpandRatio(viewContainer, 1.0f); }
From source file:com.github.peholmst.i18n4vaadin.cdi.demo.DemoUI.java
License:Apache License
@Override protected void init(VaadinRequest request) { VerticalLayout content = new VerticalLayout(); content.setMargin(true);/*from w ww. ja v a2 s . c o m*/ content.setSpacing(true); content.setSizeFull(); setContent(content); languageChanger = new ComboBox(); languageChanger.setContainerDataSource( new BeanItemContainer<java.util.Locale>(java.util.Locale.class, i18n.getSupportedLocales())); languageChanger.setImmediate(true); languageChanger.addValueChangeListener(new Property.ValueChangeListener() { @Override public void valueChange(Property.ValueChangeEvent event) { if (languageChanger.getValue() != null) { i18n.setLocale((java.util.Locale) languageChanger.getValue()); } } }); content.addComponent(languageChanger); Panel viewContent = new Panel(); viewContent.setSizeFull(); content.addComponent(viewContent); content.setExpandRatio(viewContent, 1); Navigator navigator = new Navigator(this, viewContent); navigator.addProvider(viewProvider); navigator.navigateTo("demo"); setNavigator(navigator); updateStrings(); }
From source file:com.github.peholmst.i18n4vaadin.simple.demo.DemoUI.java
License:Apache License
@Override protected void init(VaadinRequest request) { VerticalLayout content = new VerticalLayout(); content.setMargin(true);/*from w w w . ja va 2 s. co m*/ content.setSpacing(true); content.setSizeFull(); setContent(content); languageChanger = new ComboBox(); languageChanger.setContainerDataSource( new BeanItemContainer<java.util.Locale>(java.util.Locale.class, i18n.getSupportedLocales())); languageChanger.setImmediate(true); languageChanger.addValueChangeListener(new Property.ValueChangeListener() { @Override public void valueChange(Property.ValueChangeEvent event) { if (languageChanger.getValue() != null) { i18n.setLocale((java.util.Locale) languageChanger.getValue()); } } }); content.addComponent(languageChanger); Panel viewContent = new Panel(); viewContent.setSizeFull(); content.addComponent(viewContent); content.setExpandRatio(viewContent, 1); Navigator navigator = new Navigator(this, viewContent); navigator.addView("demo", DemoView.class); navigator.navigateTo("demo"); setNavigator(navigator); updateStrings(); }
From source file:com.github.peholmst.springsecuritydemo.ui.MainView.java
License:Apache License
protected void init() { final VerticalLayout mainLayout = new VerticalLayout(); mainLayout.setSizeFull(); /*// www . j a v a 2s. co m * The header is shown on top of the window and shows information about * the application and the current user. */ final Component header = createHeader(); mainLayout.addComponent(header); /* * The split panel will contain the component that actually make the * application usable. */ final SplitPanel splitPanel = new SplitPanel(SplitPanel.ORIENTATION_HORIZONTAL); splitPanel.setSizeFull(); mainLayout.addComponent(splitPanel); mainLayout.setExpandRatio(splitPanel, 1.0f); splitPanel.addComponent(categoryBrowser.getComponent()); final Component ticketBrowser = createTicketBrowser(); splitPanel.addComponent(ticketBrowser); splitPanel.setSplitPosition(25, Sizeable.UNITS_PERCENTAGE); setCompositionRoot(mainLayout); }