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;
|
thisCard=this;
|
||||||
this.exportSession = exportSession;
|
this.exportSession = exportSession;
|
||||||
// Default
|
// Default
|
||||||
exportSession.setDestination(fileDestination);
|
exportSession.setDestination(workspaceDestination);
|
||||||
|
|
||||||
VerticalPanel destinationSelectionPanel = new VerticalPanel();
|
VerticalPanel destinationSelectionPanel = new VerticalPanel();
|
||||||
destinationSelectionPanel.setStylePrimaryName(res.wizardCSS()
|
destinationSelectionPanel.setStylePrimaryName(res.wizardCSS()
|
||||||
.getImportSelectionSources());
|
.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();
|
Radio radioWorkspaceDestination = new Radio();
|
||||||
radioWorkspaceDestination.setBoxLabel("<p style='display:inline-table;'><b>"
|
radioWorkspaceDestination.setBoxLabel("<p style='display:inline-table;'><b>"
|
||||||
+ workspaceDestination.getName() + "</b><br>"
|
+ workspaceDestination.getName() + "</b><br>"
|
||||||
|
@ -60,10 +51,21 @@ public class DestinationSelectionCard extends WizardCard {
|
||||||
radioWorkspaceDestination.setName(workspaceDestination.getName());
|
radioWorkspaceDestination.setName(workspaceDestination.getName());
|
||||||
radioWorkspaceDestination.setStylePrimaryName(res.wizardCSS()
|
radioWorkspaceDestination.setStylePrimaryName(res.wizardCSS()
|
||||||
.getImportSelectionSource());
|
.getImportSelectionSource());
|
||||||
// radioWorkspaceSource.disable();
|
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(radioFileDestination);
|
|
||||||
destinationSelectionPanel.add(radioWorkspaceDestination);
|
destinationSelectionPanel.add(radioWorkspaceDestination);
|
||||||
|
destinationSelectionPanel.add(radioFileDestination);
|
||||||
|
|
||||||
|
|
||||||
// we can set name on radios or use toggle group
|
// we can set name on radios or use toggle group
|
||||||
ToggleGroup toggle = new ToggleGroup();
|
ToggleGroup toggle = new ToggleGroup();
|
||||||
|
|
Loading…
Reference in New Issue