List of usage examples for com.vaadin.ui VerticalLayout addStyleName
@Override public void addStyleName(String style)
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
private HorizontalLayout initDataLayout() throws UnsupportedOperationException { remoteLcmTable = constructTable();// www. java 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
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
private HorizontalLayout initDataLayout() throws UnsupportedOperationException { VerticalLayout tableLayout = new VerticalLayout(); userGroupTable = createUserTable();/*w w w .j a v a 2 s . 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
private HorizontalLayout initDataLayout() throws UnsupportedOperationException { VerticalLayout tableLayout = new VerticalLayout(); userTable = createUserTable();//from w w w.j a 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
private HorizontalLayout initDataLayout() throws UnsupportedOperationException { VerticalLayout tableLayout = new VerticalLayout(); taskTable = initTaskTable();/*from w w w .j a va2s . co m*/ tableLayout.addComponent(taskTable); tableLayout.addStyleName("padding-right-20"); detailsLayout = new VerticalLayout(); detailsLayout.setHeight("100%"); indicationTable = initIndicationTable(); detailsLayout.addComponent(indicationTable); HorizontalLayout dataLayout = new HorizontalLayout(); dataLayout.addComponent(tableLayout); dataLayout.addComponent(detailsLayout); dataLayout.setWidth("100%"); return dataLayout; }
From source file:nl.kpmg.lcm.ui.view.transfer.SchedulePanel.java
License:Apache License
private HorizontalLayout initDataLayout() throws UnsupportedOperationException { VerticalLayout tableLayout = new VerticalLayout(); remoteMetadataTable = initRemoteMetadataTable(); tableLayout.addComponent(remoteMetadataTable); tableLayout.addStyleName("padding-right-20"); VerticalLayout detailsLayout = new VerticalLayout(); detailsLayout.setWidth("100%"); detailsLayout.setHeight("100%"); HorizontalLayout dataLayout = new HorizontalLayout(); dataLayout.addComponent(tableLayout); dataLayout.setWidth("100%"); return dataLayout; }
From source file:org.eclipse.emf.ecp.view.group.vaadin.GroupLayoutRendererVaadin.java
License:Open Source License
@Override protected AbstractOrderedLayout getAbstractOrderedLayout() { final VerticalLayout formLayout = new VerticalLayout(); if (GroupType.NORMAL.equals(getVElement().getGroupType())) { formLayout.addStyleName(GROUP_STYLE_NAME); }/*from ww w. ja v a 2 s .c om*/ return formLayout; }
From source file:org.eclipse.emf.ecp.view.group.vaadin.GroupLayoutRendererVaadin.java
License:Open Source License
@Override protected Component getRenderComponent(final AbstractOrderedLayout orderedLayout) { if (GroupType.COLLAPSIBLE.equals(getVElement().getGroupType())) { final VerticalLayout mainLayout = new VerticalLayout(); final NativeButton collapseButton = new NativeButton(StringUtils.EMPTY, new Button.ClickListener() { @Override/*from w w w . j a v a 2 s .c o m*/ public void buttonClick(ClickEvent event) { final boolean switchVisible = !orderedLayout.isVisible(); setCollapseStyle(event.getButton(), switchVisible); orderedLayout.setVisible(switchVisible); } }); collapseButton.setWidth(100, Unit.PERCENTAGE); mainLayout.addComponent(collapseButton); mainLayout.addComponent(orderedLayout); orderedLayout.setMargin(true); orderedLayout.setSpacing(true); orderedLayout.setVisible(getVElement().isCollapsed()); setCollapseStyle(collapseButton, getVElement().isCollapsed()); mainLayout.addStyleName(GROUP_STYLE_NAME); return mainLayout; } return super.getRenderComponent(orderedLayout); }
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 www. jav a 2s . c o 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); }