Class FileSubmit

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

    public final class FileSubmit
    extends com.google.gwt.user.client.ui.Composite
    Author:
    Massimiliano Assante, ISTI-CNR
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int MAX_SIZE_ATTACHED_FILE_MB  
      static String URL
      VERY IMPORTANT, must be the same in web.xml
      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      FileSubmit​(com.google.gwt.event.shared.HandlerManager eventBus, boolean isDND)
      Constructor
      FileSubmit​(UploadProgressDialog dlg, com.google.gwt.event.shared.HandlerManager eventBus)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.google.gwt.user.client.ui.FileUpload getFileUpload()  
      protected void showRegisteringResult​(boolean success, String customLabel)  
      protected void submitForm()  
      • Methods inherited from class com.google.gwt.user.client.ui.Composite

        claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
    • Field Detail

      • URL

        public static final String URL
        VERY IMPORTANT, must be the same in web.xml
      • MAX_SIZE_ATTACHED_FILE_MB

        public static final int MAX_SIZE_ATTACHED_FILE_MB
        See Also:
        Constant Field Values
    • Constructor Detail

      • FileSubmit

        public FileSubmit​(com.google.gwt.event.shared.HandlerManager eventBus,
                          boolean isDND)
        Constructor
        Parameters:
        eventBus -
        isDND - if the file has to be loaded through DND
      • FileSubmit

        public FileSubmit​(UploadProgressDialog dlg,
                          com.google.gwt.event.shared.HandlerManager eventBus)
    • Method Detail

      • showRegisteringResult

        protected void showRegisteringResult​(boolean success,
                                             String customLabel)
      • getFileUpload

        protected com.google.gwt.user.client.ui.FileUpload getFileUpload()
      • submitForm

        protected void submitForm()