diff --git a/src/main/java/org/gcube/portlets/widgets/mpformbuilder/client/ui/upload/DialogUpload.java b/src/main/java/org/gcube/portlets/widgets/mpformbuilder/client/ui/upload/DialogUpload.java index 858f337..7debe48 100644 --- a/src/main/java/org/gcube/portlets/widgets/mpformbuilder/client/ui/upload/DialogUpload.java +++ b/src/main/java/org/gcube/portlets/widgets/mpformbuilder/client/ui/upload/DialogUpload.java @@ -48,13 +48,9 @@ public class DialogUpload extends FormPanel implements HasWorskpaceUploadNotific * Sep 11, 2015 */ private HTML LOADING = new HTML("Upload starting..."); - - protected String parentIdentifier = ""; protected VerticalPanel panel; - private HorizontalPanel hpBottom; // private MonitorPanel monitorPanel; protected String clientUploadKey; - private Anchor anchorMyUploads; /** * Instantiates a new dialog upload stream. @@ -67,7 +63,6 @@ public class DialogUpload extends FormPanel implements HasWorskpaceUploadNotific //setWidth("400px"); fileUpload = new FileUpload(); //fileUpload.getElement().setAttribute("multiple", "multiple"); - this.addStyleName("fileInputUploader"); setAction(ConstantsMPFormBuilder.WORKSPACE_UPLOADER_SERVLET_STREAM__MODIFIED); setEncoding(FormPanel.ENCODING_MULTIPART); setMethod(FormPanel.METHOD_POST); @@ -92,27 +87,7 @@ public class DialogUpload extends FormPanel implements HasWorskpaceUploadNotific hp.getElement().getStyle().setMarginTop(5, Unit.PX); hp.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); hp.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT); - panel.add(hp); - -// hpBottom = new HorizontalPanel(); -// hpBottom.setWidth("100%"); -//// hpBottom.getElement().getStyle().setMarginTop(5, Unit.PX); -// hpBottom.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); -// -// //if(uploadType.equals(UPLOAD_TYPE.File)){ -//// HTML msg = new HTML("
To select multiple files, press and hold down the Ctrl key, and then
click each item that you want to select
"); -//// msg.getElement().getStyle().setFontSize(10, Unit.PX); -//// hpBottom.add(msg); -// //} -// -// HorizontalPanel hp2 = new HorizontalPanel(); -// hp2.getElement().getStyle().setMarginTop(5, Unit.PX); -//// hp2.getElement().getStyle().setWidth(100, Unit.PCT); -// hp2.addStyleName("align-right-close"); -// -// hpBottom.add(hp2); -// panel.add(hpBottom); } /** diff --git a/src/main/java/org/gcube/portlets/widgets/mpformbuilder/client/ui/upload/FileUpload.java b/src/main/java/org/gcube/portlets/widgets/mpformbuilder/client/ui/upload/FileUpload.java index c53a849..a4ef1f0 100644 --- a/src/main/java/org/gcube/portlets/widgets/mpformbuilder/client/ui/upload/FileUpload.java +++ b/src/main/java/org/gcube/portlets/widgets/mpformbuilder/client/ui/upload/FileUpload.java @@ -18,7 +18,7 @@ public class FileUpload extends Composite { public FileUpload() { initWidget(uiBinder.createAndBindUi(this)); - fileUploadPanel.add(new DialogUpload()); + fileUploadPanel.add(new MultipleDilaogUpload()); } } diff --git a/src/main/java/org/gcube/portlets/widgets/mpformbuilder/client/ui/upload/FileUpload.ui.xml b/src/main/java/org/gcube/portlets/widgets/mpformbuilder/client/ui/upload/FileUpload.ui.xml index a684d27..129e405 100644 --- a/src/main/java/org/gcube/portlets/widgets/mpformbuilder/client/ui/upload/FileUpload.ui.xml +++ b/src/main/java/org/gcube/portlets/widgets/mpformbuilder/client/ui/upload/FileUpload.ui.xml @@ -1,11 +1,18 @@