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
eb371160
Commit
eb371160
authored
14 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
LMS-2153 do not allow to export all columns in embedded mode
SVN: 20522
parent
ff642879
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
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/grid/BrowserGridPagingToolBar.java
+23
-2
23 additions, 2 deletions
.../client/application/ui/grid/BrowserGridPagingToolBar.java
with
23 additions
and
2 deletions
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/grid/BrowserGridPagingToolBar.java
+
23
−
2
View file @
eb371160
...
...
@@ -43,6 +43,7 @@ import ch.systemsx.cisd.openbis.generic.client.web.client.application.GenericCon
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.util.GWTUtils
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.util.IMessageProvider
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.ViewMode
;
/**
* {@link PagingToolBar} extension with overwritten behavior of the <i>Refresh</i> button and
...
...
@@ -307,10 +308,30 @@ public final class BrowserGridPagingToolBar extends PagingToolBar
}
/** creates a new export button, the caller has to add it to a parent container */
public
static
Button
createExportButton
(
I
MessageProvider
messageProvider
,
public
static
Button
createExportButton
(
I
ViewContext
<?>
viewContext
,
final
IBrowserGridActionInvoker
invoker
)
{
final
Button
button
=
new
ExportButtonMenu
(
messageProvider
,
invoker
);
if
(
viewContext
.
getModel
().
getViewMode
()
==
ViewMode
.
EMBEDDED
)
{
return
createVisibleColumnsExportButton
(
viewContext
,
invoker
);
}
else
{
return
new
ExportButtonMenu
(
viewContext
,
invoker
);
}
}
private
static
Button
createVisibleColumnsExportButton
(
IMessageProvider
messageProvider
,
final
IBrowserGridActionInvoker
invoker
)
{
Button
button
=
new
Button
(
messageProvider
.
getMessage
(
Dict
.
BUTTON_EXPORT_TABLE
));
button
.
addSelectionListener
(
new
SelectionListener
<
ButtonEvent
>()
{
@Override
public
void
componentSelected
(
ButtonEvent
ce
)
{
invoker
.
export
(
false
);
}
});
return
button
;
}
...
...
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