Set WorkspaceDestination as default
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-export-widget@86494 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ce78be6541
commit
eb144debd4
|
@ -38,21 +38,12 @@ public class DestinationSelectionCard extends WizardCard {
|
|||
thisCard=this;
|
||||
this.exportSession = exportSession;
|
||||
// Default
|
||||
exportSession.setDestination(fileDestination);
|
||||
exportSession.setDestination(workspaceDestination);
|
||||
|
||||
VerticalPanel destinationSelectionPanel = new VerticalPanel();
|
||||
destinationSelectionPanel.setStylePrimaryName(res.wizardCSS()
|
||||
.getImportSelectionSources());
|
||||
|
||||
Radio radioFileDestination = new Radio();
|
||||
radioFileDestination.setBoxLabel("<p style='display:inline-table;'><b>"
|
||||
+ fileDestination.getName() + "</b><br>"
|
||||
+ fileDestination.getDescription() + "</p>");
|
||||
radioFileDestination.setName(fileDestination.getName());
|
||||
radioFileDestination.setStylePrimaryName(res.wizardCSS()
|
||||
.getImportSelectionSource());
|
||||
radioFileDestination.setValue(true);
|
||||
|
||||
Radio radioWorkspaceDestination = new Radio();
|
||||
radioWorkspaceDestination.setBoxLabel("<p style='display:inline-table;'><b>"
|
||||
+ workspaceDestination.getName() + "</b><br>"
|
||||
|
@ -60,10 +51,21 @@ public class DestinationSelectionCard extends WizardCard {
|
|||
radioWorkspaceDestination.setName(workspaceDestination.getName());
|
||||
radioWorkspaceDestination.setStylePrimaryName(res.wizardCSS()
|
||||
.getImportSelectionSource());
|
||||
// radioWorkspaceSource.disable();
|
||||
|
||||
destinationSelectionPanel.add(radioFileDestination);
|
||||
radioWorkspaceDestination.setValue(true);
|
||||
|
||||
|
||||
Radio radioFileDestination = new Radio();
|
||||
radioFileDestination.setBoxLabel("<p style='display:inline-table;'><b>"
|
||||
+ fileDestination.getName() + "</b><br>"
|
||||
+ fileDestination.getDescription() + "</p>");
|
||||
radioFileDestination.setName(fileDestination.getName());
|
||||
radioFileDestination.setStylePrimaryName(res.wizardCSS()
|
||||
.getImportSelectionSource());
|
||||
radioFileDestination.disable();
|
||||
|
||||
destinationSelectionPanel.add(radioWorkspaceDestination);
|
||||
destinationSelectionPanel.add(radioFileDestination);
|
||||
|
||||
|
||||
// we can set name on radios or use toggle group
|
||||
ToggleGroup toggle = new ToggleGroup();
|
||||
|
|
Loading…
Reference in New Issue