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
04d1eb42
Commit
04d1eb42
authored
16 years ago
by
ribeaudc
Browse files
Options
Downloads
Patches
Plain Diff
[LMS-658] add: - Create a dummy starting menu in 'ColumnChooser'.
SVN: 9083
parent
134c484e
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
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/sample_browser/ColumnChooser.java
+13
-3
13 additions, 3 deletions
...b/client/application/ui/sample_browser/ColumnChooser.java
with
13 additions
and
3 deletions
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/sample_browser/ColumnChooser.java
+
13
−
3
View file @
04d1eb42
...
@@ -64,7 +64,17 @@ final class ColumnChooser extends TextToolItem
...
@@ -64,7 +64,17 @@ final class ColumnChooser extends TextToolItem
this
.
parentColumns
=
parentColumns
;
this
.
parentColumns
=
parentColumns
;
this
.
propertyColumns
=
propertyColumns
;
this
.
propertyColumns
=
propertyColumns
;
setEnabled
(
false
);
setEnabled
(
false
);
reload
();
// Setting a menu, even dummy, at construction seems to be important for correct GUI
// rendering, especially for Safari.
setMenu
(
createDummyMenu
());
}
private
final
static
Menu
createDummyMenu
()
{
final
Menu
menu
=
new
Menu
();
// Putting nothing or just an empty string does not satisfy Safari.
menu
.
add
(
new
MenuItem
(
"<dummy>"
));
return
menu
;
}
}
final
void
reload
()
final
void
reload
()
...
@@ -84,9 +94,9 @@ final class ColumnChooser extends TextToolItem
...
@@ -84,9 +94,9 @@ final class ColumnChooser extends TextToolItem
private
final
List
<
Item
>
createCommonMenu
()
private
final
List
<
Item
>
createCommonMenu
()
{
{
final
ArrayList
<
Item
>
result
=
new
ArrayList
<
Item
>();
final
ArrayList
<
Item
>
result
=
new
ArrayList
<
Item
>();
for
(
final
ColumnConfig
c
c
:
commonColumns
.
getColumns
())
for
(
final
ColumnConfig
c
olumnConfig
:
commonColumns
.
getColumns
())
{
{
result
.
add
(
createFromConfig
(
c
c
));
result
.
add
(
createFromConfig
(
c
olumnConfig
));
}
}
return
result
;
return
result
;
}
}
...
...
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