2021-09-27 18:32:19 +02:00
|
|
|
package org.gcube.portlets.user.geoportaldataentry.client.ui.edit;
|
|
|
|
|
2021-09-29 18:27:22 +02:00
|
|
|
import java.util.ArrayList;
|
2021-09-27 18:32:19 +02:00
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import org.gcube.application.geoportalcommon.shared.products.BaseConcessioneDV;
|
|
|
|
import org.gcube.application.geoportalcommon.shared.products.ConcessioneDV;
|
|
|
|
import org.gcube.application.geoportalcommon.shared.products.content.WorkspaceContentDV;
|
|
|
|
import org.gcube.application.geoportalcommon.shared.products.model.AbstractRelazioneScavoDV;
|
2021-09-28 17:31:16 +02:00
|
|
|
import org.gcube.application.geoportalcommon.shared.products.model.LayerConcessioneDV;
|
|
|
|
import org.gcube.application.geoportalcommon.shared.products.model.RelazioneScavoDV;
|
2021-09-27 18:32:19 +02:00
|
|
|
import org.gcube.application.geoportalcommon.shared.products.model.UploadedImageDV;
|
|
|
|
import org.gcube.portlets.user.geoportaldataentry.client.ConstantsGeoPortalDataEntryApp.RECORD_TYPE;
|
|
|
|
import org.gcube.portlets.user.geoportaldataentry.client.GeoPortalDataEntryApp;
|
2021-09-29 16:13:39 +02:00
|
|
|
import org.gcube.portlets.widgets.mpformbuilder.client.form.MetaDataField;
|
|
|
|
import org.gcube.portlets.widgets.mpformbuilder.client.ui.metadata.MetaDataFieldSkeleton;
|
2021-09-29 18:27:22 +02:00
|
|
|
import org.gcube.portlets.widgets.mpformbuilder.client.ui.upload.DialogUpload;
|
|
|
|
import org.gcube.portlets.widgets.mpformbuilder.shared.GenericDatasetBean;
|
2021-09-29 16:13:39 +02:00
|
|
|
import org.gcube.portlets.widgets.mpformbuilder.shared.metadata.DataTypeWrapper;
|
|
|
|
import org.gcube.portlets.widgets.mpformbuilder.shared.metadata.MetadataFieldWrapper;
|
2021-09-29 18:27:22 +02:00
|
|
|
import org.gcube.portlets.widgets.mpformbuilder.shared.upload.FileUploaded;
|
2021-09-27 18:32:19 +02:00
|
|
|
|
2021-09-28 17:31:16 +02:00
|
|
|
import com.github.gwtbootstrap.client.ui.Button;
|
2021-09-27 18:32:19 +02:00
|
|
|
import com.github.gwtbootstrap.client.ui.ControlGroup;
|
2021-09-28 17:31:16 +02:00
|
|
|
import com.github.gwtbootstrap.client.ui.Controls;
|
2021-09-27 18:32:19 +02:00
|
|
|
import com.github.gwtbootstrap.client.ui.Label;
|
|
|
|
import com.github.gwtbootstrap.client.ui.ListBox;
|
|
|
|
import com.github.gwtbootstrap.client.ui.constants.LabelType;
|
|
|
|
import com.google.gwt.core.client.GWT;
|
2021-09-29 16:13:39 +02:00
|
|
|
import com.google.gwt.dom.client.Style.Unit;
|
2021-09-27 18:32:19 +02:00
|
|
|
import com.google.gwt.event.dom.client.ChangeEvent;
|
|
|
|
import com.google.gwt.event.dom.client.ChangeHandler;
|
2021-09-28 17:31:16 +02:00
|
|
|
import com.google.gwt.event.dom.client.ClickEvent;
|
|
|
|
import com.google.gwt.event.dom.client.ClickHandler;
|
2021-09-29 16:13:39 +02:00
|
|
|
import com.google.gwt.event.shared.HandlerManager;
|
2021-09-27 18:32:19 +02:00
|
|
|
import com.google.gwt.uibinder.client.UiBinder;
|
|
|
|
import com.google.gwt.uibinder.client.UiField;
|
|
|
|
import com.google.gwt.user.client.Window;
|
|
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
|
|
import com.google.gwt.user.client.ui.Composite;
|
2021-09-29 16:13:39 +02:00
|
|
|
import com.google.gwt.user.client.ui.FlexTable;
|
2021-09-27 18:32:19 +02:00
|
|
|
import com.google.gwt.user.client.ui.HTML;
|
|
|
|
import com.google.gwt.user.client.ui.HTMLPanel;
|
|
|
|
import com.google.gwt.user.client.ui.Widget;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Class UpdateFileset.
|
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
|
|
*
|
|
|
|
* Sep 27, 2021
|
|
|
|
*/
|
|
|
|
public class UpdateFileset extends Composite {
|
|
|
|
|
2021-09-29 16:13:39 +02:00
|
|
|
private static final String _FORM_FIELDS_SIZE = "740px";
|
2021-09-29 11:08:15 +02:00
|
|
|
|
2021-09-27 18:32:19 +02:00
|
|
|
private static UpdateFilesetUiBinder uiBinder = GWT.create(UpdateFilesetUiBinder.class);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Interface UpdateFilesetUiBinder.
|
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
|
|
*
|
|
|
|
* Sep 27, 2021
|
|
|
|
*/
|
|
|
|
interface UpdateFilesetUiBinder extends UiBinder<Widget, UpdateFileset> {
|
|
|
|
}
|
|
|
|
|
|
|
|
@UiField
|
|
|
|
ListBox listBoxPaths;
|
|
|
|
|
|
|
|
@UiField
|
2021-09-28 17:31:16 +02:00
|
|
|
ControlGroup cgSelectFile;
|
2021-09-27 18:32:19 +02:00
|
|
|
|
|
|
|
@UiField
|
2021-09-28 17:31:16 +02:00
|
|
|
Controls controlsContent;
|
2021-09-27 18:32:19 +02:00
|
|
|
|
|
|
|
@UiField
|
|
|
|
HTMLPanel uploadFileContainer;
|
|
|
|
|
2021-09-28 17:31:16 +02:00
|
|
|
@UiField
|
|
|
|
Button buttonUpdate;
|
|
|
|
|
2021-09-27 18:32:19 +02:00
|
|
|
private List<String> listFileSetPaths;
|
|
|
|
|
2021-09-29 18:27:22 +02:00
|
|
|
private boolean placeholderListBoxPaths = true;
|
2021-09-27 18:32:19 +02:00
|
|
|
|
|
|
|
private BaseConcessioneDV selectedConcessione;
|
|
|
|
|
|
|
|
private ConcessioneDV fullConcessione;
|
|
|
|
|
|
|
|
private RECORD_TYPE recordType;
|
|
|
|
|
2021-09-29 18:27:22 +02:00
|
|
|
private boolean placeholderListBoxIndex = true;
|
2021-09-29 16:13:39 +02:00
|
|
|
|
|
|
|
private HandlerManager uiBus = new HandlerManager(null);
|
|
|
|
|
|
|
|
private MetaDataField fieldUploadWidget;
|
2021-09-29 18:27:22 +02:00
|
|
|
|
|
|
|
private Integer pathIndex = null;
|
2021-09-28 17:31:16 +02:00
|
|
|
|
2021-09-27 18:32:19 +02:00
|
|
|
/**
|
|
|
|
* Instantiates a new update fileset.
|
|
|
|
*
|
|
|
|
* @param listFileSetPaths the list file set paths
|
|
|
|
*/
|
|
|
|
public UpdateFileset(BaseConcessioneDV selectedConcessione, RECORD_TYPE recordType, List<String> listFileSetPaths) {
|
|
|
|
initWidget(uiBinder.createAndBindUi(this));
|
|
|
|
this.selectedConcessione = selectedConcessione;
|
|
|
|
this.recordType = recordType;
|
|
|
|
this.listFileSetPaths = listFileSetPaths;
|
|
|
|
listBoxPaths.addItem("Select a section...");
|
|
|
|
for (String path : listFileSetPaths) {
|
|
|
|
listBoxPaths.addItem(path);
|
|
|
|
}
|
2021-09-29 16:13:39 +02:00
|
|
|
listBoxPaths.setWidth(_FORM_FIELDS_SIZE);
|
2021-09-27 18:32:19 +02:00
|
|
|
|
|
|
|
// add handler on select
|
|
|
|
listBoxPaths.addChangeHandler(new ChangeHandler() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onChange(ChangeEvent event) {
|
|
|
|
GWT.log("Profile type selection changed...");
|
|
|
|
cgSelectFile.setVisible(false);
|
|
|
|
|
2021-09-29 18:27:22 +02:00
|
|
|
if (placeholderListBoxPaths) {
|
2021-09-29 16:13:39 +02:00
|
|
|
listBoxPaths.removeItem(0); // this is the placeholder, removing it once
|
2021-09-29 18:27:22 +02:00
|
|
|
placeholderListBoxPaths = false;
|
2021-09-27 18:32:19 +02:00
|
|
|
}
|
|
|
|
showUploadFileGUI();
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
GeoPortalDataEntryApp.geoportalDataEntryService.getRecord(selectedConcessione.getItemId(), recordType,
|
|
|
|
new AsyncCallback<ConcessioneDV>() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onSuccess(ConcessioneDV theRecord) {
|
|
|
|
fullConcessione = theRecord;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onFailure(Throwable caught) {
|
|
|
|
Window.alert(caught.getMessage());
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2021-09-28 17:31:16 +02:00
|
|
|
buttonUpdate.addClickHandler(new ClickHandler() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onClick(ClickEvent event) {
|
|
|
|
|
2021-09-29 18:27:22 +02:00
|
|
|
String errorMsg = checkValidUpload();
|
|
|
|
if (errorMsg == null) {
|
|
|
|
List<FileUploaded> listFilesUploaded = new ArrayList<FileUploaded>();
|
|
|
|
List<MetaDataFieldSkeleton> listMetaDataFieldSkeleton = fieldUploadWidget.getListOfMetadataFields();
|
|
|
|
for (MetaDataFieldSkeleton field : listMetaDataFieldSkeleton) {
|
|
|
|
DialogUpload dUpload = (DialogUpload) field.getHolder();
|
|
|
|
// adding it only if exists
|
|
|
|
if (dUpload.getFileUploadingState() != null)
|
|
|
|
listFilesUploaded.add(dUpload.getFileUploadingState().getFile());
|
|
|
|
}
|
|
|
|
|
|
|
|
GenericDatasetBean gdb = new GenericDatasetBean();
|
|
|
|
gdb.setFilesUploaded(listFilesUploaded);
|
|
|
|
// adding it only if exists
|
|
|
|
|
|
|
|
GWT.log("Section selected: " + listBoxPaths.getSelectedItemText());
|
|
|
|
GWT.log("Content index selected: " + pathIndex);
|
|
|
|
GWT.log("FileUploaded selected: " + gdb.getFilesUploaded());
|
|
|
|
|
2021-09-29 16:13:39 +02:00
|
|
|
} else {
|
2021-09-29 18:27:22 +02:00
|
|
|
Window.alert(errorMsg);
|
2021-09-28 17:31:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2021-09-27 18:32:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Show upload file GUI.
|
|
|
|
*/
|
|
|
|
private void showUploadFileGUI() {
|
|
|
|
uploadFileContainer.setVisible(true);
|
2021-09-28 17:31:16 +02:00
|
|
|
buttonUpdate.setVisible(false);
|
2021-09-27 18:32:19 +02:00
|
|
|
uploadFileContainer.clear();
|
2021-09-28 17:31:16 +02:00
|
|
|
controlsContent.clear();
|
2021-09-29 18:27:22 +02:00
|
|
|
placeholderListBoxIndex = true;
|
2021-09-29 16:13:39 +02:00
|
|
|
fieldUploadWidget = null;
|
2021-09-29 18:27:22 +02:00
|
|
|
pathIndex = null;
|
2021-09-27 18:32:19 +02:00
|
|
|
|
2021-09-28 17:31:16 +02:00
|
|
|
// listBoxIndex.clear();
|
2021-09-27 18:32:19 +02:00
|
|
|
cgSelectFile.setVisible(true);
|
|
|
|
|
2021-09-29 18:27:22 +02:00
|
|
|
ListBox listBoxContentIndex = new ListBox();
|
|
|
|
listBoxContentIndex.setWidth(_FORM_FIELDS_SIZE);
|
|
|
|
listBoxContentIndex.addItem("Select a content...");
|
2021-09-28 17:31:16 +02:00
|
|
|
|
2021-09-27 18:32:19 +02:00
|
|
|
if (listBoxPaths.getSelectedItemText().contains("abstract_relazione")) {
|
|
|
|
AbstractRelazioneScavoDV ar = fullConcessione.getAbstractRelazioneScavo();
|
|
|
|
if (ar == null) {
|
2021-09-28 17:31:16 +02:00
|
|
|
showMessage("abstract_relazione" + " NOT AVAILABLE", LabelType.WARNING);
|
2021-09-27 18:32:19 +02:00
|
|
|
return;
|
|
|
|
}
|
2021-09-28 17:31:16 +02:00
|
|
|
|
|
|
|
int posizIndex = 0;
|
2021-09-29 18:27:22 +02:00
|
|
|
fillListBoxToBeReplaced(listBoxContentIndex, "abstract_relazione", posizIndex, ar.getTitolo(),
|
2021-09-28 17:31:16 +02:00
|
|
|
ar.getListWsContent());
|
|
|
|
|
2021-09-27 18:32:19 +02:00
|
|
|
} else if (listBoxPaths.getSelectedItemText().contains("immagini")) {
|
|
|
|
List<UploadedImageDV> listImmagini = fullConcessione.getImmaginiRappresentative();
|
|
|
|
if (listImmagini == null || listImmagini.isEmpty()) {
|
2021-09-28 17:31:16 +02:00
|
|
|
showMessage("immagini" + " NOT AVAILABLE", LabelType.WARNING);
|
2021-09-27 18:32:19 +02:00
|
|
|
return;
|
|
|
|
}
|
2021-09-28 17:31:16 +02:00
|
|
|
int posizIndex = 0;
|
2021-09-27 18:32:19 +02:00
|
|
|
for (UploadedImageDV uploadedImageDV : listImmagini) {
|
2021-09-29 18:27:22 +02:00
|
|
|
fillListBoxToBeReplaced(listBoxContentIndex, "immagini", posizIndex, uploadedImageDV.getTitolo(),
|
2021-09-28 17:31:16 +02:00
|
|
|
uploadedImageDV.getListWsContent());
|
|
|
|
posizIndex++;
|
|
|
|
}
|
|
|
|
|
|
|
|
} else if (listBoxPaths.getSelectedItemText().contains("relazione")) {
|
|
|
|
RelazioneScavoDV realzione = fullConcessione.getRelazioneScavo();
|
|
|
|
if (realzione == null || realzione.getListWsContent() == null) {
|
|
|
|
showMessage("relazione" + " NOT AVAILABLE", LabelType.WARNING);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
int posizIndex = 0;
|
2021-09-29 18:27:22 +02:00
|
|
|
fillListBoxToBeReplaced(listBoxContentIndex, "relazione", posizIndex, realzione.getTitolo(),
|
2021-09-28 17:31:16 +02:00
|
|
|
realzione.getListWsContent());
|
|
|
|
|
|
|
|
} else if (listBoxPaths.getSelectedItemText().contains("posizionamentoScavo")) {
|
|
|
|
LayerConcessioneDV posiz = fullConcessione.getPosizionamentoScavo();
|
|
|
|
if (posiz == null || posiz.getListWsContent() == null || posiz.getListWsContent().isEmpty()) {
|
|
|
|
showMessage("posizionamentoScavo" + " NOT AVAILABLE", LabelType.WARNING);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
int posizIndex = 0;
|
2021-09-29 18:27:22 +02:00
|
|
|
fillListBoxToBeReplaced(listBoxContentIndex, "posizionamentoScavo", posizIndex, posiz.getTitolo(),
|
2021-09-28 17:31:16 +02:00
|
|
|
posiz.getListWsContent());
|
|
|
|
|
|
|
|
} else if (listBoxPaths.getSelectedItemText().contains("piante")) {
|
|
|
|
List<LayerConcessioneDV> piante = fullConcessione.getPianteFineScavo();
|
|
|
|
if (piante == null || piante.isEmpty()) {
|
|
|
|
showMessage("piante" + " NOT AVAILABLE", LabelType.WARNING);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
int posizIndex = 0;
|
|
|
|
for (LayerConcessioneDV lcDV : piante) {
|
2021-09-29 18:27:22 +02:00
|
|
|
fillListBoxToBeReplaced(listBoxContentIndex, "piante", posizIndex, lcDV.getTitolo(), lcDV.getListWsContent());
|
2021-09-28 17:31:16 +02:00
|
|
|
posizIndex++;
|
2021-09-27 18:32:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-09-29 18:27:22 +02:00
|
|
|
controlsContent.add(listBoxContentIndex);
|
2021-09-27 18:32:19 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-09-29 18:27:22 +02:00
|
|
|
private void fillListBoxToBeReplaced(ListBox listBoxContentIndex, String section, int posizIndex, String title,
|
2021-09-28 17:31:16 +02:00
|
|
|
List<WorkspaceContentDV> listWSC) {
|
2021-09-27 18:32:19 +02:00
|
|
|
|
|
|
|
if (listWSC == null || listWSC.isEmpty()) {
|
|
|
|
showMessage(section + " DOES NOT CONTAIN FILES", LabelType.WARNING);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2021-09-29 18:27:22 +02:00
|
|
|
listBoxContentIndex.addItem(title, posizIndex + "");
|
2021-09-28 17:31:16 +02:00
|
|
|
|
|
|
|
// adding handler once
|
|
|
|
if (posizIndex == 0) {
|
2021-09-29 16:13:39 +02:00
|
|
|
|
2021-09-29 18:27:22 +02:00
|
|
|
listBoxContentIndex.addChangeHandler(new ChangeHandler() {
|
2021-09-28 17:31:16 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onChange(ChangeEvent event) {
|
2021-09-29 16:13:39 +02:00
|
|
|
|
2021-09-29 18:27:22 +02:00
|
|
|
if (placeholderListBoxIndex) {
|
|
|
|
listBoxContentIndex.removeItem(0); // this is the placeholder, removing it once
|
|
|
|
placeholderListBoxIndex = false;
|
2021-09-29 16:13:39 +02:00
|
|
|
}
|
|
|
|
|
2021-09-29 18:27:22 +02:00
|
|
|
showFileBrowseInteraction(listBoxContentIndex.getSelectedIndex(), listWSC);
|
2021-09-28 17:31:16 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//
|
|
|
|
|
2021-09-27 18:32:19 +02:00
|
|
|
}
|
|
|
|
|
2021-09-29 18:27:22 +02:00
|
|
|
private void showFileBrowseInteraction(int pathContentIndex, List<WorkspaceContentDV> listWSC) {
|
2021-09-27 18:32:19 +02:00
|
|
|
uploadFileContainer.clear();
|
2021-09-29 18:27:22 +02:00
|
|
|
pathIndex = pathContentIndex;
|
|
|
|
|
2021-09-29 16:13:39 +02:00
|
|
|
if (listWSC.size() > 0) {
|
|
|
|
FlexTable table = new FlexTable();
|
|
|
|
table.addStyleName("table-current-content");
|
|
|
|
table.setHTML(0, 0, "<span style='color:rgb(155, 80, 78); font-weight:bold;'>Current content:</span>");
|
|
|
|
table.setHTML(1, 0, "<span style='color:rgb(155, 80, 78);'>Filename</span>");
|
|
|
|
table.setHTML(1, 1, "<span style='color:rgb(155, 80, 78);'>MimeType<span>");
|
|
|
|
table.setHTML(1, 2, "<span style='color:rgb(155, 80, 78);'>Link</span>");
|
|
|
|
int i = 2;
|
|
|
|
for (WorkspaceContentDV wsContent : listWSC) {
|
|
|
|
table.setHTML(i, 0, wsContent.getName());
|
|
|
|
table.setHTML(i, 1, wsContent.getMimetype());
|
|
|
|
String link = "<a href=" + wsContent.getLink() + ">Download</a>";
|
|
|
|
table.setHTML(i, 2, link);
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
|
|
|
|
uploadFileContainer.add(table);
|
|
|
|
}
|
|
|
|
|
|
|
|
HTML label = new HTML();
|
|
|
|
label.getElement().getStyle().setMarginTop(10, Unit.PX);
|
|
|
|
label.setHTML("<b>With new content:</b>");
|
2021-09-27 18:32:19 +02:00
|
|
|
uploadFileContainer.add(label);
|
2021-09-29 16:13:39 +02:00
|
|
|
// mDU = new MultipleDilaogUpload();
|
|
|
|
|
|
|
|
MetadataFieldWrapper uploadField = new MetadataFieldWrapper();
|
|
|
|
uploadField.setFieldName("File");
|
|
|
|
uploadField.setMandatory(true);
|
|
|
|
uploadField.setType(DataTypeWrapper.File);
|
|
|
|
uploadField.setMaxOccurs(1000);
|
|
|
|
|
|
|
|
try {
|
|
|
|
fieldUploadWidget = new MetaDataField(uploadField, uiBus);
|
2021-09-29 18:27:22 +02:00
|
|
|
// BrowseFilePanel fieldsetContent = new BrowseFilePanel(fieldUploadWidget);
|
2021-09-29 16:13:39 +02:00
|
|
|
uploadFileContainer.add(fieldUploadWidget);
|
2021-09-29 18:27:22 +02:00
|
|
|
|
2021-09-29 16:13:39 +02:00
|
|
|
buttonUpdate.setVisible(true);
|
|
|
|
} catch (Exception e) {
|
|
|
|
// TODO Auto-generated catch block
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
|
2021-09-28 17:31:16 +02:00
|
|
|
}
|
|
|
|
|
2021-09-29 16:13:39 +02:00
|
|
|
/**
|
|
|
|
* Test if profile data are valid.
|
|
|
|
*
|
|
|
|
* @return the string
|
|
|
|
*/
|
|
|
|
private String checkValidUpload() {
|
2021-09-28 17:31:16 +02:00
|
|
|
|
2021-09-29 18:27:22 +02:00
|
|
|
if (fieldUploadWidget == null)
|
|
|
|
return "No file uploaded";
|
|
|
|
|
2021-09-29 16:13:39 +02:00
|
|
|
for (MetaDataFieldSkeleton field : fieldUploadWidget.getListOfMetadataFields()) {
|
|
|
|
|
|
|
|
field.removeError();
|
|
|
|
|
|
|
|
String error = field.isFieldValueValid();
|
|
|
|
if (error != null) {
|
|
|
|
field.showError();
|
|
|
|
String errorMsg = field.getFieldNameOriginal() + " is not valid. Suggestion: " + error;
|
|
|
|
return errorMsg;
|
|
|
|
}
|
2021-09-28 17:31:16 +02:00
|
|
|
}
|
|
|
|
|
2021-09-29 16:13:39 +02:00
|
|
|
return null;
|
2021-09-27 18:32:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
private void showMessage(String txt, LabelType type) {
|
|
|
|
Label l = new Label();
|
|
|
|
l.setType(type);
|
|
|
|
l.setText(txt);
|
|
|
|
uploadFileContainer.add(l);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|