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
f5d2d990
Commit
f5d2d990
authored
14 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1817 set the tile image width
SVN: 18635
parent
5d680cf0
No related branches found
No related tags found
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/ImageUrlUtils.java
+4
-4
4 additions, 4 deletions
...t/web/client/application/detailviewers/ImageUrlUtils.java
with
4 additions
and
4 deletions
screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/ImageUrlUtils.java
+
4
−
4
View file @
f5d2d990
...
@@ -44,7 +44,7 @@ public class ImageUrlUtils
...
@@ -44,7 +44,7 @@ public class ImageUrlUtils
String
imageURL
=
String
imageURL
=
createDatastoreImageUrl
(
sessionId
,
images
,
channel
,
row
,
col
,
imageWidth
,
createDatastoreImageUrl
(
sessionId
,
images
,
channel
,
row
,
col
,
imageWidth
,
imageHeight
,
createImageLinks
);
imageHeight
,
createImageLinks
);
addUrlWidget
(
container
,
imageURL
,
imageHeight
);
addUrlWidget
(
container
,
imageURL
,
imageWidth
,
imageHeight
);
}
}
/**
/**
...
@@ -58,7 +58,7 @@ public class ImageUrlUtils
...
@@ -58,7 +58,7 @@ public class ImageUrlUtils
String
imageURL
=
String
imageURL
=
createDatastoreImageUrl
(
sessionId
,
images
,
channel
,
channelStackRef
,
imageWidth
,
createDatastoreImageUrl
(
sessionId
,
images
,
channel
,
channelStackRef
,
imageWidth
,
imageHeight
);
imageHeight
);
addUrlWidget
(
container
,
imageURL
,
imageHeight
);
addUrlWidget
(
container
,
imageURL
,
imageWidth
,
imageHeight
);
}
}
/** generates URL of an image on Data Store server */
/** generates URL of an image on Data Store server */
...
@@ -79,10 +79,10 @@ public class ImageUrlUtils
...
@@ -79,10 +79,10 @@ public class ImageUrlUtils
}
}
/** creates a widget which displays the specified URL and adds it to the container */
/** creates a widget which displays the specified URL and adds it to the container */
private
static
void
addUrlWidget
(
LayoutContainer
container
,
String
url
,
int
height
)
private
static
void
addUrlWidget
(
LayoutContainer
container
,
String
url
,
int
width
,
int
height
)
{
{
Component
tileContent
=
new
Html
(
url
);
Component
tileContent
=
new
Html
(
url
);
tileContent
.
set
Height
(
""
+
height
);
tileContent
.
set
Size
(
""
+
width
,
""
+
height
);
PlateStyleSetter
.
setPointerCursor
(
tileContent
);
PlateStyleSetter
.
setPointerCursor
(
tileContent
);
container
.
add
(
tileContent
);
container
.
add
(
tileContent
);
}
}
...
...
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