Class JQueryFileUploadOverlay
java.lang.Object
io.jmix.ui.widget.client.jqueryfileupload.JQueryFileUploadOverlay
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<com.google.gwt.core.client.JavaScriptObject>
protected static com.google.gwt.user.client.Timer
protected static Map<com.google.gwt.dom.client.Element,
JmixFileUploadWidget> protected JmixFileUploadWidget
protected static boolean
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addPendingUpload
(com.google.gwt.core.client.JavaScriptObject jqXHR) void
protected void
cancelXHR
(com.google.gwt.core.client.JavaScriptObject jqXHR) protected static boolean
containsModalWindow
(List<com.vaadin.client.ui.VWindow> overlayWindows) void
protected void
fileUploadStart
(String fileName) protected void
protected void
fileUploadSucceed
(String fileName) protected static void
protected String
getFileName
(com.google.gwt.core.client.JavaScriptObject jqXHR) protected double
getFileSize
(com.google.gwt.core.client.JavaScriptObject jqXHR) protected int
getOriginalFilesCount
(com.google.gwt.core.client.JavaScriptObject jqXHR) protected static com.google.gwt.user.client.ui.Widget
getWidgetTopParent
(com.google.gwt.user.client.ui.Widget widget) protected static void
globalDocumentDragEnd
(com.google.gwt.event.dom.client.DragEndEvent event) protected static void
globalDocumentDragLeave
(com.google.gwt.event.dom.client.DragLeaveEvent event) protected static void
globalDocumentDragOver
(com.google.gwt.event.dom.client.DragOverEvent event) protected static void
globalDocumentDrop
(com.google.gwt.event.dom.client.DropEvent event) protected static void
protected void
init
(com.google.gwt.dom.client.Element fileInput) protected static boolean
isDragEventContainsFiles
(com.google.gwt.core.client.JavaScriptObject event) protected static boolean
isUnderOverlay
(com.google.gwt.dom.client.Element dropZoneElement) protected boolean
isValidFile
(String name, double size) protected static boolean
modalWindowIsUnderOverlay
(com.vaadin.client.ui.VWindow modalWindow, List<com.vaadin.client.ui.VWindow> overlayWindows) protected void
protected void
protected void
removePendingUpload
(com.google.gwt.core.client.JavaScriptObject jqXHR) void
setDropZone
(com.google.gwt.dom.client.Element dropZoneElement) protected void
setDropZone
(com.google.gwt.dom.client.Element fileInput, com.google.gwt.dom.client.Element dropZoneElement) void
setPasteZone
(com.google.gwt.dom.client.Element pasteZoneElement) protected void
setPasteZone
(com.google.gwt.dom.client.Element fileInput, com.google.gwt.dom.client.Element pasteZoneElement) void
setUploadUrl
(String uploadUrl) protected static void
showDropZones
(com.google.gwt.event.dom.client.DragOverEvent event) protected void
skipLastFiles
(com.google.gwt.core.client.JavaScriptObject jqXHR) protected void
submitXHR
(com.google.gwt.core.client.JavaScriptObject jqXHR) protected void
protected void
uploadFailed
(String textStatus, String errorThrown) protected void
uploadProgress
(double loaded, double total)
-
Field Details
-
globalDragDropHandlersAttached
protected static boolean globalDragDropHandlersAttached -
dragStopTimer
protected static com.google.gwt.user.client.Timer dragStopTimer -
fileUploadWidget
-
uploadUrl
-
currentXHRs
-
dropZoneFileUploadMap
-
-
Constructor Details
-
JQueryFileUploadOverlay
-
-
Method Details
-
setUploadUrl
-
init
protected void init(com.google.gwt.dom.client.Element fileInput) -
submitXHR
protected void submitXHR(com.google.gwt.core.client.JavaScriptObject jqXHR) -
cancelXHR
protected void cancelXHR(com.google.gwt.core.client.JavaScriptObject jqXHR) -
skipLastFiles
protected void skipLastFiles(com.google.gwt.core.client.JavaScriptObject jqXHR) -
getOriginalFilesCount
protected int getOriginalFilesCount(com.google.gwt.core.client.JavaScriptObject jqXHR) -
getFileName
-
getFileSize
protected double getFileSize(com.google.gwt.core.client.JavaScriptObject jqXHR) -
addPendingUpload
protected void addPendingUpload(com.google.gwt.core.client.JavaScriptObject jqXHR) -
removePendingUpload
protected void removePendingUpload(com.google.gwt.core.client.JavaScriptObject jqXHR) -
continueUploading
public void continueUploading() -
cancelUploading
public void cancelUploading() -
isValidFile
-
uploadProgress
protected void uploadProgress(double loaded, double total) -
uploadFailed
-
fileUploadStop
protected void fileUploadStop() -
queueUploadStop
protected void queueUploadStop() -
queueUploadStart
protected void queueUploadStart() -
fileUploadStart
-
fileUploadSucceed
-
setDropZone
public void setDropZone(com.google.gwt.dom.client.Element dropZoneElement) -
setPasteZone
public void setPasteZone(com.google.gwt.dom.client.Element pasteZoneElement) -
subscribeGlobalDragDropHandlers
protected void subscribeGlobalDragDropHandlers() -
isUnderOverlay
protected static boolean isUnderOverlay(com.google.gwt.dom.client.Element dropZoneElement) -
getWidgetTopParent
protected static com.google.gwt.user.client.ui.Widget getWidgetTopParent(com.google.gwt.user.client.ui.Widget widget) -
containsModalWindow
-
modalWindowIsUnderOverlay
protected static boolean modalWindowIsUnderOverlay(com.vaadin.client.ui.VWindow modalWindow, List<com.vaadin.client.ui.VWindow> overlayWindows) -
globalDocumentDrop
protected static void globalDocumentDrop(com.google.gwt.event.dom.client.DropEvent event) -
globalDocumentDragEnd
protected static void globalDocumentDragEnd(com.google.gwt.event.dom.client.DragEndEvent event) -
globalDocumentDragLeave
protected static void globalDocumentDragLeave(com.google.gwt.event.dom.client.DragLeaveEvent event) -
globalDocumentDragOver
protected static void globalDocumentDragOver(com.google.gwt.event.dom.client.DragOverEvent event) -
showDropZones
protected static void showDropZones(com.google.gwt.event.dom.client.DragOverEvent event) -
hideDropZones
protected static void hideDropZones() -
forceHideDropZones
protected static void forceHideDropZones() -
setDropZone
protected void setDropZone(com.google.gwt.dom.client.Element fileInput, com.google.gwt.dom.client.Element dropZoneElement) -
setPasteZone
protected void setPasteZone(com.google.gwt.dom.client.Element fileInput, com.google.gwt.dom.client.Element pasteZoneElement) -
isDragEventContainsFiles
protected static boolean isDragEventContainsFiles(com.google.gwt.core.client.JavaScriptObject event)
-