List of usage examples for com.vaadin.ui VerticalLayout setCaption
@Override public void setCaption(String caption)
From source file:com.terralcode.gestion.frontend.view.widgets.customer.CustomerView.java
private void buildCustomerAddresses() { customerAddressesPanel = new CustomerAddressesPanel(); customerAddressesPanel.setWidth("100%"); VerticalLayout wrapper = new VerticalLayout(); wrapper.setCaption("Direcciones registradas"); wrapper.addComponent(customerAddressesPanel); wrapper.setWidth("100%"); mainLayout.addComponent(wrapper);//from w w w. ja va2s . c o m }
From source file:com.terralcode.gestion.frontend.view.widgets.customer.CustomerView.java
private void buildCustomerContacts() { customerContactsPanel = new CustomerContactsPanel(); customerContactsPanel.setWidth("100%"); VerticalLayout wrapper = new VerticalLayout(); wrapper.setCaption("Contactos registrados"); wrapper.addComponent(customerContactsPanel); wrapper.setWidth("100%"); mainLayout.addComponent(wrapper);/*from w w w . j a va 2s . c o m*/ }
From source file:com.terralcode.gestion.frontend.view.widgets.customer.CustomerView.java
private void buildSales() { salesPanel = new SalesPanel(); salesPanel.setWidth("100%"); VerticalLayout wrapper = new VerticalLayout(); wrapper.setCaption("ltimas ventas"); wrapper.addComponent(salesPanel);/*from w w w . j ava2 s .c om*/ wrapper.setWidth("100%"); mainLayout.addComponent(wrapper); }
From source file:com.terralcode.gestion.frontend.view.widgets.customer.CustomerView.java
private void buildAppointments() { appointmentsPanel = new CustomerAppointmentsPanel(); appointmentsPanel.setWidth("100%"); VerticalLayout wrapper = new VerticalLayout(); wrapper.setCaption("Histrico citas"); wrapper.addComponent(appointmentsPanel); wrapper.setWidth("100%"); mainLayout.addComponent(wrapper);/*from w w w.j a va 2 s .co m*/ }
From source file:de.kaiserpfalzEdv.vaadin.about.AboutViewImpl.java
License:Apache License
private VerticalLayout createVerticalLayout(final String caption, final String description, Resource icon) { VerticalLayout result = new VerticalLayout(); result.setSizeFull();//w w w . j a v a2 s .com result.setSpacing(true); result.setResponsive(true); if (caption != null) result.setCaption(presenter.translate(caption)); if (description != null) result.setDescription(presenter.translate(description)); if (icon != null) result.setIcon(icon); return result; }
From source file:de.unioninvestment.eai.portal.portlet.crud.mvp.views.configuration.DefaultPortletConfigurationView.java
License:Apache License
private VerticalLayout createStatusLayout() { status = new Label(); status.setContentMode(ContentMode.HTML); upload = new Upload(); upload.setImmediate(true);/*from w w w . j av a 2 s .c o m*/ upload.setButtonCaption(getMessage("portlet.crud.page.upload.button")); uploadVcsUri = new TextField(); uploadVcsUri.setWidth(400, Unit.PIXELS); uploadVcsButton = new Button(); uploadVcsButton.setCaption(getMessage("portlet.crud.page.upload.vcs.button")); uploadVcsLayout.addComponent(uploadVcsButton); uploadVcsLayout.addComponent(uploadVcsUri); uploadVcsLayout.setSpacing(true); VerticalLayout statusLayout = new VerticalLayout(); statusLayout.setCaption(getMessage("portlet.crud.page.edit.statusHeader")); statusLayout.setSpacing(true); statusLayout.setMargin(true); statusLayout.addComponent(status); statusLayout.addComponent(uploadVcsLayout); statusLayout.addComponent(upload); return statusLayout; }
From source file:de.uni_tuebingen.qbic.qbicmainportlet.PatientView.java
License:Open Source License
/** * initializes the description layout/*from w w w .j av a2 s . co m*/ * * @return */ VerticalLayout initDescription() { VerticalLayout projDescription = new VerticalLayout(); VerticalLayout projDescriptionContent = new VerticalLayout(); projDescription.setCaption(""); projDescription.setIcon(FontAwesome.FILE_TEXT_O); descContent = new Label(""); contact = new Label("", ContentMode.HTML); patientInformation = new Label("No patient information provided.", ContentMode.HTML); projDescriptionContent.addComponent(patientInformation); projDescriptionContent.addComponent(descContent); projDescriptionContent.addComponent(contact); projDescriptionContent.setMargin(new MarginInfo(true, false, true, true)); projDescriptionContent.setSpacing(true); projDescription.addComponent(projDescriptionContent); descContent.setStyleName("patientview"); contact.setStyleName("patientview"); patientInformation.setStyleName("patientview"); projDescription.setMargin(new MarginInfo(true, false, true, true)); projDescription.setSpacing(true); projDescription.setWidth("100%"); return projDescription; }
From source file:de.uni_tuebingen.qbic.qbicmainportlet.PatientView.java
License:Open Source License
VerticalLayout initMemberSection() { VerticalLayout projMembers = new VerticalLayout(); projMembers.setCaption("Members"); membersSection = new VerticalLayout(); Component membersContent = new VerticalLayout(); // membersContent.setIcon(FontAwesome.USERS); // membersContent.setCaption("Members"); membersSection.addComponent(membersContent); // membersSection.setMargin(new MarginInfo(false, false, false, true)); membersSection.setWidth("100%"); membersSection.setSpacing(true);/* ww w . j ava 2s .c o m*/ membersSection.setMargin(new MarginInfo(true, false, true, true)); projMembers.addComponent(membersSection); projMembers.setMargin(new MarginInfo(true, false, true, true)); projMembers.setWidth("100%"); projMembers.setSpacing(true); return projMembers; }
From source file:de.uni_tuebingen.qbic.qbicmainportlet.PatientView.java
License:Open Source License
/** * initializes the hla type layout//from w w w. j a v a 2 s. c o m * * @return */ VerticalLayout initHLALayout() { VerticalLayout hlaTyping = new VerticalLayout(); VerticalLayout hlaTypingContent = new VerticalLayout(); hlaTyping.setCaption("HLA Typing"); // String desc = currentBean.getDescription(); // if (!desc.isEmpty()) { // descContent.setValue(desc); // } hlaTypeLabel = new Label("Not available.", ContentMode.HTML); hlaTypeLabel.setStyleName("patientview"); hlaTypingContent.setMargin(new MarginInfo(true, false, true, true)); hlaTypingContent.setSpacing(true); // hlaTypingContent.setCaption("HLA Typing"); // hlaTypingContent.setIcon(FontAwesome.BARCODE); hlaTypingContent.addComponent(hlaTypeLabel); hlaTyping.addComponent(hlaTypingContent); hlaTyping.setMargin(new MarginInfo(true, false, true, true)); hlaTyping.setSpacing(true); hlaTyping.setWidth("100%"); return hlaTyping; }
From source file:de.uni_tuebingen.qbic.qbicmainportlet.PatientView.java
License:Open Source License
VerticalLayout initTable() { registeredExperiments = this.buildFilterTable(); this.tableClickChangeTreeView(); VerticalLayout tableSection = new VerticalLayout(); VerticalLayout tableSectionContent = new VerticalLayout(); tableSection.setCaption("Exp. Steps"); // tableSectionContent.setCaption("Registered Experiments"); // tableSectionContent.setIcon(FontAwesome.FLASK); tableSectionContent.addComponent(registeredExperiments); tableSectionContent.setMargin(new MarginInfo(true, false, false, true)); tableSection.setMargin(new MarginInfo(true, false, false, true)); registeredExperiments.setWidth("100%"); tableSection.setWidth("100%"); tableSectionContent.setWidth("100%"); tableSection.addComponent(tableSectionContent); this.export = new Button("Export as TSV"); buttonLayoutSection = new VerticalLayout(); HorizontalLayout buttonLayout = new HorizontalLayout(); buttonLayout.setHeight(null);/*from w w w . j a va 2 s .com*/ buttonLayout.setWidth("100%"); buttonLayout.addComponent(this.export); buttonLayout.setMargin(new MarginInfo(false, false, true, false)); buttonLayoutSection.addComponent(buttonLayout); buttonLayoutSection.setSpacing(true); buttonLayoutSection.setMargin(new MarginInfo(false, false, true, true)); tableSection.addComponent(buttonLayoutSection); return tableSection; }