Class FileSubmit
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- org.gcube.portlets.widgets.fileupload.client.view.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
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_SIZE_ATTACHED_FILE_MBstatic StringURLVERY IMPORTANT, must be the same in web.xml
-
Constructor Summary
Constructors Constructor Description FileSubmit(com.google.gwt.event.shared.HandlerManager eventBus, boolean isDND)ConstructorFileSubmit(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.FileUploadgetFileUpload()protected voidshowRegisteringResult(boolean success, String customLabel)protected voidsubmitForm()-
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()
-
-