public class Dropzone
extends com.google.gwt.user.client.ui.Composite
| Constructor and Description |
|---|
Dropzone(DropzoneOptions options) |
Dropzone(DropzoneOptions options,
DropzoneDictonary dictionary) |
Dropzone(DropzoneOptions options,
DropzoneEventHandler handler) |
Dropzone(DropzoneOptions options,
DropzoneEventHandler handler,
DropzoneDictonary dictionary) |
Dropzone(DropzoneOptions options,
DropzoneEventHandler handler,
DropzoneDictonary dictionary,
Resources resources) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(String fileName,
Integer fileSize,
String thumbnailUrl)
Add file information manually to Dropzone.
|
static DropzoneDictonary |
dictionary()
Create the object that contains the Dictionary used by
Dropzone |
File |
getFile(int index)
Return information about particular file added to dropzone.
|
ArrayList<File> |
getFiles()
Return array if all files added to dropzone.
|
int |
getFilesCount()
Return number of added files.
|
static DropzoneOptions |
options()
Create the object that contains the Options used by
Dropzone |
void |
processQueue()
Checks how many files are currently uploading,
and if it’s less than
options.parallelUploads,
.processFile(file) is called. |
void |
removeAllFiles()
Removes all files from dropzone.
|
void |
removeFile(File file)
Removes file at index i.
|
void |
removeFile(int i)
Removes file at index i.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringpublic Dropzone(DropzoneOptions options)
public Dropzone(DropzoneOptions options, DropzoneDictonary dictionary)
public Dropzone(DropzoneOptions options, DropzoneEventHandler handler)
public Dropzone(DropzoneOptions options, DropzoneEventHandler handler, DropzoneDictonary dictionary)
public Dropzone(DropzoneOptions options, DropzoneEventHandler handler, DropzoneDictonary dictionary, Resources resources)
public static DropzoneDictonary dictionary()
DropzoneDropzoneDictonary instancepublic static DropzoneOptions options()
DropzoneDropzoneOptions instancepublic void addFile(String fileName, Integer fileSize, String thumbnailUrl)
fileName - name of file to addfileSize - size of file to addthumbnailUrl - thumbnail image for filepublic File getFile(int index)
index - of the filepublic ArrayList<File> getFiles()
public int getFilesCount()
public void processQueue()
options.parallelUploads,
.processFile(file) is called.
If you set autoProcessQueue to false, then .processQueue() is
never called implicitly.
This means that you have to call it yourself when
you want to upload all files currently queued.
public void removeAllFiles()
public void removeFile(int i)
i - index of the file to remove.public void removeFile(File file)
i - index of the file to remove.Copyright © 2015. All rights reserved.