From 4beb80780b8313c247630433efb3ca04d5870ca0 Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Tue, 1 Jun 2010 06:05:42 +0000 Subject: [PATCH] SE-251 add section title SVN: 16233 --- .../client/web/client/application/Dict.java | 3 +++ .../client/web/client/application/ProteinViewer.java | 11 ++++++----- .../client/web/public/phosphonetx-dictionary.js | 1 + 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/client/application/Dict.java b/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/client/application/Dict.java index c83f36f775a..9902c36e13b 100644 --- a/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/client/application/Dict.java +++ b/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/client/application/Dict.java @@ -51,6 +51,8 @@ public class Dict // Protein Viewer public static final String PROTEINS_SECTION = "proteins_section"; + public static final String PRIMARY_PROTEIN = "primary_protein"; + public static final String PROTEIN_IN_EXPERIMENT_TAB_LABEL = "protein_in_experiment_tab_label"; public static final String EXPERIMENT_LABEL = "experiment_label"; @@ -97,4 +99,5 @@ public class Dict public static final String COPY_DATA_SETS_DATA_SET_TYPE_FIELD = "copy_data_sets_data_set_type_field"; + } diff --git a/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/client/application/ProteinViewer.java b/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/client/application/ProteinViewer.java index 79b8b1c3949..c9468c21e1a 100644 --- a/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/client/application/ProteinViewer.java +++ b/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/client/application/ProteinViewer.java @@ -169,12 +169,12 @@ public class ProteinViewer extends AbstractViewer<IEntityInformationHolder> impl recreateUIWithDatasetTable(protein, propertyPanel); } else { - List<IndistinguishableProteinInfo> indistinguishableProteins = - details.getIndistinguishableProteinInfos(); - LayoutContainer southPanel = new LayoutContainer(); - RowLayoutManager rowDataManager = new RowLayoutManager(southPanel, new RowLayout()); - add(southPanel, createBorderLayoutData(LayoutRegion.CENTER)); + LayoutContainer centerPanel = new LayoutContainer(); + RowLayoutManager rowDataManager = new RowLayoutManager(centerPanel, new RowLayout()); + add(centerPanel, createBorderLayoutData(LayoutRegion.CENTER)); rowDataManager.addToContainer(propertyPanel, new RowData(1, 0.5f)); + List<IndistinguishableProteinInfo> indistinguishableProteins = + details.getIndistinguishableProteinInfos(); if (indistinguishableProteins.isEmpty() == false) { List<Peptide> peptides = details.getPeptides(); @@ -259,6 +259,7 @@ public class ProteinViewer extends AbstractViewer<IEntityInformationHolder> impl { PropertyGrid propertyGrid = createPropertyGrid(protein); ContentPanel contentPanel = new ContentPanel(); + contentPanel.setHeading(viewContext.getMessage(Dict.PRIMARY_PROTEIN)); contentPanel.setScrollMode(Scroll.AUTO); contentPanel.setCollapsible(true); contentPanel.add(propertyGrid); diff --git a/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/public/phosphonetx-dictionary.js b/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/public/phosphonetx-dictionary.js index 53eceb32476..0c634318f3b 100644 --- a/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/public/phosphonetx-dictionary.js +++ b/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/public/phosphonetx-dictionary.js @@ -22,6 +22,7 @@ var phosphonetx = { protein_browser: "Proteins", protein_summary: "Protein/Peptide Counts", database_name_and_version: "Database", + primary_protein: "Primary Protein and Peptides", indistinguishable_proteins: "Indistinguishable Proteins", sequence: "Amino Acid Sequence", sequences: "Amino Acid Sequences", -- GitLab