public class AjaxFlexibleFileUpload extends AjaxFileUpload
| Bindings | |
cancelLabel | the label for for the cancel button (defaults to "Cancel") |
startingText | the text to display when the progress is starting (defaults "Upload Starting..."); |
selectFileLabel | the label for the select file button (defaults to "Select File...") |
clearLabel | the label for the button used to clear a selected file or uploaded file (defaults to "Clear") |
uploadLabel | the label for the Upload button (defaults to "Upload") |
startedFunction | the javascript function to execute when the progress is started |
canceledFunction | the javascript function to execute when the upload is canceled |
succeededFunction | the javascript function to execute when the upload succeeds |
clearedFunction | the javascript function to execute when the clear button is clicked |
failedFunction | the javascript function to execute when the upload fails |
finishedFunction | the javascript function to execute when the upload finishes (succeeded, failed, or
canceled) |
finishedAction | the action to fire when the upload finishes (cancel, failed, or succeeded) |
canceledAction | the action to fire when the upload is canceled |
succeededAction | the action to fire when the upload succeeded |
clearedAction | the action to fire when the clear button is clicked |
failedAction | the action to fire when the upload fails |
data | the NSData that will be bound with the contents of the upload |
inputStream | will be bound to an input stream on the contents of the upload |
outputStream | the output stream to write the contents of the upload to |
streamToFilePath | the path to write the upload to, can be a directory |
finalFilePath | the final file path of the upload (when streamToFilePath is set or keepTempFile = true) |
filePath | the name of the uploaded file |
allowCancel | if true, the cancel link is visible |
refreshTime | the number of milliseconds to wait between refreshes (defaults to 2000) |
keepTempFile | if true, don't delete the temp file that AjaxFileUpload creates |
uploadFunctionName | the upload button will instead be a function with the given name |
autoSubmit | should the upload start immediately after a file is selected (defaults to true) |
injectDefaultCSS | inject the default stylesheet from the Ajax framework (defaults to true); |
selectFileButtonClass | class for the select file button (defaults to "Button ObjButton SelectFileObjButton"); |
uploadButtonClass | class for the select file button (defaults to "Button ObjButton UploadFileObjButton") |
cancelButtonClass | class for the select file button (defaults to "Button ObjButton CancelUploadObjButton") |
clearButtonClass | class for the select file button (defaults to "Button ObjButton ClearUploadObjButton") |
clearUploadProgressOnSuccess | if true, displays the select file button instead of the uploaded file name on completion of a successful upload |
mimeType | set from the content-type of the upload header if available |
onClickBefore | if the given function returns true, the onClick is executed. This is to support confirm(..) dialogs. |
| Modifier and Type | Class and Description |
|---|---|
static interface |
AjaxFlexibleFileUpload.Keys |
class |
AjaxFlexibleFileUpload.Proxy
Wrapper class to expose only the methods we need to
AjaxProxy. |
static class |
AjaxFlexibleFileUpload.UploadState |
WOComponent._EventLoggingEnabler, WOComponent.EventNSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.UtilityNSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessorNSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException| Modifier and Type | Field and Description |
|---|---|
AjaxFlexibleFileUpload.Proxy |
proxy
Proxy used for method access by
AjaxProxy |
AjaxFlexibleFileUpload.UploadState |
state |
boolean |
testFlag |
_progress, _triggerUploadStart, _uploadStarted_Extension, _IsEventLoggingEnabled, _keyAssociations_CLASS_CLASS, _KeyPathSeparatorChar, KeyPathSeparatorNullValue_CLASS| Constructor and Description |
|---|
AjaxFlexibleFileUpload(WOContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected NSArray<java.lang.String> |
_ajaxUploadData()
Builds the array of required additional AjaxUpload data items (sessionIdKey, id).
|
protected NSArray<java.lang.String> |
_ajaxUploadLabels()
Builds an array of localized label strings
|
protected NSArray<java.lang.String> |
_ajaxUploadOptions()
Builds the array of AjaxUpload options
|
protected NSArray<java.lang.String> |
_options()
Builds an array of AFU options
|
java.lang.String |
ajaxProxyName()
Unique identifier for the ajax proxy object for this upload component
|
java.lang.String |
ajaxUploadData()
Returns a comma separated string of AjaxUpload data items.
|
java.lang.String |
ajaxUploadLabels()
Returns a comma separated string of the localized label strings.
|
java.lang.String |
ajaxUploadOptions()
Returns a comma separated string of AjaxUpload options.
|
java.lang.String |
ajaxUploadScript()
Generates the script to initialize a new AjaxUpload JS object
|
java.lang.Boolean |
allowCancel() |
void |
appendToResponse(WOResponse response,
WOContext context) |
java.lang.Boolean |
autoSubmit()
Boolean which determines whether the upload should occur automatically after a file is selected.
|
java.lang.String |
cancelButtonClass()
CSS Class for the cancel upload button
|
java.lang.String |
cancelButtonId()
Element id for the cancel button
|
java.lang.String |
cancelLabel()
Label for the cancel button
|
void |
cancelUpload()
Action called by the cancel upload button
|
java.lang.String |
cancelUploadFunction()
JS function bound to the cancel button
|
java.lang.String |
cancelUrl()
Returns a closeHTTPSession DA action URL passed to the iframe to cancel the client-side upload
|
java.lang.String |
clearButtonClass()
CSS Class for the clear upload button
|
WOActionResults |
clearFileResults()
Action called by the clear button, resets the uploader for a new file selection
|
java.lang.String |
clearLabel()
Label for the clear button
|
java.lang.String |
clearUploadButtonId()
Element id for the clear button
|
java.lang.String |
clearUploadFunction()
JS function bound to the clear button
|
void |
clearUploadProgress()
Helper to reset the uploader and unregister the AjaxProgress object
|
java.lang.Boolean |
clearUploadProgressOnSuccess() |
java.lang.String |
fileNameId()
Unique identifier for the fileName container
|
java.lang.String |
fileObjectId()
Element id for the file object wrapper div
|
java.lang.String |
iframeId()
Unique identifier for the iframe generated by the AjaxUploader.js
|
java.lang.String |
innerUpdateContainerId()
Unique identifier for the inner update container
|
java.lang.String |
manualSubmitUploadFunction()
JS function bound to the manual upload button
|
java.lang.String |
onChangeFunction()
JS Function called when the AjaxUpload registers a change
|
java.lang.String |
onSubmitFunction()
JS Function called when the AjaxUploader submits
|
java.lang.String |
options()
Return a comma separated string of the AFU options
|
java.lang.String |
outerUpdateContainerId()
Unique identifier for the outer update container
|
java.lang.Integer |
progressAmount()
Calculate the current progress amount ( 0-100 )
|
java.lang.String |
progressBarValueId()
Element id for the progress bar value inner div
|
java.lang.String |
progressWrapperId()
Element id for the progress bar wrapper div
|
java.lang.String |
refreshTime()
Returns the value for the binding 'refreshTime'
The binding takes milliseconds between refreshes, this returns seconds
|
java.lang.String |
selectFileButtonClass()
CSS Class for the select file button
|
java.lang.String |
selectFileButtonId()
Element id for the select file button
|
java.lang.String |
selectFileButtonWrapperId()
Element id for the select file button wrapper div
|
java.lang.String |
selectFileLabel()
Label for the select file button
|
java.lang.String |
submitUploadButtonId()
Element id for the manual upload submit button
|
java.lang.String |
uploadButtonClass()
CSS Class for the upload file button
|
java.lang.String |
uploadButtonId()
Unique identifier for the select files button
|
WOActionResults |
uploadCanceled()
Hook for add-in action called when an upload is canceled
|
WOActionResults |
uploadFailed()
Hook for add-in action called when an upload fails
|
java.lang.String |
uploadLabel()
Label for the upload button
|
java.lang.String |
uploadName()
Unique identifier for the upload name
|
AjaxUploadProgress |
uploadProgress()
Returns the AjaxUploadProgress for this uploader
|
NSDictionary<java.lang.String,?> |
uploadState()
Generate a dictionary containing the current state of the upload.
|
WOActionResults |
uploadSucceeded()
Hook for add-in action called when an upload succeeds.
|
bytesReadSize, cancelingText, cancelText, id, isUploadStarted, progressBarAfterDone, progressBarBeforeStart, progressBarID, requestHandlerKey, setRequestHandlerKey, setUploadProgress, srcUrl, startingText, startUpload, startUploadFunctionCall, startUploadName, streamLengthSize, synchronizesVariablesWithBindings, triggerStartUpload, uploadFinished, uploadFormID, uploadFrameName, uploadUrl__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithNamepublic final AjaxFlexibleFileUpload.Proxy proxy
AjaxProxypublic boolean testFlag
public AjaxFlexibleFileUpload.UploadState state
public AjaxFlexibleFileUpload(WOContext context)
public void appendToResponse(WOResponse response, WOContext context)
appendToResponse in class AjaxFileUploadpublic java.lang.String ajaxUploadScript()
protected NSArray<java.lang.String> _ajaxUploadData()
public java.lang.String ajaxUploadData()
protected NSArray<java.lang.String> _ajaxUploadOptions()
public java.lang.String ajaxUploadOptions()
protected NSArray<java.lang.String> _ajaxUploadLabels()
public java.lang.String ajaxUploadLabels()
protected NSArray<java.lang.String> _options()
public java.lang.String options()
public java.lang.String onChangeFunction()
public java.lang.String onSubmitFunction()
public NSDictionary<java.lang.String,?> uploadState()
public java.lang.String cancelUploadFunction()
public java.lang.String manualSubmitUploadFunction()
public java.lang.String clearUploadFunction()
public java.lang.String cancelButtonId()
public java.lang.String clearUploadButtonId()
public java.lang.String submitUploadButtonId()
public java.lang.String selectFileButtonId()
public java.lang.String selectFileButtonWrapperId()
public java.lang.String fileObjectId()
public java.lang.String progressWrapperId()
public java.lang.String progressBarValueId()
public java.lang.String ajaxProxyName()
public java.lang.String innerUpdateContainerId()
public java.lang.String outerUpdateContainerId()
public java.lang.String uploadButtonId()
public java.lang.String iframeId()
public java.lang.String fileNameId()
public java.lang.String uploadName()
public java.lang.String cancelUrl()
public void cancelUpload()
public WOActionResults clearFileResults()
public WOActionResults uploadCanceled()
uploadCanceled in class AjaxFileUploadpublic WOActionResults uploadFailed()
uploadFailed in class AjaxFileUploadpublic WOActionResults uploadSucceeded()
uploadSucceeded in class AjaxFileUploadpublic void clearUploadProgress()
public AjaxUploadProgress uploadProgress()
uploadProgress in class AjaxFileUploadpublic java.lang.Boolean autoSubmit()
public java.lang.Boolean clearUploadProgressOnSuccess()
public java.lang.Boolean allowCancel()
public java.lang.Integer progressAmount()
public java.lang.String refreshTime()
public java.lang.String uploadLabel()
uploadLabel in class AjaxFileUploadpublic java.lang.String clearLabel()
public java.lang.String cancelLabel()
public java.lang.String selectFileLabel()
public java.lang.String selectFileButtonClass()
public java.lang.String uploadButtonClass()
public java.lang.String cancelButtonClass()
public java.lang.String clearButtonClass()
Copyright © 2002 – 2022 Project Wonder.