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
555c0f08
Commit
555c0f08
authored
14 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
HCS minor: well in gene details view should not be a link (well view tells nothing)
SVN: 15761
parent
7e2cf530
Loading
Loading
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/GeneMaterialViewer.java
+10
-3
10 additions, 3 deletions
.../client/application/detailviewers/GeneMaterialViewer.java
with
10 additions
and
3 deletions
screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/GeneMaterialViewer.java
+
10
−
3
View file @
555c0f08
...
...
@@ -21,6 +21,7 @@ import static ch.systemsx.cisd.openbis.plugin.screening.client.web.client.applic
import
java.util.List
;
import
com.extjs.gxt.ui.client.Style.Scroll
;
import
com.extjs.gxt.ui.client.widget.Label
;
import
com.extjs.gxt.ui.client.widget.LayoutContainer
;
import
com.extjs.gxt.ui.client.widget.Text
;
import
com.extjs.gxt.ui.client.widget.layout.BorderLayout
;
...
...
@@ -221,7 +222,7 @@ public class GeneMaterialViewer extends AbstractViewer<Material>
Widget
plateLink
=
createEntityLink
(
wellContent
.
getPlate
());
container
.
add
(
withLabel
(
plateLink
,
"Plate: "
,
margin
));
Widget
wellLink
=
create
EntityLink
(
wellContent
.
getWell
());
Widget
wellLink
=
create
Label
(
wellContent
.
getWell
());
container
.
add
(
withLabel
(
wellLink
,
"Well: "
,
margin
));
Widget
contentLink
=
createEntityLink
(
wellContent
.
getMaterialContent
());
...
...
@@ -230,7 +231,7 @@ public class GeneMaterialViewer extends AbstractViewer<Material>
DatasetImagesReference
images
=
wellContent
.
tryGetImages
();
if
(
images
!=
null
)
{
Widget
datasetLink
=
createEntityLink
(
images
.
getDatasetReference
(),
"
browse
"
);
Widget
datasetLink
=
createEntityLink
(
images
.
getDatasetReference
(),
"
show all images
"
);
container
.
add
(
withLabel
(
datasetLink
,
"Dataset: "
,
margin
));
container
.
add
(
createImageViewer
(
images
,
wellContent
.
tryGetLocation
(),
channel
));
...
...
@@ -238,7 +239,8 @@ public class GeneMaterialViewer extends AbstractViewer<Material>
return
container
;
}
private
Widget
createImageViewer
(
DatasetImagesReference
images
,
WellLocation
locationOrNull
,
int
channel
)
private
Widget
createImageViewer
(
DatasetImagesReference
images
,
WellLocation
locationOrNull
,
int
channel
)
{
if
(
locationOrNull
==
null
)
{
...
...
@@ -253,6 +255,11 @@ public class GeneMaterialViewer extends AbstractViewer<Material>
IMAGE_HEIGHT_PX
);
}
private
Widget
createLabel
(
IEntityInformationHolder
entityInformationHolder
)
{
return
new
Label
(
entityInformationHolder
.
getCode
());
}
private
Widget
createEntityLink
(
IEntityInformationHolder
entityInformationHolder
)
{
return
createEntityLink
(
entityInformationHolder
,
entityInformationHolder
.
getCode
());
...
...
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