List of usage examples for com.vaadin.ui GridLayout GridLayout
public GridLayout(int columns, int rows)
From source file:org.vaadin.spinkit.demo.DemoUI.java
License:Apache License
private Component spinnerSizesContainer() { int types = SpinnerSize.values().length; GridLayout spinners = new GridLayout(4, (types / 4 + types % 4)); spinners.setSizeFull();/*from ww w .j a v a2s .c om*/ spinners.setDefaultComponentAlignment(Alignment.MIDDLE_CENTER); spinners.setSpacing(true); ComboBox selector = new ComboBox("Select spinner type", Arrays.asList(SpinnerType.values())); selector.setNullSelectionAllowed(false); selector.setPageLength(0); selector.setValue(SpinnerType.ROTATING_PLANE); selector.addValueChangeListener(e -> { for (Component c : spinners) { if (c instanceof Spinner) { ((Spinner) c).setType((SpinnerType) selector.getValue()); } } }); StringToEnumConverter converter = new StringToEnumConverter(); for (SpinnerSize size : SpinnerSize.values()) { Spinner spinner = new Spinner(SpinnerType.ROTATING_PLANE); spinner.setSize(size); spinner.setCaption(converter.convertToPresentation(size, String.class, getLocale())); spinners.addComponent(spinner); } VerticalLayout l = new VerticalLayout(); l.setDefaultComponentAlignment(Alignment.TOP_CENTER); l.setSizeFull(); l.setMargin(false); l.setSpacing(true); l.addComponents(selector, spinners); l.setExpandRatio(spinners, 1); return l; }
From source file:org.vaadin.spring.samples.mvp.ui.view.BannerView.java
License:Apache License
protected GridLayout buildRightArea(String username) { GridLayout right = new GridLayout(1, 1); right.setWidth(100f, Unit.PERCENTAGE); Layout loggedInUser = buildUserArea(username); right.addComponent(loggedInUser, 0, 0); right.setComponentAlignment(loggedInUser, Alignment.MIDDLE_RIGHT); return right; }
From source file:probe.com.view.body.QuantCompareDataLayout.java
public QuantCompareDataLayout(CSFPRHandler CSFPR_Handler) { this.setWidth("100%"); this.setHeightUndefined(); this.setStyleName(Reindeer.LAYOUT_WHITE); this.setSpacing(true); topLabelMarker = new VerticalLayout(); this.addComponent(topLabelMarker); this.setExpandRatio(topLabelMarker, 0.01f); topLabelMarker.setHeight("10px"); topLabelMarker.setWidth("20px"); topLabelMarker.setStyleName(Reindeer.LAYOUT_WHITE); this.CSFPR_Handler = CSFPR_Handler; Map<String, QuantDatasetInitialInformationObject> quantDatasetInitialInformationObjectMap = CSFPR_Handler .getQuantDatasetInitialInformationObject(); diseaseGroupNames = new TreeSet<String>(); for (String diseaseCategory : quantDatasetInitialInformationObjectMap.keySet()) { QuantDatasetInitialInformationObject quantDatasetInitialInformationObject = quantDatasetInitialInformationObjectMap .get(diseaseCategory);/*from ww w . ja va2 s . c om*/ for (QuantDatasetObject qdsObject : quantDatasetInitialInformationObject.getQuantDatasetsList() .values()) { diseaseGroupNames.add(qdsObject.getPatientsSubGroup1().split("\n")[0].trim()); diseaseGroupNames.add(qdsObject.getPatientsSubGroup2().split("\n")[0].trim()); } } int width = 400; if (Page.getCurrent().getBrowserWindowWidth() < 800) { width = Page.getCurrent().getBrowserWindowWidth() / 2; } HorizontalLayout userDataLayout = new HorizontalLayout(); userDataLayout.setSpacing(true); HorizontalLayout miniSelectDiseaseGroupsLayout = new HorizontalLayout(); miniSelectDiseaseGroupsLayout.setStyleName("diseasegroupselectionresult"); miniSelectDiseaseGroupsLayout.setSpacing(true); miniSelectDiseaseGroupsLayout.setWidthUndefined(); miniselectionResultsLabel = new Label(); // miniselectionResultsLabel.setWidth("300px"); miniSelectDiseaseGroupsLayout.addComponent(miniselectionResultsLabel); selectionResultsOverview = new Label(); // selectionResultsOverview.setWidth("300px"); miniSelectDiseaseGroupsLayout.addComponent(selectionResultsOverview); selectionResultsOverview.setContentMode(ContentMode.HTML); userDataLayoutContainer = new HideOnClickLayout("User Data", userDataLayout, miniSelectDiseaseGroupsLayout, Alignment.TOP_LEFT, "info data", null); userDataLayoutContainer.setMargin(new MarginInfo(false, false, false, true)); userDataLayoutContainer.setVisability(true); this.addComponent(userDataLayoutContainer); VerticalLayout leftUserDataLayout = new VerticalLayout(); userDataLayout.addComponent(leftUserDataLayout); //select or enter new disease groups layout selectionResultsLabel = new Label("Selection:"); selectDiseaseGroupsContainer = initSelectEnterDatasetDiseaseGroups(width); // selectDiseaseGroupsContainer.setVisability(true); selectDiseaseGroupsContainer.setReadOnly(true); leftUserDataLayout.addComponent(selectDiseaseGroupsContainer); proteinsDataCaptureLayout = initProteinsDataCapture(width); leftUserDataLayout.addComponent(proteinsDataCaptureLayout); ResultsOverviewLayout.setStyleName("compareresults"); ResultsOverviewLayout.setWidth("350px"); ResultsOverviewLayout.setHeightUndefined(); ResultsOverviewLayout.setSpacing(true); ResultsOverviewLayout.setMargin(new MarginInfo(false, false, false, true)); Label resultsTitleLabel = new Label("Results Overview"); resultsTitleLabel.setContentMode(ContentMode.HTML); resultsTitleLabel.setStyleName("normalheader"); resultsTitleLabel.setHeight("20px"); ResultsOverviewLayout.addComponent(resultsTitleLabel); ResultsOverviewLayout.setComponentAlignment(resultsTitleLabel, Alignment.TOP_LEFT); resultContainer = new GridLayout(3, 5); resultContainer.setSpacing(true); resultContainer.setMargin(true); resultContainer.setHideEmptyRowsAndColumns(true); ResultsOverviewLayout.addComponent(resultContainer); ResultsOverviewLayout.setComponentAlignment(resultContainer, Alignment.TOP_LEFT); resultContainer.setWidth("100%"); foundPublicationLabel = new Label(); // resultContainer.addComponent(foundPublicationLabel, 0, 0); foundStudiesLabel = new Label(); // resultContainer.addComponent(foundStudiesLabel, 1, 0); foundProteinsLabel = new Label(); resultContainer.addComponent(foundProteinsLabel, 0, 0); newProteinsDownloadBtn = new Button(); newProteinsDownloadBtn.setCaptionAsHtml(true); newProteinsDownloadBtn.setStyleName(Reindeer.BUTTON_LINK); // ResultsOverviewLayout.addComponent(newProteinsDownloadBtn); newProteinsDownloadBtn.setDescription("Download new proteins (not found in CSF-PR) records"); // ResultsOverviewLayout.addComponent(newProteinsTextArea); newProteinsTextArea.setWidth("302px"); newProteinsTextArea.setHeight("200px"); newProteinsTextArea.setReadOnly(true); newProteinsDownloadBtn.addClickListener(QuantCompareDataLayout.this); newProteinsDownloadBtn.setId("notfounderrorbtn"); userDataLayout.addComponent(ResultsOverviewLayout); this.addComponent(resultsLayout); }
From source file:probe.com.view.body.QuantCompareDataLayout.java
private VerticalLayout initProteinsDataCapture(int width) { VerticalLayout proteinsDataCapturingMainLayout = new VerticalLayout(); proteinsDataCapturingMainLayout.setSpacing(true); proteinsDataCapturingMainLayout.setMargin(true); String containerWidth = ((width * 2) + 10) + "px"; proteinsDataCapturingMainLayout.setWidth(containerWidth); proteinsDataCapturingMainLayout.setSpacing(true); Label titleLabel = new Label("2. Insert UniProt Proteins Accessions"); titleLabel.setContentMode(ContentMode.HTML); titleLabel.setStyleName("normalheader"); titleLabel.setHeight("20px"); proteinsDataCapturingMainLayout.addComponent(titleLabel); proteinsDataCapturingMainLayout.setComponentAlignment(titleLabel, Alignment.TOP_LEFT); GridLayout insertProteinsLayout = new GridLayout(3, 3); proteinsDataCapturingMainLayout.addComponent(insertProteinsLayout); insertProteinsLayout.setSpacing(true); insertProteinsLayout.setMargin(new MarginInfo(false, false, false, false)); insertProteinsLayout.setWidth(containerWidth); HorizontalLayout hlo1 = new HorizontalLayout(); hlo1.setWidth("100%"); hlo1.setMargin(new MarginInfo(false, true, false, false)); Label highLabel = new Label("<font color='#cc0000'> High</font>"); highLabel.setWidth("40px"); highLabel.setContentMode(ContentMode.HTML); hlo1.addComponent(highLabel);/* w w w. jav a2 s . c o m*/ HorizontalLayout hlo2 = new HorizontalLayout(); hlo2.setWidth("100%"); hlo2.setMargin(new MarginInfo(false, true, false, false)); Label stableLabel = new Label("<font color='#018df4'> Stable</font>"); stableLabel.setWidth("50px"); stableLabel.setContentMode(ContentMode.HTML); hlo2.addComponent(stableLabel); HorizontalLayout hlo3 = new HorizontalLayout(); hlo3.setWidth("100%"); hlo3.setMargin(new MarginInfo(false, true, false, false)); Label lowLabel = new Label("<font color='#009900'> Low</font>"); lowLabel.setWidth("40px"); lowLabel.setContentMode(ContentMode.HTML); hlo3.addComponent(lowLabel); insertProteinsLayout.addComponent(hlo1, 0, 0); insertProteinsLayout.setComponentAlignment(hlo1, Alignment.MIDDLE_CENTER); insertProteinsLayout.addComponent(hlo2, 1, 0); insertProteinsLayout.setComponentAlignment(hlo2, Alignment.MIDDLE_CENTER); insertProteinsLayout.addComponent(hlo3, 2, 0); insertProteinsLayout.setComponentAlignment(hlo3, Alignment.MIDDLE_CENTER); highTextArea.setWidth("100%"); highTextArea.setHeight("200px"); insertProteinsLayout.addComponent(highTextArea, 0, 1); insertProteinsLayout.setComponentAlignment(highTextArea, Alignment.MIDDLE_CENTER); stableTextArea.setWidth("100%"); stableTextArea.setHeight("200px"); insertProteinsLayout.addComponent(stableTextArea, 1, 1); insertProteinsLayout.setComponentAlignment(stableTextArea, Alignment.MIDDLE_CENTER); lowTextArea.setWidth("100%"); lowTextArea.setHeight("200px"); insertProteinsLayout.addComponent(lowTextArea, 2, 1); insertProteinsLayout.setComponentAlignment(lowTextArea, Alignment.MIDDLE_CENTER); VerticalLayout clear1 = new VerticalLayout(); hlo1.addComponent(clear1); clear1.setDescription("Clear field"); clear1.setStyleName("clearfieldbtn"); clear1.setWidth("20px"); clear1.setHeight("20px"); // insertProteinsLayout.addComponent(clear1, 0, 2); hlo1.setComponentAlignment(clear1, Alignment.MIDDLE_RIGHT); clear1.addLayoutClickListener(new LayoutEvents.LayoutClickListener() { @Override public void layoutClick(LayoutEvents.LayoutClickEvent event) { highTextArea.clear(); } }); VerticalLayout clear2 = new VerticalLayout(); hlo2.addComponent(clear2); clear2.setDescription("Clear field"); clear2.setStyleName("clearfieldbtn"); clear2.setWidth("20px"); clear2.setHeight("20px"); clear2.addLayoutClickListener(new LayoutEvents.LayoutClickListener() { @Override public void layoutClick(LayoutEvents.LayoutClickEvent event) { stableTextArea.clear(); } }); hlo2.setComponentAlignment(clear2, Alignment.MIDDLE_RIGHT); VerticalLayout clear3 = new VerticalLayout(); hlo3.addComponent(clear3); clear3.setDescription("Clear field"); clear3.setStyleName("clearfieldbtn"); clear3.setWidth("20px"); clear3.setHeight("20px"); clear3.addLayoutClickListener(new LayoutEvents.LayoutClickListener() { @Override public void layoutClick(LayoutEvents.LayoutClickEvent event) { lowTextArea.clear(); } }); hlo3.setComponentAlignment(clear3, Alignment.MIDDLE_RIGHT); Label errorLabel = new Label(); proteinsDataCapturingMainLayout.addComponent(errorLabel); HorizontalLayout btnsLayout = new HorizontalLayout(); btnsLayout.setSpacing(true); btnsLayout.setMargin(new MarginInfo(true, false, false, false)); proteinsDataCapturingMainLayout.addComponent(btnsLayout); proteinsDataCapturingMainLayout.setComponentAlignment(btnsLayout, Alignment.MIDDLE_RIGHT); Button sampleBtn = new Button("Sample"); sampleBtn.setStyleName(Reindeer.BUTTON_SMALL); btnsLayout.addComponent(sampleBtn); sampleBtn.addClickListener(new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { reset(); highTextArea.setValue(highAcc); lowTextArea.setValue(lowAcc); stableTextArea.setValue(stableAcc); diseaseGroupsListA.select("Group A"); diseaseGroupsListB.select("Group B"); compareBtn.focus(); } }); Button resetBtn = new Button("Reset"); resetBtn.setStyleName(Reindeer.BUTTON_SMALL); btnsLayout.addComponent(resetBtn); resetBtn.setId("resetBtn"); resetBtn.addClickListener(this); compareBtn = new Button("Compare"); compareBtn.setStyleName(Reindeer.BUTTON_SMALL); btnsLayout.addComponent(compareBtn); compareBtn.setId("compareBtn"); compareBtn.addClickListener(this); // highTextArea.setValue(highAcc); // lowTextArea.setValue(lowAcc); // stableTextArea.setValue(stableAcc); return proteinsDataCapturingMainLayout; }
From source file:probe.com.view.body.quantdatasetsoverview.diseasegroupsfilters.PopupRecombineDiseaseGroups.java
private void initPopupLayout() { int h = 0;//(default_DiseaseCat_DiseaseGroupMap.size() * 33) + 300; for (Map<String, String> m : default_DiseaseCat_DiseaseGroupMap.values()) { if (h < m.size()) { h = m.size();/* w w w .j a v a2s. c om*/ } } h = (h * 26) + 200; int w = 700; if (Page.getCurrent().getBrowserWindowHeight() - 280 < h) { h = Page.getCurrent().getBrowserWindowHeight() - 280; } if (Page.getCurrent().getBrowserWindowWidth() < w) { w = Page.getCurrent().getBrowserWindowWidth(); } popupWindow.setWidth(w + "px"); popupWindow.setHeight(h + "px"); popupBodyLayout.setWidth((w - 50) + "px"); Set<String> diseaseSet = Quant_Central_Manager.getDiseaseCategorySet(); diseaseTypeSelectionList.setDescription("Select disease category"); for (String disease : diseaseSet) { diseaseTypeSelectionList.addItem(disease); diseaseTypeSelectionList.setItemCaption(disease, (disease)); } HorizontalLayout diseaseCategorySelectLayout = new HorizontalLayout(); diseaseCategorySelectLayout.setWidthUndefined(); diseaseCategorySelectLayout.setHeight("50px"); diseaseCategorySelectLayout.setSpacing(true); diseaseCategorySelectLayout.setMargin(true); popupBodyLayout.addComponent(diseaseCategorySelectLayout); popupBodyLayout.setComponentAlignment(diseaseCategorySelectLayout, Alignment.TOP_LEFT); Label title = new Label("Disease Category"); title.setStyleName(Reindeer.LABEL_SMALL); diseaseCategorySelectLayout.addComponent(title); diseaseCategorySelectLayout.setComponentAlignment(title, Alignment.BOTTOM_CENTER); diseaseTypeSelectionList.setWidth("200px"); diseaseTypeSelectionList.setNullSelectionAllowed(false); diseaseTypeSelectionList.setValue("All"); diseaseTypeSelectionList.setImmediate(true); diseaseCategorySelectLayout.addComponent(diseaseTypeSelectionList); diseaseCategorySelectLayout.setComponentAlignment(diseaseTypeSelectionList, Alignment.TOP_LEFT); diseaseTypeSelectionList.setStyleName("diseaseselectionlist"); diseaseTypeSelectionList.addValueChangeListener(new Property.ValueChangeListener() { @Override public void valueChange(Property.ValueChangeEvent event) { boolean showAll = false; String value = event.getProperty().getValue().toString(); if (value.equalsIgnoreCase("All")) { showAll = true; } for (String dName : diseaseGroupsGridLayoutMap.keySet()) { if (dName.equalsIgnoreCase(value) || showAll) { diseaseGroupsGridLayoutMap.get(dName).setVisible(true); } else { diseaseGroupsGridLayoutMap.get(dName).setVisible(false); } } } }); VerticalLayout diseaseGroupsNamesContainer = new VerticalLayout(); diseaseGroupsNamesContainer.setWidth("100%"); diseaseGroupsNamesContainer.setHeightUndefined(); popupBodyLayout.addComponent(diseaseGroupsNamesContainer); diseaseGroupsNamesContainer.setStyleName(Reindeer.LAYOUT_WHITE); GridLayout diseaseNamesHeader = new GridLayout(2, 1); diseaseNamesHeader.setWidth("100%"); diseaseNamesHeader.setHeightUndefined(); diseaseNamesHeader.setSpacing(true); diseaseNamesHeader.setMargin(new MarginInfo(true, false, true, false)); diseaseGroupsNamesContainer.addComponent(diseaseNamesHeader); Label col1Label = new Label("Group Name"); diseaseNamesHeader.addComponent(col1Label, 0, 0); col1Label.setStyleName(Reindeer.LABEL_SMALL); Label col2Label = new Label("Suggested Name"); diseaseNamesHeader.addComponent(col2Label, 1, 0); col2Label.setStyleName(Reindeer.LABEL_SMALL); Panel diseaseGroupsNamesFrame = new Panel(); diseaseGroupsNamesFrame.setWidth("100%"); diseaseGroupsNamesFrame.setHeight((h - 200) + "px"); diseaseGroupsNamesContainer.addComponent(diseaseGroupsNamesFrame); diseaseGroupsNamesFrame.setStyleName(Reindeer.PANEL_LIGHT); VerticalLayout diseaseNamesUpdateContainerLayout = new VerticalLayout(); for (String diseaseCategory : diseaseSet) { if (diseaseCategory.equalsIgnoreCase("All")) { continue; } HorizontalLayout diseaseNamesUpdateContainer = initDiseaseNamesUpdateContainer(diseaseCategory); diseaseNamesUpdateContainerLayout.addComponent(diseaseNamesUpdateContainer); diseaseGroupsGridLayoutMap.put(diseaseCategory, diseaseNamesUpdateContainer); } diseaseGroupsNamesFrame.setContent(diseaseNamesUpdateContainerLayout); HorizontalLayout btnLayout = new HorizontalLayout(); btnLayout.setMargin(true); btnLayout.setSpacing(true); Button resetFiltersBtn = new Button("Reset"); resetFiltersBtn.setPrimaryStyleName("resetbtn"); btnLayout.addComponent(resetFiltersBtn); resetFiltersBtn.setWidth("50px"); resetFiltersBtn.setHeight("24px"); resetFiltersBtn.setDescription("Reset group names to default"); resetFiltersBtn.addClickListener(new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { resetToDefault(); } }); Button resetToOriginalBtn = new Button("Publications Names"); resetToOriginalBtn.setPrimaryStyleName("resetbtn"); btnLayout.addComponent(resetToOriginalBtn); resetToOriginalBtn.setWidth("150px"); resetToOriginalBtn.setHeight("24px"); resetToOriginalBtn.setDescription("Reset group names to original publication names"); resetToOriginalBtn.addClickListener(new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { resetToPublicationsNames(); } }); Button applyFilters = new Button("Update"); applyFilters.setDescription("Update disease groups with the selected names"); applyFilters.setPrimaryStyleName("resetbtn"); applyFilters.setWidth("50px"); applyFilters.setHeight("24px"); btnLayout.addComponent(applyFilters); applyFilters.addClickListener(new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { updateGroups(); } }); popupBodyLayout.addComponent(btnLayout); popupBodyLayout.setComponentAlignment(btnLayout, Alignment.MIDDLE_RIGHT); resetToDefault(); }
From source file:probe.com.view.body.quantdatasetsoverview.diseasegroupsfilters.PopupRecombineDiseaseGroups.java
private HorizontalLayout initDiseaseNamesUpdateContainer(String diseaseCategory) { GridLayout diseaseNamesUpdateContainer = new GridLayout(2, (default_DiseaseCat_DiseaseGroupMap.get(diseaseCategory).size() * 2)); diseaseNamesUpdateContainer.setWidth("100%"); diseaseNamesUpdateContainer.setHeightUndefined(); diseaseNamesUpdateContainer.setSpacing(false); diseaseNamesUpdateContainer.setMargin(new MarginInfo(false, false, false, false)); int widthCalc = 0; int row = 0;// www .j ava 2 s .c o m int col = 0; Map<String, ComboBox> diseaseGroupNameToListMap = new LinkedHashMap<String, ComboBox>(); for (String diseaseGroupName : default_DiseaseCat_DiseaseGroupMap.get(diseaseCategory).keySet()) { // if(!diseaseGroupName.contains(diseaseCategory)) // continue; diseaseNamesUpdateContainer.addComponent(generateLabel(diseaseGroupName, diseaseCategory), col, row); ComboBox list = generateLabelList(diseaseCategory); diseaseNamesUpdateContainer.addComponent(list, col + 1, row); diseaseGroupNameToListMap.put(diseaseGroupName, list); col = 0; row++; VerticalLayout spacer1 = new VerticalLayout(); spacer1.setHeight("2px"); spacer1.setWidth("300px"); spacer1.setStyleName(Reindeer.LAYOUT_WHITE); diseaseNamesUpdateContainer.addComponent(spacer1, col, row); VerticalLayout spacer2 = new VerticalLayout(); spacer2.setHeight("2px"); spacer2.setWidth("300px"); spacer2.setStyleName(Reindeer.LAYOUT_WHITE);//"lightgraylayout"); diseaseNamesUpdateContainer.addComponent(spacer2, col + 1, row); col = 0; row++; widthCalc += 26; } diseaseGroupsSelectionListMap.put(diseaseCategory, diseaseGroupNameToListMap); // widthCalc-=26; VerticalLayout diseaseLabelContainer = new VerticalLayout(); Label label = new Label("<center><font color='#ffffff'>" + diseaseCategory + "</font></center>"); label.setContentMode(ContentMode.HTML); diseaseLabelContainer.setHeight(widthCalc + "px"); diseaseLabelContainer.setWidth("20px"); VerticalLayout rotateContainer = new VerticalLayout(); rotateContainer.setWidth(widthCalc + "px"); rotateContainer.setHeight("20px"); diseaseLabelContainer.addComponent(rotateContainer); rotateContainer.setStyleName( "row_" + diseaseStyleMap.get(diseaseCategory.replace(" ", "_").replace("'", "-") + ("_Disease"))); rotateContainer.addComponent(label); HorizontalLayout layout = new HorizontalLayout(); layout.setSpacing(true); layout.addComponent(diseaseLabelContainer); layout.addComponent(diseaseNamesUpdateContainer); return layout; }
From source file:probe.com.view.body.quantdatasetsoverview.quantproteinstabsheet.peptidescontainer.popupcomponents.ProteinsInformationOverviewLayout.java
private GridLayout initProteinsForm(int width) { GridLayout proteinsFormLayout = new GridLayout(4, 5); proteinsFormLayout.setMargin(new MarginInfo(false, true, false, false)); proteinsFormLayout.setWidth(width + "px"); proteinsFormLayout.setHeightUndefined(); accsession = new InformationField("Accession"); proteinsFormLayout.addComponent(accsession, 0, 0); name = new InformationField("Protein Name"); proteinsFormLayout.addComponent(name, 1, 0); quantPeptidesNumber = new InformationField("#Quant Peptides"); proteinsFormLayout.addComponent(quantPeptidesNumber, 2, 0); idPeptidesNumber = new InformationField("#Identified Peptides"); proteinsFormLayout.addComponent(idPeptidesNumber, 3, 0); foldChange = new InformationField("Fold Change"); proteinsFormLayout.addComponent(foldChange, 0, 1); pValue = new InformationField("p-value"); proteinsFormLayout.addComponent(pValue, 1, 1); pvalueSignificanceThreshold = new InformationField("p-value Threshold"); proteinsFormLayout.addComponent(pvalueSignificanceThreshold, 2, 1); pValueComm = new InformationField("Statistical Comments"); proteinsFormLayout.addComponent(pValueComm, 3, 1); roc = new InformationField("ROC AUC"); proteinsFormLayout.addComponent(roc, 0, 2); quantBasisComment = new InformationField("Quantification Basis Comment"); proteinsFormLayout.addComponent(quantBasisComment, 1, 2); additionalComments = new InformationField("Additional Comments"); proteinsFormLayout.addComponent(additionalComments, 2, 2); return proteinsFormLayout; }