public class FancyFileUpload
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.user.client.ui.HasText, com.google.gwt.event.dom.client.HasChangeHandlers
Modifier and Type | Class and Description |
---|---|
protected class |
FancyFileUpload.UploadDisplay
Class used for the display of filename to be uploaded, and handling the update of the display states.
|
Modifier and Type | Field and Description |
---|---|
static int |
EMPTY_STATE
State definitions
|
com.google.gwt.user.client.ui.HTML |
errorNotify |
static int |
FAILED_STATE |
com.google.gwt.user.client.ui.TextBox |
mails |
static int |
MAX_FILENAME_LENGHT |
NotifyPanel |
notifyPanel |
com.google.gwt.user.client.ui.CheckBox |
notifyToUser |
static int |
PENDING_STATE |
com.google.gwt.user.client.ui.TextBox |
roles |
static int |
UPLOADED_STATE |
static int |
UPLOADING_STATE |
com.google.gwt.user.client.ui.TextBox |
users |
Constructor and Description |
---|
FancyFileUpload()
FancyFileUpload.
|
Modifier and Type | Method and Description |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler) |
void |
addPendingFileToUpload(FileToUpload pendingFileToUpload)
addPendingFileToUpload
|
void |
close()
cancel
|
void |
disableErrorNotify()
disableErrorNotify
|
void |
enableAdvancedFilter()
enableAdvancedFilter
|
void |
enableNotifyExternalUsers()
enableNotifyExternalUsers
|
void |
enqueueFileToUpload(Collection<FileToUpload> filesToUpload) |
int |
getAction()
getAction
|
String |
getFilename()
getFileName
|
String |
getText()
Get the text from the widget - which in reality will be retrieving any value set in the Label element of the
display widget.
|
FileUploadForm |
getUploadForm()
getUploadForm
|
int |
getUploadState()
Retrieve the status of the upload widget.
|
void |
init()
Init he upload
|
void |
initJavaScriptApi(FancyFileUpload ffu)
initJavaScriptApi
|
boolean |
isActualFileUploading()
isActualFileUplading
|
boolean |
isPendingFileToUpload()
isPendingFileToUpload
|
boolean |
isPendingOnFileUploadQueue()
isPendingOnFileUploadQueue
|
boolean |
isWizard()
isWizard
|
void |
jsWizard(String docPath,
String result)
This method will be invoked from client applets.
|
void |
langRefresh()
Refreshing language
|
void |
pendingUpload()
Put the widget into a Pending state, set the Pending delay timer to call the upload file method when ran out.
|
void |
refresh()
Refresh folders and documents
|
void |
reset(boolean enableImport,
boolean enableNotifyButton)
Reset he upload
|
void |
resetOnlyShowUploading()
resetOnlyShowUploading
|
void |
setAction(int action)
setAction
|
void |
setIncreaseVersion(int incrementVersion)
setIncrementalVersion
|
void |
setText(String text)
Cannot set the text of a File Upload Widget, so raise an exception.
|
void |
setUploadNotifyUsers(boolean visible)
setUploadNotifyUsers
|
void |
uploadNewPendingFile()
uploadPendingFile
|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
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, unsinkEvents
public static final int EMPTY_STATE
public static final int PENDING_STATE
public static final int UPLOADING_STATE
public static final int UPLOADED_STATE
public static final int FAILED_STATE
public static final int MAX_FILENAME_LENGHT
public com.google.gwt.user.client.ui.CheckBox notifyToUser
public NotifyPanel notifyPanel
public com.google.gwt.user.client.ui.TextBox mails
public com.google.gwt.user.client.ui.TextBox users
public com.google.gwt.user.client.ui.TextBox roles
public com.google.gwt.user.client.ui.HTML errorNotify
public void refresh()
public void pendingUpload()
public void reset(boolean enableImport, boolean enableNotifyButton)
public void init()
public String getText()
getText
in interface com.google.gwt.user.client.ui.HasText
public void setText(String text)
setText
in interface com.google.gwt.user.client.ui.HasText
public int getUploadState()
public boolean isWizard()
public com.google.gwt.event.shared.HandlerRegistration addChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler)
addChangeHandler
in interface com.google.gwt.event.dom.client.HasChangeHandlers
public int getAction()
public void setAction(int action)
public void langRefresh()
public void disableErrorNotify()
public void enableAdvancedFilter()
public void enableNotifyExternalUsers()
public void setIncreaseVersion(int incrementVersion)
public String getFilename()
public FileUploadForm getUploadForm()
public void enqueueFileToUpload(Collection<FileToUpload> filesToUpload)
filesToUpload
- public void addPendingFileToUpload(FileToUpload pendingFileToUpload)
public boolean isPendingFileToUpload()
public boolean isPendingOnFileUploadQueue()
public boolean isActualFileUploading()
public void uploadNewPendingFile()
public void close()
public void resetOnlyShowUploading()
public void jsWizard(String docPath, String result)
docPath
- Related document path.result
- json encoded response.public void setUploadNotifyUsers(boolean visible)
public void initJavaScriptApi(FancyFileUpload ffu)
Copyright © 2016. All rights reserved.