List of usage examples for com.vaadin.ui VerticalLayout setWidth
@Override public void setWidth(String width)
From source file:org.apache.tamaya.ui.views.ConfigView.java
License:Apache License
private Component createConfigTab() { VerticalLayout tabLayout = new VerticalLayout(); Component filters = createFilters(); configArea.setWordWrap(false);/*www. ja va 2 s. c o m*/ configArea.setReadOnly(true); configArea.setHeight("100%"); configArea.setWidth("100%"); configArea.setRows(20); fillTree(); tabLayout.addComponents(filters, configArea); tabLayout.setHeight("100%"); tabLayout.setWidth("100%"); return tabLayout; }
From source file:org.diretto.web.richwebclient.view.sections.ContactSection.java
License:Open Source License
@Override public synchronized void addComponents() { if (!componentsAdded) { GridLayout mainLayout = new GridLayout(2, 1); addComponent(mainLayout);/*from ww w .j a v a 2 s. co m*/ setExpandRatio(mainLayout, 1.0f); VerticalLayout contactDetailsLayout = new VerticalLayout(); contactDetailsLayout.setStyleName(Reindeer.LAYOUT_BLACK); contactDetailsLayout.setWidth("280px"); contactDetailsLayout.setMargin(true); contactDetailsLayout.setSpacing(true); contactDetailsLayout.addComponent(StyleUtils.getLabelH2("Contact Details")); contactDetailsLayout.addComponent(StyleUtils.getHorizontalLine()); contactDetailsLayout.addComponent(StyleUtils.getLabelBold("Project Team")); contactDetailsLayout.addComponent(StyleUtils.getLabel("Benjamin Erb & Tobias Schlecht")); contactDetailsLayout.addComponent(StyleUtils.getHorizontalLine()); contactDetailsLayout.addComponent(StyleUtils.getLabelBold("Address")); contactDetailsLayout .addComponent(StyleUtils.getLabel("Institute of Media Informatics, Ulm University")); contactDetailsLayout.addComponent(StyleUtils.getLabel("James-Franck-Ring, 89073 Ulm, Germany")); contactDetailsLayout.addComponent(StyleUtils.getHorizontalLine()); contactDetailsLayout.addComponent(StyleUtils.getLabelBold("Project Website")); contactDetailsLayout .addComponent(new Link("www.diretto.org", new ExternalResource("http://www.diretto.org/"))); contactDetailsLayout.addComponent(StyleUtils.getVerticalSpaceSmall()); contactDetailsLayout.addComponent(StyleUtils.getLabelBold("GitHub Profile")); contactDetailsLayout.addComponent( new Link("github.com/diretto", new ExternalResource("https://github.com/diretto"))); contactDetailsLayout.addComponent(StyleUtils.getVerticalSpaceSmall()); contactDetailsLayout.addComponent(StyleUtils.getLabelBold("Twitter Account")); contactDetailsLayout.addComponent(new Link("twitter.com/diretto_project", new ExternalResource("http://twitter.com/diretto_project"))); contactDetailsLayout.addComponent(StyleUtils.getHorizontalLine()); contactDetailsLayout.addComponent(StyleUtils.getLabelBold("Email Address")); contactDetailsLayout.addComponent( new Link("diretto@googlegroups.com", new ExternalResource("mailto:diretto@googlegroups.com"))); mainLayout.addComponent(contactDetailsLayout); VerticalLayout wrapperLayout = new VerticalLayout(); wrapperLayout.setWidth("600px"); wrapperLayout.setMargin(false, true, false, true); VerticalLayout termsOfUseLayout = new VerticalLayout(); termsOfUseLayout.setWidth("520px"); termsOfUseLayout.setMargin(true); termsOfUseLayout.setSpacing(true); termsOfUseLayout.addComponent(StyleUtils.getLabelH2("Terms of Use")); termsOfUseLayout.addComponent(StyleUtils.getHorizontalLine()); termsOfUseLayout.addComponent(StyleUtils.getLabelBold("Terms")); termsOfUseLayout.addComponent(StyleUtils.getLabelHTML( "By accessing this website, you are agreeing to be bound by these website <i>Terms of Use</i>, all applicable laws and regulations, and agree that you are responsible for compliance with any applicable local laws. If you do not agree with any of these terms, you are prohibited from using or accessing this site. The materials contained in this web site are protected by applicable copyright and trade mark law.")); termsOfUseLayout.addComponent(StyleUtils.getHorizontalLine()); termsOfUseLayout.addComponent(StyleUtils.getLabelBold("Use License")); termsOfUseLayout.addComponent(StyleUtils.getLabelHTML( "Permission is granted to temporarily download one copy of the materials (information or software) on this website for personal, non-commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may not:<br /><br />" + "• modify or copy the materials<br />" + "• use the materials for any commercial purpose, or for any public display<br />" + "• attempt to decompile or reverse engineer any software contained on this website<br />" + "• remove any copyright or other proprietary notations from the materials<br />" + "• transfer the materials to another person or any other server<br />" + "<br />This license shall automatically terminate if you violate any of these restrictions and may be terminated by the <i>diretto</i> Project Team at any time. Upon terminating your viewing of these materials or upon the termination of this license, you must destroy any downloaded materials in your possession whether in electronic or printed format.")); termsOfUseLayout.addComponent(StyleUtils.getHorizontalLine()); termsOfUseLayout.addComponent(StyleUtils.getLabelBold("Disclaimer")); termsOfUseLayout.addComponent(StyleUtils.getLabelHTML( "The materials on this website are provided <i>as is</i>. The <i>diretto</i> Project Team makes no warranties, expressed or implied, and hereby disclaims and negates all other warranties, including without limitation, implied warranties or conditions of merchantability, fitness for a particular purpose, or non-infringement of intellectual property or other violation of rights. Further, the <i>diretto</i> Project Team does not warrant or make any representations concerning the accuracy, likely results, or reliability of the use of the materials on its Internet website or otherwise relating to such materials or on any sites linked to this site.")); termsOfUseLayout.addComponent(StyleUtils.getHorizontalLine()); termsOfUseLayout.addComponent(StyleUtils.getLabelBold("Limitations")); termsOfUseLayout.addComponent(StyleUtils.getLabelHTML( "In no event shall the <i>diretto</i> Project Team be liable for any damages (including, without limitation, damages for loss of data or profit, or due to business interruption) arising out of the use or inability to use the materials on this website, even if the <i>diretto</i> Project Team has been notified orally or in writing of the possibility of such damage. Because some jurisdictions do not allow limitations on implied warranties, or limitations of liability for consequential or incidental damages, these limitations may not apply to you. ")); termsOfUseLayout.addComponent(StyleUtils.getHorizontalLine()); termsOfUseLayout.addComponent(StyleUtils.getLabelBold("Revisions and Errata")); termsOfUseLayout.addComponent(StyleUtils.getLabelHTML( "The materials appearing on this website could include technical, typographical, or photographic errors. The <i>diretto</i> Project Team does not warrant that any of the materials on its website are accurate, complete, or current. The <i>diretto</i> Project Team may make changes to the materials contained on its website at any time without notice. The <i>diretto</i> Project Team does not, however, make any commitment to update the materials. ")); termsOfUseLayout.addComponent(StyleUtils.getHorizontalLine()); termsOfUseLayout.addComponent(StyleUtils.getLabelBold("Links")); termsOfUseLayout.addComponent(StyleUtils.getLabelHTML( "The <i>diretto</i> Project Team has not reviewed all of the sites linked to its Internet website and is not responsible for the contents of any such linked site. The inclusion of any link does not imply endorsement by the <i>diretto</i> Project Team of the site. Use of any such linked website is at the user's own risk. ")); termsOfUseLayout.addComponent(StyleUtils.getHorizontalLine()); termsOfUseLayout.addComponent(StyleUtils.getLabelBold("Site Terms of Use Modifications")); termsOfUseLayout.addComponent(StyleUtils.getLabelHTML( "The <i>diretto</i> Project Team may revise these terms of use for its website at any time without notice. By using this website you are agreeing to be bound by the then current version of these <i>Terms of Use</i>.")); termsOfUseLayout.addComponent(StyleUtils.getHorizontalLine()); termsOfUseLayout.addComponent(StyleUtils.getLabelBold("Governing Law")); termsOfUseLayout.addComponent(StyleUtils.getLabelHTML( "Any claim relating to this website shall be governed by the laws of <i>Germany</i> without regard to its conflict of law provisions. General terms and conditions are applicable to the use of this website.")); wrapperLayout.addComponent(termsOfUseLayout); wrapperLayout.setComponentAlignment(termsOfUseLayout, Alignment.TOP_CENTER); mainLayout.addComponent(wrapperLayout); componentsAdded = true; } }
From source file:org.eclipse.hawkbit.ui.artifacts.upload.UploadResultWindow.java
License:Open Source License
private void createLayout() { final HorizontalLayout footer = new HorizontalLayout(); footer.setSizeUndefined();/*from w ww.j a va2s . co m*/ footer.addStyleName("confirmation-window-footer"); footer.setSpacing(true); footer.setMargin(false); footer.addComponents(closeBtn); footer.setComponentAlignment(closeBtn, Alignment.TOP_CENTER); final VerticalLayout uploadResultDetails = new VerticalLayout(); uploadResultDetails.setWidth(SPUIDefinitions.MIN_UPLOAD_CONFIRMATION_POPUP_WIDTH + "px"); uploadResultDetails.addStyleName("confirmation-popup"); uploadResultDetails.addComponent(uploadResultTable); uploadResultDetails.setComponentAlignment(uploadResultTable, Alignment.MIDDLE_CENTER); uploadResultDetails.addComponent(footer); uploadResultDetails.setComponentAlignment(footer, Alignment.MIDDLE_CENTER); uploadResultsWindow = new Window(); uploadResultsWindow.setContent(uploadResultDetails); uploadResultsWindow.setResizable(Boolean.FALSE); uploadResultsWindow.setClosable(Boolean.FALSE); uploadResultsWindow.setDraggable(Boolean.TRUE); uploadResultsWindow.setModal(true); uploadResultsWindow.setCaption(SPUILabelDefinitions.UPLOAD_RESULT); uploadResultsWindow.addStyleName(SPUIStyleDefinitions.CONFIRMATION_WINDOW_CAPTION); }
From source file:org.eclipse.hawkbit.ui.menu.DashboardMenu.java
License:Open Source License
private static VerticalLayout getMenuLayout() { final VerticalLayout menuContent = new VerticalLayout(); menuContent.addStyleName(ValoTheme.MENU_PART); menuContent.addStyleName("sidebar"); menuContent.addStyleName("no-vertical-drag-hints"); menuContent.addStyleName("no-horizontal-drag-hints"); menuContent.setWidth(null); menuContent.setHeight("100%"); return menuContent; }
From source file:org.escidoc.browser.controller.ContentModelView.java
License:Open Source License
private VerticalLayout buildVlContentPanel() { // common part: create layout VerticalLayout vlContentPanel = new VerticalLayout(); vlContentPanel.setImmediate(false);/*from w ww .j a va 2 s .co m*/ vlContentPanel.setWidth("100.0%"); vlContentPanel.setHeight("100.0%"); vlContentPanel.setMargin(false, true, false, true); // breadCrumpPanel breadCrump = buildBreadCrumpPanel(); vlContentPanel.addComponent(breadCrump); // resourcePropertiesPanel Panel resourcePropertiesPanel = buildResourcePropertiesPanel(); vlContentPanel.addComponent(resourcePropertiesPanel); vlContentPanel.setExpandRatio(resourcePropertiesPanel, 1.5f); // metaViewsPanel contains Panel for the DirectMembers & for the Metas Panel metaViewsPanel = buildMetaViewsPanel(); vlContentPanel.addComponent(metaViewsPanel); vlContentPanel.setExpandRatio(metaViewsPanel, 8.0f); return vlContentPanel; }
From source file:org.escidoc.browser.controller.ContentModelView.java
License:Open Source License
private VerticalLayout buildVlLeftPanel() { // common part: create layout VerticalLayout vlLeftPanel = new VerticalLayout(); vlLeftPanel.setImmediate(false);/*from w w w . j av a 2 s.co m*/ vlLeftPanel.setWidth("100.0%"); vlLeftPanel.setHeight("100.0%"); vlLeftPanel.setMargin(false); // directMembersPanel Panel directMembersPanel = buildDirectMembersPanel(); directMembersPanel.setStyleName("directmembers"); vlLeftPanel.addComponent(directMembersPanel); return vlLeftPanel; }
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);/*ww w .j a v a 2 s . co m*/ 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 VerticalLayout buildVlRightPanel() { // common part: create layout VerticalLayout vlRightPanel = new VerticalLayout(); vlRightPanel.setImmediate(false);// ww w. j av a 2 s. c o m vlRightPanel.setWidth("100.0%"); vlRightPanel.setHeight("100.0%"); vlRightPanel.setMargin(false); return vlRightPanel; }
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. j a va 2s . c o m 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.controller.ContentModelView.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 createProperties(vlResourceProperties); return vlResourceProperties; }