public class AjaxFlexibleFileUpload extends AjaxFileUpload
Name | Description |
---|---|
accept | the attribute specifies the types of files that the server accepts (that can be submitted through a file upload) |
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.Event
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._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.ValueAccessor
NSValidation._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, KeyPathSeparator
NullValue
_CLASS
Constructor and Description |
---|
AjaxFlexibleFileUpload(WOContext context) |
Modifier and Type | Method and Description |
---|---|
protected NSArray<String> |
_ajaxUploadData()
Builds the array of required additional AjaxUpload data items (sessionIdKey, id).
|
protected NSArray<String> |
_ajaxUploadLabels()
Builds an array of localized label strings
|
protected NSArray<String> |
_ajaxUploadOptions()
Builds the array of AjaxUpload options
|
protected NSArray<String> |
_options()
Builds an array of AFU options
|
String |
ajaxProxyName()
Unique identifier for the ajax proxy object for this upload component
|
String |
ajaxUploadData()
Returns a comma separated string of AjaxUpload data items.
|
String |
ajaxUploadLabels()
Returns a comma separated string of the localized label strings.
|
String |
ajaxUploadOptions()
Returns a comma separated string of AjaxUpload options.
|
String |
ajaxUploadScript()
Generates the script to initialize a new AjaxUpload JS object
|
Boolean |
allowCancel() |
void |
appendToResponse(WOResponse response,
WOContext context) |
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 |
cancelButtonId()
Element id for the cancel button
|
String |
cancelLabel()
Label for the cancel button
|
void |
cancelUpload()
Action called by the cancel upload button
|
String |
cancelUploadFunction()
JS function bound to the cancel 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
|
String |
clearUploadButtonId()
Element id for the clear button
|
String |
clearUploadFunction()
JS function bound to the clear button
|
void |
clearUploadProgress()
Helper to reset the uploader and unregister the AjaxProgress object
|
Boolean |
clearUploadProgressOnSuccess() |
String |
fileNameId()
Unique identifier for the fileName container
|
String |
fileObjectId()
Element id for the file object wrapper div
|
String |
iframeId()
Unique identifier for the iframe generated by the AjaxUploader.js
|
String |
innerUpdateContainerId()
Unique identifier for the inner update container
|
String |
manualSubmitUploadFunction()
JS function bound to the manual upload button
|
String |
onChangeFunction()
JS Function called when the AjaxUpload registers a change
|
String |
onSubmitFunction()
JS Function called when the AjaxUploader submits
|
String |
options()
Return a comma separated string of the AFU options
|
String |
outerUpdateContainerId()
Unique identifier for the outer update container
|
Integer |
progressAmount()
Calculate the current progress amount ( 0-100 )
|
String |
progressBarValueId()
Element id for the progress bar value inner div
|
String |
progressWrapperId()
Element id for the progress bar wrapper div
|
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 |
selectFileButtonId()
Element id for the select file button
|
String |
selectFileButtonWrapperId()
Element id for the select file button wrapper div
|
String |
selectFileLabel()
Label for the select file button
|
String |
submitUploadButtonId()
Element id for the manual upload 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
|
WOActionResults |
uploadFailed()
Hook for add-in action called when an upload fails
|
String |
uploadLabel()
Label for the upload button
|
String |
uploadName()
Unique identifier for the upload name
|
AjaxUploadProgress |
uploadProgress()
Returns the AjaxUploadProgress for this uploader
|
NSDictionary<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, variableWithName
public final AjaxFlexibleFileUpload.Proxy proxy
AjaxProxy
public boolean testFlag
public AjaxFlexibleFileUpload.UploadState state
public AjaxFlexibleFileUpload(WOContext context)
public void appendToResponse(WOResponse response, WOContext context)
appendToResponse
in class AjaxFileUpload
public String ajaxUploadScript()
protected NSArray<String> _ajaxUploadData()
public String ajaxUploadData()
protected NSArray<String> _ajaxUploadOptions()
public String ajaxUploadOptions()
protected NSArray<String> _ajaxUploadLabels()
public String ajaxUploadLabels()
protected NSArray<String> _options()
public String options()
public String onChangeFunction()
public String onSubmitFunction()
public NSDictionary<String,?> uploadState()
public String cancelUploadFunction()
public String manualSubmitUploadFunction()
public String clearUploadFunction()
public String cancelButtonId()
public String clearUploadButtonId()
public String submitUploadButtonId()
public String selectFileButtonId()
public String selectFileButtonWrapperId()
public String fileObjectId()
public String progressWrapperId()
public String progressBarValueId()
public String ajaxProxyName()
public String innerUpdateContainerId()
public String outerUpdateContainerId()
public String uploadButtonId()
public String iframeId()
public String fileNameId()
public String uploadName()
public String cancelUrl()
public void cancelUpload()
public WOActionResults clearFileResults()
public WOActionResults uploadCanceled()
uploadCanceled
in class AjaxFileUpload
public WOActionResults uploadFailed()
uploadFailed
in class AjaxFileUpload
public WOActionResults uploadSucceeded()
uploadSucceeded
in class AjaxFileUpload
public void clearUploadProgress()
public AjaxUploadProgress uploadProgress()
uploadProgress
in class AjaxFileUpload
public Boolean autoSubmit()
public Boolean clearUploadProgressOnSuccess()
public Boolean allowCancel()
public Integer progressAmount()
public String refreshTime()
public String uploadLabel()
uploadLabel
in class AjaxFileUpload
public String clearLabel()
public String cancelLabel()
public String selectFileLabel()
public String selectFileButtonClass()
public String uploadButtonClass()
public String cancelButtonClass()
public String clearButtonClass()
Copyright © 2002 – 2024 Project Wonder.