Class JmixFileUploadWidget
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.FlowPanel
io.jmix.ui.widget.client.jqueryfileupload.JmixFileUploadWidget
- 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.Focusable
,com.google.gwt.user.client.ui.HasEnabled
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.HasWidgets
,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
,com.google.gwt.user.client.ui.IndexedPanel
,com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
,com.google.gwt.user.client.ui.InsertPanel
,com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
,com.google.gwt.user.client.ui.IsWidget
,Iterable<com.google.gwt.user.client.ui.Widget>
public class JmixFileUploadWidget
extends com.google.gwt.user.client.ui.FlowPanel
implements com.google.gwt.user.client.ui.Focusable, com.google.gwt.user.client.ui.HasEnabled
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
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
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
static final String
protected boolean
protected long
protected JQueryFileUploadOverlay
protected boolean
static final String
protected JmixFileUploadProgressWindow
protected String
protected JmixFileUploadWidget.QueueUploadListener
protected com.vaadin.client.ui.VButton
protected boolean
protected String
protected String
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
protected static void
fireNativeClick
(com.google.gwt.dom.client.Element element) protected com.google.gwt.dom.client.Element
com.vaadin.client.ui.VButton
int
boolean
protected boolean
protected void
listenToFocusEvents
(com.google.gwt.dom.client.Element inputElement) void
onBrowserEvent
(com.google.gwt.user.client.Event event) void
void
setAccessKey
(char key) void
setDropZone
(com.google.gwt.user.client.ui.Widget dropZone, String dropZonePrompt) void
setEnabled
(boolean enabled) protected void
setEnabledForSubmitButton
(boolean enabled) void
setFocus
(boolean focused) protected void
setIgnoreExceptions
(boolean ignoreExceptions) void
setMultiSelect
(boolean multiple) void
setPasteZone
(com.google.gwt.user.client.ui.Widget pasteZone) void
setTabIndex
(int index) void
setUploadUrl
(String uploadUrl) Methods inherited from class com.google.gwt.user.client.ui.FlowPanel
add, clear, insert, insert
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, doAttachChildren, doDetachChildren, orphan, remove
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, 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, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndex
Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
add
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
DEFAULT_CLASSNAME
- See Also:
-
JMIX_FILEUPLOAD_DROPZONE_CLASSNAME
- See Also:
-
submitButton
protected com.vaadin.client.ui.VButton submitButton -
fileUpload
-
progressWindow
-
unableToUploadFileMessage
-
progressWindowCaption
-
cancelButtonCaption
-
totalProgressFormat
-
ignoreExceptions
protected boolean ignoreExceptions -
fileSizeLimit
protected long fileSizeLimit -
permittedExtensions
-
filePermissionsHandler
-
queueUploadListener
-
fileUploadedListener
-
enabled
protected boolean enabled -
totalProgressEnabled
protected boolean totalProgressEnabled
-
-
Constructor Details
-
JmixFileUploadWidget
public JmixFileUploadWidget()
-
-
Method Details
-
listenToFocusEvents
protected void listenToFocusEvents(com.google.gwt.dom.client.Element inputElement) -
getFileInputElement
protected com.google.gwt.dom.client.Element getFileInputElement() -
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event) - Specified by:
onBrowserEvent
in interfacecom.google.gwt.user.client.EventListener
- Overrides:
onBrowserEvent
in classcom.google.gwt.user.client.ui.Widget
-
fireNativeClick
protected static void fireNativeClick(com.google.gwt.dom.client.Element element) -
setMultiSelect
public void setMultiSelect(boolean multiple) -
setUploadUrl
-
setDropZone
-
setPasteZone
public void setPasteZone(com.google.gwt.user.client.ui.Widget pasteZone) -
setAccept
-
disableUpload
public void disableUpload() -
enableUpload
public void enableUpload() -
setEnabledForSubmitButton
protected void setEnabledForSubmitButton(boolean enabled) -
getSubmitButton
public com.vaadin.client.ui.VButton getSubmitButton() -
cancelAllUploads
public void cancelAllUploads() -
continueUploading
public void continueUploading() -
getTabIndex
public int getTabIndex()- Specified by:
getTabIndex
in interfacecom.google.gwt.user.client.ui.Focusable
-
setAccessKey
public void setAccessKey(char key) - Specified by:
setAccessKey
in interfacecom.google.gwt.user.client.ui.Focusable
-
setFocus
public void setFocus(boolean focused) - Specified by:
setFocus
in interfacecom.google.gwt.user.client.ui.Focusable
-
setTabIndex
public void setTabIndex(int index) - Specified by:
setTabIndex
in interfacecom.google.gwt.user.client.ui.Focusable
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfacecom.google.gwt.user.client.ui.HasEnabled
-
isIgnoreExceptions
protected boolean isIgnoreExceptions() -
setIgnoreExceptions
protected void setIgnoreExceptions(boolean ignoreExceptions) -
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfacecom.google.gwt.user.client.ui.HasEnabled
-