Class JQueryFileUploadOverlay

java.lang.Object
io.jmix.ui.widget.client.jqueryfileupload.JQueryFileUploadOverlay

public class JQueryFileUploadOverlay extends Object
  • Field Details

    • globalDragDropHandlersAttached

      protected static boolean globalDragDropHandlersAttached
    • dragStopTimer

      protected static com.google.gwt.user.client.Timer dragStopTimer
    • fileUploadWidget

      protected JmixFileUploadWidget fileUploadWidget
    • uploadUrl

      protected String uploadUrl
    • currentXHRs

      protected List<com.google.gwt.core.client.JavaScriptObject> currentXHRs
    • dropZoneFileUploadMap

      protected static Map<com.google.gwt.dom.client.Element,JmixFileUploadWidget> dropZoneFileUploadMap
  • Constructor Details

  • Method Details

    • setUploadUrl

      public void setUploadUrl(String uploadUrl)
    • 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

      protected String getFileName(com.google.gwt.core.client.JavaScriptObject jqXHR)
    • 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

      protected boolean isValidFile(String name, double size)
    • uploadProgress

      protected void uploadProgress(double loaded, double total)
    • uploadFailed

      protected void uploadFailed(String textStatus, String errorThrown)
    • fileUploadStop

      protected void fileUploadStop()
    • queueUploadStop

      protected void queueUploadStop()
    • queueUploadStart

      protected void queueUploadStart()
    • fileUploadStart

      protected void fileUploadStart(String fileName)
    • fileUploadSucceed

      protected void fileUploadSucceed(String fileName)
    • 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

      protected static boolean containsModalWindow(List<com.vaadin.client.ui.VWindow> overlayWindows)
    • 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)