List of usage examples for com.vaadin.ui VerticalLayout setSizeFull
@Override public void setSizeFull()
From source file:org.lunifera.examples.runtime.web.ecp.uimodel.presentation.vaadin.UiModelDemoUI.java
License:Open Source License
@Override public void init(VaadinRequest request) { VerticalLayout content = new VerticalLayout(); content.setMargin(true);/* ww w . j a v a 2 s. c o m*/ content.setSizeFull(); TabSheet sheet = new TabSheet(); sheet.setSizeFull(); content.addComponent(sheet); setContent(content); // add all examples // sheet.addTab(new GridLayoutFactory().createComponent(), "GridLayout"); sheet.addTab(new HorizontalLayoutFactory().createComponent(), "HorizontalLayout"); sheet.addTab(new VerticalLayoutFactory().createComponent(), "VerticalLayout"); }
From source file:org.lunifera.examples.runtime.web.vaadin.cm.Vaadin7CMDemoUI.java
License:Open Source License
@Override public void init(VaadinRequest request) { label = new Label(MSG); VerticalLayout layout = new VerticalLayout(label); layout.setStyleName(Reindeer.LAYOUT_BLUE); layout.setSizeFull(); layout.setMargin(true);/*from w ww . j a v a 2 s . c o m*/ setContent(layout); new InitializerThread().start(); }
From source file:org.lunifera.examples.vaaclipse.demo1.e4.editors.ImageView.java
License:Open Source License
@Inject public ImageView(VerticalLayout container, MInputPart inputPart) { super(inputPart.getInputURI()); embedded = new Embedded(); container.addComponent(embedded);//w ww. j a va 2 s . co m container.setComponentAlignment(embedded, Alignment.MIDDLE_CENTER); container.setSizeFull(); embedded.setSource(new FileResource(getFile())); }
From source file:org.lunifera.examples.vaaclipse.demo1.e4.views.ProcessView.java
License:Open Source License
@Inject public ProcessView(VerticalLayout parent, IEclipseContext context, MApplication app) { this.parent = parent; parent.setSizeFull(); parent.setMargin(true);// w w w . ja va 2 s . c o m embedded = new Embedded(); parent.addComponent(embedded); parent.setComponentAlignment(embedded, Alignment.MIDDLE_CENTER); }
From source file:org.lunifera.examples.vaaclipse.demo1.e4.views.StatisticsView.java
License:Open Source License
@Inject public StatisticsView(VerticalLayout parent, IEclipseContext context, MApplication app) { this.parent = parent; parent.setSizeFull(); }
From source file:org.opencms.ui.editors.messagebundle.CmsMessageBundleEditor.java
License:Open Source License
/** * Creates the main component of the editor with all sub-components. * @return the completely filled main component of the editor. * @throws IOException thrown if setting the table's content data source fails. * @throws CmsException thrown if setting the table's content data source fails. *///from w w w.jav a2 s .co m private Component createMainComponent() throws IOException, CmsException { VerticalLayout mainComponent = new VerticalLayout(); mainComponent.setSizeFull(); mainComponent.addStyleName("o-message-bundle-editor"); m_table = createTable(); Panel navigator = new Panel(); navigator.setSizeFull(); navigator.setContent(m_table); navigator.addActionHandler(new CmsMessageBundleEditorTypes.TableKeyboardHandler(m_table)); navigator.addStyleName("v-panel-borderless"); mainComponent.addComponent(m_options.getOptionsComponent()); mainComponent.addComponent(navigator); mainComponent.setExpandRatio(navigator, 1f); m_options.updateShownOptions(m_model.hasMasterMode(), m_model.canAddKeys()); return mainComponent; }
From source file:org.opencms.ui.login.CmsLoginUI.java
License:Open Source License
/** * Initializes the login view.<p>/*from w w w.j a v a2 s . co m*/ * * @param preselectedOu a potential preselected OU */ public void showLoginView(String preselectedOu) { VerticalLayout content = new VerticalLayout(); content.setSizeFull(); m_targetOpener = new CmsLoginTargetOpener(A_CmsUI.get()); //content.setExpandRatio(m_targetOpener, 0f); content.addComponent(m_loginForm); content.setComponentAlignment(m_loginForm, Alignment.MIDDLE_CENTER); content.setExpandRatio(m_loginForm, 1); setContent(content); if (preselectedOu == null) { preselectedOu = "/"; } m_loginForm.selectOrgUnit(preselectedOu); }
From source file:org.openeos.services.ui.vaadin.internal.abstractform.AbstractFormVaadinWindow.java
License:Apache License
@Override protected ComponentContainer createMainContainer() { VerticalLayout layout = new VerticalLayout(); layout.setSizeFull(); layout.setMargin(false);//w ww. j ava 2 s. co m return layout; }
From source file:org.openeos.services.ui.vaadin.internal.AbstractVaadinTabImpl.java
License:Apache License
protected AbstractOrderedLayout createMainContainer() { VerticalLayout mainComponentContainer = new VerticalLayout(); mainComponentContainer.setSizeFull(); mainComponentContainer.setMargin(false); table = createTable();/* w w w . java 2 s. c o m*/ return mainComponentContainer; }
From source file:org.openeos.services.ui.vaadin.internal.DefaultVaadinERPWindowFactory.java
License:Apache License
@Override public Component createWindowComponent(IWindowDefinition window, final UIApplication<IUnoVaadinApplication> application) { final VerticalLayout verticalLayout = new VerticalLayout(); verticalLayout.setSizeFull(); verticalLayout.setMargin(false);// ww w.ja v a 2 s. co m final VaadinWindow vaadinWindow = createWindowImpl(window, application); Component toolbar = createToolBar(vaadinWindow); Component entityActionPanel = createEntityActionPanel(vaadinWindow, application); if (entityActionPanel != null) { verticalLayout.addComponent(toolbar); HorizontalLayout horizontal = new HorizontalLayout(); horizontal.addComponent(vaadinWindow.getComponent()); horizontal.addComponent(entityActionPanel); horizontal.setSizeFull(); horizontal.setExpandRatio(vaadinWindow.getComponent(), 1.0f); verticalLayout.addComponent(horizontal); verticalLayout.setExpandRatio(toolbar, 0); verticalLayout.setExpandRatio(horizontal, 1); } else { verticalLayout.addComponent(toolbar); verticalLayout.addComponent(vaadinWindow.getComponent()); verticalLayout.setExpandRatio(toolbar, 0); verticalLayout.setExpandRatio(vaadinWindow.getComponent(), 1); } application.getConcreteApplication().addCloseTabListener(new CloseTabListener() { @Override public boolean closeTab(final TabSheet tabSheet, final Component c) { if (c == verticalLayout && vaadinWindow.getActiveTab().isModified()) { application.showConfirmation("The changes will be lost, are you sure?", new ConfirmationCallback() { @Override public void onCloseConfirmation(boolean accepted) { if (accepted) { tabSheet.removeComponent(c); removeListener(); } } }); return true; } return false; } private void removeListener() { application.getConcreteApplication().removeCloseTabListener(this); } }); return verticalLayout; }