List of usage examples for com.vaadin.ui HorizontalLayout setExpandRatio
public void setExpandRatio(Component component, float ratio)
This method is used to control how excess space in layout is distributed among components.
From source file:nl.kpmg.lcm.ui.view.administration.AuthorizedLcmPanel.java
License:Apache License
private HorizontalLayout initDataLayout() throws UnsupportedOperationException { VerticalLayout tableLayout = new VerticalLayout(); authorizedLcmsTable = createAuthorizedLcmTable(); tableLayout.addComponent(authorizedLcmsTable); tableLayout.addStyleName("padding-right-20"); authorizedLcmPanel = new Panel("Authorized LCM details"); authorizedLcmPanel.setWidth(DETAILS_PANEL_WIDTH); authorizedLcmPanel.setHeight("100%"); HorizontalLayout dataLayout = new HorizontalLayout(); dataLayout.addComponent(tableLayout); dataLayout.addComponent(authorizedLcmPanel); dataLayout.setWidth("100%"); dataLayout.setExpandRatio(tableLayout, 1f); return dataLayout; }
From source file:nl.kpmg.lcm.ui.view.administration.RemoteLcmPanel.java
License:Apache License
public RemoteLcmPanel(RestClientService restClientService) { this.restClientService = restClientService; VerticalLayout rootVerticalLayout = new VerticalLayout(); HorizontalLayout menubar = initMenuBar(restClientService); rootVerticalLayout.addComponent(menubar); HorizontalLayout dataLayout = initDataLayout(); rootVerticalLayout.addComponent(dataLayout); rootVerticalLayout.setHeight("100%"); HorizontalLayout root = new HorizontalLayout(); root.addComponent(rootVerticalLayout); root.setSpacing(true);//from ww w . j av a 2s .c o m root.setMargin(true); root.setWidth("100%"); root.setHeight("100%"); root.setExpandRatio(rootVerticalLayout, 1f); setCompositionRoot(root); }
From source file:nl.kpmg.lcm.ui.view.administration.RemoteLcmPanel.java
License:Apache License
private HorizontalLayout initDataLayout() throws UnsupportedOperationException { remoteLcmTable = constructTable();// w w w.j a v a 2 s .co m VerticalLayout tableLayout = new VerticalLayout(); tableLayout.addComponent(remoteLcmTable); tableLayout.addStyleName("padding-right-20"); detailsPanel = new Panel("Remote LCM details"); detailsPanel.setWidth(PANEL_SIZE); detailsPanel.setHeight("100%"); HorizontalLayout horizontalLayout = new HorizontalLayout(); horizontalLayout.addComponent(tableLayout); horizontalLayout.addComponent(detailsPanel); horizontalLayout.setWidth("100%"); horizontalLayout.setExpandRatio(tableLayout, 1f); return horizontalLayout; }
From source file:nl.kpmg.lcm.ui.view.administration.StoragePanel.java
License:Apache License
public StoragePanel(RestClientService restClientService) { this.restClientService = restClientService; HorizontalLayout menubar = initMenubar(restClientService); HorizontalLayout dataLayout = initDataLayout(); VerticalLayout rootVerticalLayout = new VerticalLayout(); rootVerticalLayout.addComponent(menubar); rootVerticalLayout.addComponent(dataLayout); rootVerticalLayout.setHeight("100%"); HorizontalLayout root = new HorizontalLayout(); root.addComponent(rootVerticalLayout); root.setSpacing(true);/*www . j a va 2 s .c o m*/ root.setMargin(true); root.setWidth("100%"); root.setHeight("100%"); root.setExpandRatio(rootVerticalLayout, 1f); setCompositionRoot(root); }
From source file:nl.kpmg.lcm.ui.view.administration.StoragePanel.java
License:Apache License
private HorizontalLayout initDataLayout() throws UnsupportedOperationException { VerticalLayout tableLayout = new VerticalLayout(); storageTable = createStorageTable(); tableLayout.addComponent(storageTable); tableLayout.addStyleName("padding-right-20"); storageDetailsPanel = new Panel("Storage details"); storageDetailsPanel.setWidth(DETAILS_PANEL_WIDTH); storageDetailsPanel.setHeight("100%"); HorizontalLayout dataLayout = new HorizontalLayout(); dataLayout.addComponent(tableLayout); dataLayout.addComponent(storageDetailsPanel); dataLayout.setWidth("100%"); dataLayout.setExpandRatio(tableLayout, 1f); return dataLayout; }
From source file:nl.kpmg.lcm.ui.view.administration.UserGroupPanel.java
License:Apache License
public UserGroupPanel(RestClientService restClientService) { this.restClientService = restClientService; HorizontalLayout menubar = initMenubar(restClientService); HorizontalLayout dataLayout = initDataLayout(); VerticalLayout rootVerticalLayout = new VerticalLayout(); rootVerticalLayout.addComponent(menubar); rootVerticalLayout.addComponent(dataLayout); rootVerticalLayout.setHeight("100%"); HorizontalLayout root = new HorizontalLayout(); root.addComponent(rootVerticalLayout); root.setSpacing(true);// w w w.j ava 2s . c om root.setMargin(true); root.setWidth("100%"); root.setHeight("100%"); root.setExpandRatio(rootVerticalLayout, 1f); setCompositionRoot(root); }
From source file:nl.kpmg.lcm.ui.view.administration.UserGroupPanel.java
License:Apache License
private HorizontalLayout initDataLayout() throws UnsupportedOperationException { VerticalLayout tableLayout = new VerticalLayout(); userGroupTable = createUserTable();/*from w w w.j ava2s . c o m*/ tableLayout.addComponent(userGroupTable); tableLayout.addStyleName("padding-right-20"); userGroupDetailsPanel = new Panel("User details"); userGroupDetailsPanel.setWidth(DETAILS_PANEL_WIDTH); userGroupDetailsPanel.setHeight("100%"); HorizontalLayout dataLayout = new HorizontalLayout(); dataLayout.addComponent(tableLayout); dataLayout.addComponent(userGroupDetailsPanel); dataLayout.setWidth("100%"); dataLayout.setExpandRatio(tableLayout, 1f); return dataLayout; }
From source file:nl.kpmg.lcm.ui.view.administration.UserPanel.java
License:Apache License
public UserPanel(RestClientService restClientService) { this.restClientService = restClientService; HorizontalLayout menubar = initMenubar(restClientService); HorizontalLayout dataLayout = initDataLayout(); VerticalLayout rootVerticalLayout = new VerticalLayout(); rootVerticalLayout.addComponent(menubar); rootVerticalLayout.addComponent(dataLayout); rootVerticalLayout.setHeight("100%"); HorizontalLayout root = new HorizontalLayout(); root.addComponent(rootVerticalLayout); root.setSpacing(true);// w w w.j av a 2s . co m root.setMargin(true); root.setWidth("100%"); root.setHeight("100%"); root.setExpandRatio(rootVerticalLayout, 1f); setCompositionRoot(root); }
From source file:nl.kpmg.lcm.ui.view.administration.UserPanel.java
License:Apache License
private HorizontalLayout initDataLayout() throws UnsupportedOperationException { VerticalLayout tableLayout = new VerticalLayout(); userTable = createUserTable();/*from w w w . ja v a 2s. c om*/ tableLayout.addComponent(userTable); tableLayout.addStyleName("padding-right-20"); userDetailsPanel = new Panel("User details"); userDetailsPanel.setWidth(DETAILS_PANEL_WIDTH); userDetailsPanel.setHeight("100%"); HorizontalLayout dataLayout = new HorizontalLayout(); dataLayout.addComponent(tableLayout); dataLayout.addComponent(userDetailsPanel); dataLayout.setWidth("100%"); dataLayout.setExpandRatio(tableLayout, 1f); return dataLayout; }
From source file:nl.kpmg.lcm.ui.view.transfer.MonitorPanel.java
License:Apache License
public MonitorPanel(RestClientService restClientService) { this.restClientService = restClientService; HorizontalLayout searchlayout = initSearchLayout(restClientService); HorizontalLayout dataLayout = initDataLayout(); VerticalLayout rootVerticalLayout = new VerticalLayout(); rootVerticalLayout.addComponent(searchlayout); rootVerticalLayout.addComponent(dataLayout); HorizontalLayout root = new HorizontalLayout(); root.addComponent(rootVerticalLayout); root.setSpacing(true);/*from w ww. j a v a 2s . co m*/ root.setMargin(true); root.setWidth("100%"); root.setHeight("100%"); root.setExpandRatio(rootVerticalLayout, 1f); setCompositionRoot(root); reloadTasks("", ALL_KEY); taskStatusComboBox.select(ALL_KEY); }