List of usage examples for com.vaadin.ui VerticalLayout setWidth
@Override public void setWidth(String width)
From source file:org.escidoc.browser.ui.maincontent.OrgUnitMetadataRecordsView.java
License:Open Source License
public Panel asPanel() { final Panel panel = new Panel(); panel.setSizeFull();/*from www . j a v a 2 s .c o m*/ panel.setStyleName(Runo.PANEL_LIGHT); VerticalLayout vl = new VerticalLayout(); vl.setImmediate(false); vl.setWidth("100.0%"); vl.setHeight("100.0%"); vl.setMargin(false); vl.addComponent(buildMetaDataTab()); panel.setContent(vl); return panel; }
From source file:org.escidoc.browser.ui.maincontent.OrgUnitView.java
License:Open Source License
private VerticalLayout buildVlContentPanel() { VerticalLayout contentPanel = new VerticalLayout(); contentPanel.setImmediate(false);/* w w w. j ava 2 s. com*/ contentPanel.setWidth("100.0%"); contentPanel.setMargin(false, true, false, true); // breadCrumpPanel breadCrump = buildBreadCrumpPanel(); contentPanel.addComponent(breadCrump); // resourcePropertiesPanel Panel resourcePropertiesPanel = buildResourcePropertiesPanel(); contentPanel.addComponent(resourcePropertiesPanel); contentPanel.setComponentAlignment(resourcePropertiesPanel, Alignment.TOP_LEFT); // metaViewsPanel contains Panel for the DirectMembers & for the Metas Panel metaViewsPanel = buildMetaViewsPanel(); contentPanel.addComponent(metaViewsPanel); contentPanel.setComponentAlignment(metaViewsPanel, Alignment.TOP_LEFT); return contentPanel; }
From source file:org.escidoc.browser.ui.maincontent.OrgUnitView.java
License:Open Source License
private VerticalLayout buildVlRightPanel() { // common part: create layout VerticalLayout vlRightPanel = new VerticalLayout(); vlRightPanel.setImmediate(false);//from w ww. j a v a 2 s . c o m vlRightPanel.setWidth("100.0%"); vlRightPanel.setHeight("100.0%"); vlRightPanel.setMargin(false); vlRightPanel.addComponent(buildMetaDataView()); vlRightPanel.addComponent(buildParentsView()); return vlRightPanel; }
From source file:org.escidoc.browser.ui.maincontent.OrgUnitView.java
License:Open Source License
private VerticalLayout buildVlResourceProperties() { // common part: create layout VerticalLayout vlResourceProperties = new VerticalLayout(); vlResourceProperties.setImmediate(false); vlResourceProperties.setWidth("100.0%"); vlResourceProperties.setHeight("100px"); vlResourceProperties.setMargin(false); // creating the properties / without the breadcrump createProperties(vlResourceProperties); return vlResourceProperties; }
From source file:org.escidoc.browser.ui.maincontent.OrgUnitView.java
License:Open Source License
private VerticalLayout bindNameToHeader() { VerticalLayout headerLayout = new VerticalLayout(); headerLayout.setMargin(false);//from ww w .j a va2 s. c o m headerLayout.setWidth("100%"); final Label headerContext = new Label("Organizational Unit: " + resourceProxy.getName()); headerContext.setStyleName("h1 fullwidth"); headerContext.setDescription("Organizational Unit"); headerLayout.addComponent(headerContext); return headerLayout; }
From source file:org.escidoc.browser.ui.maincontent.ParentsView.java
License:Open Source License
public Panel asPanel() { final Panel pnlmetadataRecs = new Panel(); pnlmetadataRecs.setSizeFull();/* w w w. j a v a 2 s . c om*/ pnlmetadataRecs.setStyleName(Runo.PANEL_LIGHT); VerticalLayout vl = new VerticalLayout(); vl.setImmediate(false); vl.setWidth("100.0%"); vl.setHeight("100.0%"); vl.setMargin(false); vl.addComponent(buildParentsList()); pnlmetadataRecs.setContent(vl); return pnlmetadataRecs; }
From source file:org.escidoc.browser.ui.tools.CreateResourcesView.java
License:Open Source License
private VerticalLayout buildVlContentPanel() { // common part: create layout final VerticalLayout vlContentPanel = new VerticalLayout(); vlContentPanel.setImmediate(false);/* ww w . ja v a 2 s. c o m*/ vlContentPanel.setWidth("100.0%"); vlContentPanel.setHeight("100.0%"); vlContentPanel.setMargin(false); // pnlCreateContext final Accordion pnlCreateContext = buildPnlCreateContext(); vlContentPanel.addComponent(pnlCreateContext); vlContentPanel.setExpandRatio(pnlCreateContext, 0.4f); // pnlCreate final Accordion pnlCreate = buildCreateContentModel(); vlContentPanel.addComponent(pnlCreate); vlContentPanel.setExpandRatio(pnlCreate, 0.3f); // pnlCreateOrgUnit final Accordion pnlCreateOrgUnit = buildPnlCreateOrgUnit(); vlContentPanel.addComponent(pnlCreateOrgUnit); vlContentPanel.setExpandRatio(pnlCreateOrgUnit, 0.3f); // pnlCreateOrgUnit final Accordion createUserAccount = buildCreateUserAccount(); vlContentPanel.addComponent(createUserAccount); vlContentPanel.setExpandRatio(createUserAccount, 0.3f); return vlContentPanel; }
From source file:org.escidoc.browser.ui.useraccount.UserAccountView.java
License:Open Source License
private VerticalLayout buildVlContentPanel() { // common part: create layout VerticalLayout vlContentPanel = new VerticalLayout(); vlContentPanel.setImmediate(false);/*from ww w .j ava 2 s . c o m*/ vlContentPanel.setWidth("100.0%"); vlContentPanel.setHeight("100.0%"); vlContentPanel.setMargin(false, true, false, true); vlContentPanel.addComponent(buildVlResourceProperties()); // pnlCreateContext Panel panel = buildPanel(); vlContentPanel.addComponent(panel); vlContentPanel.setExpandRatio(panel, 1f); return vlContentPanel; }
From source file:org.escidoc.browser.ui.useraccount.UserAccountView.java
License:Open Source License
private static VerticalLayout buildVerticalLayout() { VerticalLayout verticalLayout = new VerticalLayout(); verticalLayout.setImmediate(false);/* w w w .j a v a 2s .c om*/ verticalLayout.setWidth("100.0%"); verticalLayout.setHeight("100.0%"); verticalLayout.setMargin(false); verticalLayout.setSpacing(false); return verticalLayout; }
From source file:org.escidoc.browser.ui.useraccount.UserAccountView.java
License:Open Source License
private VerticalLayout buildVlResourceProperties() { // common part: create layout VerticalLayout vlResourceProperties = new VerticalLayout(); vlResourceProperties.setImmediate(false); vlResourceProperties.setWidth("100.0%"); vlResourceProperties.setHeight("100.0%"); vlResourceProperties.setMargin(false); // creating the properties / without the breadcrump resoucePropertiesView = new ResourcePropertiesUserAccountView(userProxy, router, uac); resoucePropertiesView.buildViews();/*from w w w . j a v a 2 s. co m*/ vlResourceProperties.addComponent(resoucePropertiesView.getContentLayout()); return vlResourceProperties; }