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
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfaceNested 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.DebugIdImplEnabledNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringstatic final Stringprotected booleanprotected longprotected JQueryFileUploadOverlayprotected booleanstatic final Stringprotected JmixFileUploadProgressWindowprotected Stringprotected JmixFileUploadWidget.QueueUploadListenerprotected com.vaadin.client.ui.VButtonprotected StringFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidprotected static voidfireNativeClick(com.google.gwt.dom.client.Element element) protected com.google.gwt.dom.client.Elementcom.vaadin.client.ui.VButtonintbooleanprotected booleanprotected voidlistenToFocusEvents(com.google.gwt.dom.client.Element inputElement) voidonBrowserEvent(com.google.gwt.user.client.Event event) voidvoidsetAccessKey(char key) voidsetDropZone(com.google.gwt.user.client.ui.Widget dropZone, String dropZonePrompt) voidsetEnabled(boolean enabled) protected voidsetEnabledForSubmitButton(boolean enabled) voidsetFocus(boolean focused) protected voidsetIgnoreExceptions(boolean ignoreExceptions) voidsetMultiSelect(boolean multiple) voidsetPasteZone(com.google.gwt.user.client.ui.Widget pasteZone) voidsetTabIndex(int index) voidsetUploadUrl(String uploadUrl) Methods inherited from class com.google.gwt.user.client.ui.FlowPanel
add, clear, insert, insertMethods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeMethods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, doAttachChildren, doDetachChildren, orphan, removeMethods 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, unsinkEventsMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, removeMethods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndexMethods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
addMethods 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
-
ignoreExceptions
protected boolean ignoreExceptions -
fileSizeLimit
protected long fileSizeLimit -
permittedExtensions
-
filePermissionsHandler
-
queueUploadListener
-
fileUploadedListener
-
enabled
protected boolean enabled
-
-
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:
onBrowserEventin interfacecom.google.gwt.user.client.EventListener- Overrides:
onBrowserEventin 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:
getTabIndexin interfacecom.google.gwt.user.client.ui.Focusable
-
setAccessKey
public void setAccessKey(char key) - Specified by:
setAccessKeyin interfacecom.google.gwt.user.client.ui.Focusable
-
setFocus
public void setFocus(boolean focused) - Specified by:
setFocusin interfacecom.google.gwt.user.client.ui.Focusable
-
setTabIndex
public void setTabIndex(int index) - Specified by:
setTabIndexin interfacecom.google.gwt.user.client.ui.Focusable
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin 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:
setEnabledin interfacecom.google.gwt.user.client.ui.HasEnabled
-