Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
a646d5f5
Commit
a646d5f5
authored
13 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
LMS-2189 minor refactoring
SVN: 21443
parent
50bc882c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/ExperimentAnalysisSummaryViewer.java
+17
-7
17 additions, 7 deletions
...cation/detailviewers/ExperimentAnalysisSummaryViewer.java
with
17 additions
and
7 deletions
screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/ExperimentAnalysisSummaryViewer.java
+
17
−
7
View file @
a646d5f5
...
@@ -37,6 +37,7 @@ import ch.systemsx.cisd.openbis.generic.client.web.client.application.framework.
...
@@ -37,6 +37,7 @@ import ch.systemsx.cisd.openbis.generic.client.web.client.application.framework.
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.help.HelpPageIdentifier
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.help.HelpPageIdentifier
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.grid.IDisposableComponent
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.grid.IDisposableComponent
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.IEntityInformationHolderWithPermId
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.IEntityInformationHolderWithPermId
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.IEntityInformationHolderWithProperties
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.TechId
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.TechId
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.DatabaseModificationKind
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.DatabaseModificationKind
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityKind
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityKind
;
...
@@ -138,14 +139,24 @@ public class ExperimentAnalysisSummaryViewer
...
@@ -138,14 +139,24 @@ public class ExperimentAnalysisSummaryViewer
private
static
IDisposableComponent
createViewer
(
private
static
IDisposableComponent
createViewer
(
IViewContext
<
IScreeningClientServiceAsync
>
viewContext
,
Experiment
experiment
)
IViewContext
<
IScreeningClientServiceAsync
>
viewContext
,
Experiment
experiment
)
{
{
String
headingText
=
"Assay "
+
experiment
.
getCode
();
final
IDisposableComponent
gridComponent
=
ExperimentAnalysisSummaryGrid
.
create
(
viewContext
,
experiment
);
return
createViewer
(
viewContext
,
experiment
,
headingText
,
gridComponent
);
}
/** Creates a grid with some header on top containing the specified title and entity properties. */
private
static
IDisposableComponent
createViewer
(
IViewContext
<
IScreeningClientServiceAsync
>
viewContext
,
IEntityInformationHolderWithProperties
entity
,
String
headingText
,
final
IDisposableComponent
gridComponent
)
{
final
LayoutContainer
panel
=
new
LayoutContainer
();
final
LayoutContainer
panel
=
new
LayoutContainer
();
panel
.
setLayout
(
new
BorderLayout
());
panel
.
setLayout
(
new
BorderLayout
());
addHeader
(
panel
,
viewContext
,
experiment
);
addHeader
(
panel
,
viewContext
,
headingText
,
entity
);
final
IDisposableComponent
gridComponent
=
ExperimentAnalysisSummaryGrid
.
create
(
viewContext
,
experiment
);
panel
.
add
(
gridComponent
.
getComponent
(),
new
BorderLayoutData
(
LayoutRegion
.
CENTER
));
panel
.
add
(
gridComponent
.
getComponent
(),
new
BorderLayoutData
(
LayoutRegion
.
CENTER
));
return
new
IDisposableComponent
()
return
new
IDisposableComponent
()
...
@@ -173,10 +184,9 @@ public class ExperimentAnalysisSummaryViewer
...
@@ -173,10 +184,9 @@ public class ExperimentAnalysisSummaryViewer
}
}
private
static
void
addHeader
(
LayoutContainer
parentPanel
,
private
static
void
addHeader
(
LayoutContainer
parentPanel
,
IViewContext
<
IScreeningClientServiceAsync
>
viewContext
,
Experiment
experiment
)
IViewContext
<
IScreeningClientServiceAsync
>
viewContext
,
String
headingText
,
IEntityInformationHolderWithProperties
entity
)
{
{
String
headingText
=
"Assay "
+
experiment
.
getCode
();
LayoutContainer
panel
=
new
LayoutContainer
();
LayoutContainer
panel
=
new
LayoutContainer
();
panel
.
setLayout
(
new
RowLayout
());
panel
.
setLayout
(
new
RowLayout
());
panel
.
setScrollMode
(
Scroll
.
AUTOY
);
panel
.
setScrollMode
(
Scroll
.
AUTOY
);
...
@@ -186,7 +196,7 @@ public class ExperimentAnalysisSummaryViewer
...
@@ -186,7 +196,7 @@ public class ExperimentAnalysisSummaryViewer
LayoutContainer
propertiesPanel
=
new
LayoutContainer
();
LayoutContainer
propertiesPanel
=
new
LayoutContainer
();
propertiesPanel
.
setLayout
(
new
RowLayout
());
propertiesPanel
.
setLayout
(
new
RowLayout
());
int
propsHeight
=
PropertiesUtil
.
addProperties
(
e
xperiment
,
propertiesPanel
,
null
);
int
propsHeight
=
PropertiesUtil
.
addProperties
(
e
ntity
,
propertiesPanel
,
null
);
panel
.
add
(
propertiesPanel
,
new
RowData
(
1
,
propsHeight
));
panel
.
add
(
propertiesPanel
,
new
RowData
(
1
,
propsHeight
));
int
headersHeight
=
25
;
int
headersHeight
=
25
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment