List of usage examples for com.vaadin.ui HorizontalLayout addStyleName
@Override public void addStyleName(String style)
From source file:nl.kpmg.lcm.ui.view.administration.components.AuthorizedLcmCreateWindow.java
License:Apache License
private HorizontalLayout initApplicationIdLayout() { HorizontalLayout applicationIdLayout = new HorizontalLayout(); applicationIdField.setRequired(true); applicationIdField.setWidth("70%"); applicationIdLayout.setWidth("100%"); applicationIdLayout.addStyleName("margin-top-10"); applicationIdLayout.addComponent(applicationIdField); return applicationIdLayout; }
From source file:nl.kpmg.lcm.ui.view.administration.components.AuthorizedLcmCreateWindow.java
License:Apache License
private HorizontalLayout initAllowImportOfUsersLayout() { HorizontalLayout allowImportOfUsersLayout = new HorizontalLayout(); allowImportOfUsersCheckBox.setWidth("70%"); allowImportOfUsersLayout.addStyleName("margin-top-20"); allowImportOfUsersLayout.addComponent(allowImportOfUsersCheckBox); return allowImportOfUsersLayout; }
From source file:nl.kpmg.lcm.ui.view.administration.components.RemoteLcmCreateWindow.java
License:Apache License
private HorizontalLayout createUploadLayout() { HorizontalLayout fieldLayout = new HorizontalLayout(); // Create the upload with a caption and set fileReceiver later certificateUpload = new Upload("Select certificate file", fileReceiver); certificateUpload.addSucceededListener(fileReceiver); certificateUpload.addFailedListener(fileReceiver); certificateUpload.setButtonCaption(null); fieldLayout.setWidth("100%"); fieldLayout.addStyleName("margin-top-10"); fieldLayout.addComponent(certificateUpload); return fieldLayout; }
From source file:nl.kpmg.lcm.ui.view.administration.components.RemoteLcmCreateWindow.java
License:Apache License
private HorizontalLayout createLayoutForField(AbstractField field, boolean isRequired) { HorizontalLayout fieldLayout = new HorizontalLayout(); field.setRequired(isRequired);/*w w w .j a va2s . co m*/ field.setWidth("70%"); fieldLayout.setWidth("100%"); fieldLayout.addStyleName("margin-top-10"); fieldLayout.addComponent(field); return fieldLayout; }
From source file:nl.kpmg.lcm.ui.view.administration.components.RemoteLcmCreateWindow.java
License:Apache License
private HorizontalLayout createLayoutForLabel(Label label) { HorizontalLayout labelLayout = new HorizontalLayout(); label.setWidth("70%"); labelLayout.setWidth("100%"); labelLayout.addStyleName("margin-top-10"); labelLayout.addComponent(label);/* w ww . j a va 2s. c o m*/ return labelLayout; }
From source file:nl.kpmg.lcm.ui.view.transfer.MonitorPanel.java
License:Apache License
private HorizontalLayout initSearchLayout(RestClientService restClientService1) throws UnsupportedOperationException { taskStatusComboBox = initTaskStatusComboBox(); searchField = new TextField(); searchField.addStyleName("margin-right-20"); searchField.addStyleName("width-search-field"); searchField.setCaption("Search criteria"); searchField.setInputPrompt("Type search criteria"); Button searchButton = new Button("Search"); searchButton.addClickListener(new SearchListener()); HorizontalLayout searchlayout = new HorizontalLayout(); searchlayout.addComponent(taskStatusComboBox); searchlayout.addComponent(searchField); searchlayout.addComponent(searchButton); searchlayout.setComponentAlignment(searchButton, Alignment.BOTTOM_RIGHT); searchlayout.addStyleName("margin-bottom-20"); return searchlayout; }
From source file:nl.kpmg.lcm.ui.view.transfer.SchedulePanel.java
License:Apache License
private HorizontalLayout initSearchLayout(RestClientService restClientService1) throws UnsupportedOperationException { remoteLcmListComboBox = initRemoteLcmListComboBox(); searchField = new TextField(); searchField.addStyleName("margin-right-20"); searchField.addStyleName("width-search-field"); searchField.setCaption("Search criteria"); searchField.setInputPrompt("Type search criteria"); Button searchButton = new Button("Search"); searchButton.addClickListener(new SearchListener()); HorizontalLayout searchlayout = new HorizontalLayout(); searchlayout.addComponent(remoteLcmListComboBox); searchlayout.addComponent(searchField); searchlayout.addComponent(searchButton); searchlayout.setComponentAlignment(searchButton, Alignment.BOTTOM_RIGHT); searchlayout.addStyleName("margin-bottom-20"); return searchlayout; }
From source file:org.activiti.explorer.ui.form.FormPropertiesForm.java
License:Apache License
protected void initButtons() { submitFormButton = new Button(); cancelFormButton = new Button(); HorizontalLayout buttons = new HorizontalLayout(); buttons.setSpacing(true);/*from w w w . j a v a2s.c om*/ buttons.setWidth(100, UNITS_PERCENTAGE); buttons.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK); buttons.addComponent(submitFormButton); buttons.setComponentAlignment(submitFormButton, Alignment.BOTTOM_RIGHT); buttons.addComponent(cancelFormButton); buttons.setComponentAlignment(cancelFormButton, Alignment.BOTTOM_RIGHT); Label buttonSpacer = new Label(); buttons.addComponent(buttonSpacer); buttons.setExpandRatio(buttonSpacer, 1.0f); addComponent(buttons); }
From source file:org.activiti.explorer.ui.management.admin.AdminCompletedInstancesPanel.java
License:Apache License
protected void initPageTitle() { HorizontalLayout layout = new HorizontalLayout(); layout.setWidth(100, UNITS_PERCENTAGE); layout.addStyleName(ExplorerLayout.STYLE_TITLE_BLOCK); layout.setSpacing(true);//from ww w. j a v a 2 s . co m layout.setMargin(false, false, true, false); addDetailComponent(layout); Embedded groupImage = new Embedded(null, Images.PROCESS_50); layout.addComponent(groupImage); Label groupName = new Label(i18nManager.getMessage(Messages.ADMIN_COMPLETED_TITLE)); groupName.setSizeUndefined(); groupName.addStyleName(Reindeer.LABEL_H2); layout.addComponent(groupName); layout.setComponentAlignment(groupName, Alignment.MIDDLE_LEFT); layout.setExpandRatio(groupName, 1.0f); }
From source file:org.activiti.explorer.ui.management.admin.AdminCompletedInstancesPanel.java
License:Apache License
protected void initDefinitions() { HorizontalLayout definitionsHeader = new HorizontalLayout(); definitionsHeader.setSpacing(true);// ww w. ja va 2 s. c o m definitionsHeader.setWidth(100, UNITS_PERCENTAGE); definitionsHeader.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK); addDetailComponent(definitionsHeader); initDefinitionTitle(definitionsHeader); definitionsLayout = new HorizontalLayout(); definitionsLayout.setWidth(100, UNITS_PERCENTAGE); addDetailComponent(definitionsLayout); initDefinitionsTable(); }