List of usage examples for com.vaadin.ui Panel setWidth
@Override public void setWidth(String width)
From source file:org.escidoc.browser.controller.ContentModelView.java
License:Open Source License
private Panel buildMetaViewsPanel() { // common part: create layout Panel metaViewsPanel = new Panel(); metaViewsPanel.setImmediate(false);/* w w w .j ava 2s. c o m*/ metaViewsPanel.setWidth("100.0%"); metaViewsPanel.setHeight("100.0%"); metaViewsPanel.setStyleName(Runo.PANEL_LIGHT); // hlMetaViews HorizontalLayout hlMetaViews = buildHlMetaViews(); metaViewsPanel.setContent(hlMetaViews); return metaViewsPanel; }
From source file:org.escidoc.browser.controller.ContentModelView.java
License:Open Source License
private Panel buildLeftPanel() { // common part: create layout Panel leftPanel = new Panel(); leftPanel.setImmediate(false);/*from w ww . j a v a 2 s . co m*/ leftPanel.setWidth("100.0%"); leftPanel.setHeight("100.0%"); // vlLeftPanel VerticalLayout vlLeftPanel = buildVlLeftPanel(); leftPanel.setContent(vlLeftPanel); return leftPanel; }
From source file:org.escidoc.browser.controller.ContentModelView.java
License:Open Source License
private Panel buildDirectMembersPanel() { // common part: create layout Panel directMembersPanel = new Panel(); directMembersPanel.setImmediate(false); directMembersPanel.setWidth("100.0%"); directMembersPanel.setHeight("100.0%"); directMembersPanel.setStyleName(Runo.PANEL_LIGHT); // vlDirectMember VerticalLayout vlDirectMember = new VerticalLayout(); vlDirectMember.setImmediate(false);// w ww . j a va 2s. com vlDirectMember.setWidth("100.0%"); vlDirectMember.setHeight("100.0%"); vlDirectMember.setMargin(false); directMembersPanel.setContent(vlDirectMember); return directMembersPanel; }
From source file:org.escidoc.browser.controller.ContentModelView.java
License:Open Source License
private Panel buildRightPanel() { // common part: create layout Panel rightPanel = new Panel(); rightPanel.setImmediate(false);/* w w w . ja va 2s. c om*/ rightPanel.setWidth("100.0%"); rightPanel.setHeight("100.0%"); // vlRightPanel VerticalLayout vlRightPanel = buildVlRightPanel(); rightPanel.setContent(vlRightPanel); return rightPanel; }
From source file:org.escidoc.browser.controller.ContentModelView.java
License:Open Source License
private Panel buildResourcePropertiesPanel() { // common part: create layout Panel resourcePropertiesPanel = new Panel(); resourcePropertiesPanel.setImmediate(false); resourcePropertiesPanel.setWidth("100.0%"); resourcePropertiesPanel.setHeight("100%"); resourcePropertiesPanel.setStyleName(Runo.PANEL_LIGHT); // vlResourceProperties resourcePropertiesPanel.setContent(buildVlResourceProperties()); return resourcePropertiesPanel; }
From source file:org.escidoc.browser.controller.ContentModelView.java
License:Open Source License
private Panel buildBreadCrumpPanel() { // common part: create layout Panel breadCrumpPanel = new Panel(); breadCrumpPanel.setImmediate(false); breadCrumpPanel.setWidth("100.0%"); breadCrumpPanel.setHeight("30px"); breadCrumpPanel.setStyleName(Runo.PANEL_LIGHT); // vlBreadCrump VerticalLayout vlBreadCrump = new VerticalLayout(); vlBreadCrump.setImmediate(false);//from www . jav a 2 s .c om vlBreadCrump.setWidth("100.0%"); vlBreadCrump.setHeight("100.0%"); vlBreadCrump.setMargin(false); breadCrumpPanel.setContent(vlBreadCrump); // BreadCreumb new BreadCrumbMenu(breadCrumpPanel, resourceProxy.getName().toString()); return breadCrumpPanel; }
From source file:org.escidoc.browser.ekinematixmodule.views.RechercheView.java
License:Open Source License
private Panel buildBreadCrumpPanel() { // common part: create layout Panel breadCrumpPanel = new Panel(); breadCrumpPanel.setImmediate(false); breadCrumpPanel.setWidth("100.0%"); breadCrumpPanel.setHeight("30px"); breadCrumpPanel.setStyleName(Runo.PANEL_LIGHT); // vlBreadCrump VerticalLayout vlBreadCrump = new VerticalLayout(); vlBreadCrump.setImmediate(false);/*from w w w . j ava2 s . c om*/ vlBreadCrump.setWidth("100.0%"); vlBreadCrump.setHeight("100.0%"); vlBreadCrump.setMargin(false); breadCrumpPanel.setContent(vlBreadCrump); // BreadCreumb new BreadCrumbMenu(breadCrumpPanel, resourceProxy); return breadCrumpPanel; }
From source file:org.escidoc.browser.elabsmodul.views.helpers.ResourcePropertiesViewHelper.java
License:Open Source License
public Panel generatePropertiesView() { // Item title String resourceType = resourceProxy.getType().toString(); if (this.type != null && this.type.length() > 0) { resourceType = this.type; }// www .ja v a 2s . c o m final Label titleLabel = new Label(resourceType.substring(0, 1).toUpperCase() + resourceType.substring(1).toLowerCase() + ": " + resourceProxy.getName()); titleLabel.setDescription("header"); titleLabel.setStyleName("h2 fullwidth"); // HR Ruler final Label descRuler = new Label("<hr/>", Label.CONTENT_RAW); descRuler.setStyleName("hr"); // ItemProperties View final CssLayout propertiesView = new CssLayout(); propertiesView.setWidth("100%"); propertiesView.setHeight("100%"); final Label descMetadata1 = new Label("ID: " + resourceProxy.getId()); final Label descMetadata2 = new Label( LAST_MODIFIED_BY + " " + resourceProxy.getModifier() + " on " + resourceProxy.getModifiedOn(), Label.CONTENT_XHTML); final Panel pnlPropertiesLeft = buildLeftPanel(); pnlPropertiesLeft.setWidth("40%"); pnlPropertiesLeft.setHeight("20px"); pnlPropertiesLeft.setStyleName(FLOAT_LEFT); pnlPropertiesLeft.addStyleName(Runo.PANEL_LIGHT); pnlPropertiesLeft.getLayout().setMargin(false); pnlPropertiesLeft.addComponent(descMetadata1); final Panel pnlPropertiesRight = buildRightPanel(); pnlPropertiesRight.setWidth("60%"); pnlPropertiesRight.setHeight("20px"); pnlPropertiesRight.setStyleName(FLOAT_RIGHT); pnlPropertiesRight.addStyleName(Runo.PANEL_LIGHT); pnlPropertiesRight.getLayout().setMargin(false); pnlPropertiesRight.addComponent(descMetadata2); propertiesView.addComponent(pnlPropertiesLeft); propertiesView.addComponent(pnlPropertiesRight); Panel viewHandler = buildmainView(); new BreadCrumbMenu(viewHandler, breadCrumbModel, serviceLocation); viewHandler.addComponent(titleLabel); viewHandler.addComponent(descRuler); viewHandler.addComponent(propertiesView); return viewHandler; }
From source file:org.escidoc.browser.elabsmodul.views.helpers.ResourcePropertiesViewHelper.java
License:Open Source License
private Panel buildRightPanel() { final Panel pnlPropertiesRight = new Panel(); pnlPropertiesRight.setWidth("60%"); pnlPropertiesRight.setHeight("60px"); pnlPropertiesRight.setStyleName(FLOAT_RIGHT); pnlPropertiesRight.addStyleName(Runo.PANEL_LIGHT); return pnlPropertiesRight; }
From source file:org.escidoc.browser.elabsmodul.views.helpers.ResourcePropertiesViewHelper.java
License:Open Source License
private Panel buildLeftPanel() { final Panel pnlPropertiesLeft = new Panel(); pnlPropertiesLeft.setWidth("40%"); pnlPropertiesLeft.setHeight("70px"); pnlPropertiesLeft.setStyleName(FLOAT_LEFT); pnlPropertiesLeft.addStyleName(Runo.PANEL_LIGHT); return pnlPropertiesLeft; }