
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 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 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
| enum UploadState |
| AjaxFlexibleFileUpload | ( | WOContext | context | ) |
| NSArray<String> _ajaxUploadData | ( | ) | [protected] |
Builds the array of required additional AjaxUpload data items (wosid, id).
| NSArray<String> _ajaxUploadOptions | ( | ) | [protected] |
Builds the array of AjaxUpload options
| String ajaxUploadData | ( | ) |
Returns a comma separated string of AjaxUpload data items.
| String ajaxUploadOptions | ( | ) |
Returns a comma separated string of AjaxUpload options.
| String ajaxUploadScript | ( | ) |
Generates the script to initialize a new AjaxUpload JS object
| void appendToResponse | ( | WOResponse | response, | |
| WOContext | context | |||
| ) |
Reimplemented from AjaxFileUpload.
| Boolean autoSubmit | ( | ) |
Boolean which determines whether the upload should occur automatically after a file is selected.
| String cancelButtonClass | ( | ) |
CSS Class for the cancel upload button
| String cancelFunction | ( | ) |
JS Function string to cancel the iframe upload (by changing it's src url).
| String cancelLabel | ( | ) |
Label for the cancel button
| WOActionResults cancelUpload | ( | ) |
Action called by the cancel upload button
| String cancelUrl | ( | ) |
Returns a closeHTTPSession DA action URL passed to the iframe to cancel the client-side upload
| 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
| String clearLabel | ( | ) |
Label for the clear button
| void clearUploadProgress | ( | ) |
Helper to reset the uploader and unregister the AjaxProgress object
| WOActionResults containerRefreshed | ( | ) |
Action called when the either update container refreshes
| boolean fileChosen | ( | ) |
Has a file been selected, but the upload not started.
| String fileName | ( | ) |
Accessor for the local fileName
| String fileNameId | ( | ) |
Unique identifier for the fileName container
| String iframeId | ( | ) |
Unique identifier for the iframe generated by the AjaxUploader.js
| String innerContainerRefreshFunction | ( | ) |
JS Function called when the inner container refreshes
| String innerUpdateContainerId | ( | ) |
Unique identifier for the inner update container
| String onChangeFunction | ( | ) |
JS Function called when the AjaxUpload registers a change
| String onCompleteFunction | ( | ) |
JS Function called when the AjaxUploader is completes.
| String onSubmitFunction | ( | ) |
JS Function called when the AjaxUploader submits
| String outerContainerRefreshCompleteFunction | ( | ) |
JS Function called when the outer container refreshes
| String outerUpdateContainerId | ( | ) |
Unique identifier for the outer update container
| String progressClass | ( | ) |
Returns the css class for the progress bar ('AMFUProgressAmount' or 'AMFUProgressAmount AMFUProgressAmountIndeterminate')
| String progressStyle | ( | ) |
Returns a style string containing the width of the progress element
| String refreshTime | ( | ) |
Returns the value for the binding 'refreshTime'
The binding takes milliseconds between refreshes, this returns seconds
| String selectFileButtonClass | ( | ) |
CSS Class for the select file button
| String selectFileLabel | ( | ) |
Label for the select file button
| void setFileName | ( | String | fn | ) |
Setter for the local fileName
| fn |
| boolean showClearButton | ( | ) |
Is the upload completed.
| boolean showFileSelect | ( | ) |
Is there no file?
| boolean showProgressBar | ( | ) |
Is there an upload currently in progress.
| boolean showUploadButton | ( | ) |
Controls whether the upload button is displayed (this only occurs when the autoSubmit binding is false)
| boolean showUploadStarting | ( | ) |
Should the component show the upload starting text?
| String startFunction | ( | ) |
JS Function string to start the inner update container
| String stopFunction | ( | ) |
JS Function string to stop the inner update container
| String submitUploadFunction | ( | ) |
JS Function called by the manual submit button.
| String uploadButtonClass | ( | ) |
CSS Class for the upload file button
| String uploadButtonId | ( | ) |
Unique identifier for the select files button
| WOActionResults uploadCanceled | ( | ) |
Hook for add-in action called when an upload is canceled
Reimplemented from AjaxFileUpload.
| WOActionResults uploadFailed | ( | ) |
Hook for add-in action called when an upload fails
Reimplemented from AjaxFileUpload.
| String uploadLabel | ( | ) |
Label for the upload button
Reimplemented from AjaxFileUpload.
| String uploadName | ( | ) |
Unique identifier for the upload name
| AjaxUploadProgress uploadProgress | ( | ) |
Returns the upload progress for this uploader
Reimplemented from AjaxFileUpload.
| WOActionResults uploadSucceeded | ( | ) |
Reimplemented from AjaxFileUpload.
Boolean _autoSubmit [private] |
String _cancelButtonClass [private] |
String _cancelLabel [private] |
String _clearButtonClass [private] |
String _clearLabel [private] |
boolean _clearUpload [private] |
boolean _fileChosen [private] |
String _refreshTime [private] |
String _selectFileButtonClass [private] |
String _selectFileLabel [private] |
String _uploadButtonClass [private] |
String _uploadLabel [private] |
final Logger log = Logger.getLogger(getClass()) [protected] |
| UploadState state = UploadState.DORMANT |
| boolean testFlag = false |
1.5.8