public class ERDragAndDropUpload extends ERXNonSynchronizingComponent
| Bindings | |
accept | an array of accepted mimetypes. If no mimetypes are specified, all are accepted. ex. (image/png, image/jpg, text/*) |
action | the action to fire when an attachment is uploaded |
attachment | the uploaded attachment |
completeAllFunction | a javascript function to execute when all dropped files are processed |
completeFunction | a javascript function to execute after each uploaded file is processed. This function accepts two args. The first is the event. The second is the file. |
configurationName | the configuration name. See the package javadocs for more info. |
disabled | if true, the upload component is disabled and only displays component content |
editingContext | the editing context where the ERAttachments will be created |
enterFunction | a javascript function to execute when dragged files enter the drop target |
errorFunction | a javascript function to execute when a file upload error occurs. This function accepts two args. The first is the event. The second is the file. |
exitFunction | a javascript function to execute when dragged files exit the drop target |
overFunction | a javascript function to execute when dragged files are over the drop target |
storageType | the ERAttachment storage type (db, file, s3, cf, ...) |
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_dynamicBindings_Extension, _IsEventLoggingEnabled, _keyAssociations_CLASS_CLASS, _KeyPathSeparatorChar, KeyPathSeparatorNullValue_CLASS| Constructor and Description |
|---|
ERDragAndDropUpload(WOContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
_frameworkName()
Returns the name of this component's framework or "app" if
frameworkName() returns null.
|
NSArray<java.lang.String> |
accept() |
boolean |
acceptMimetype(java.lang.String mimetype) |
protected NSArray<java.lang.String> |
additionalJavascriptFiles()
Returns an array of additional Javascript files for this component, or
null (or empty array) if there aren't any.
|
java.lang.String |
configurationName()
The ERAttachment configuration name for the uploaded files.
|
java.lang.String |
dropTargetID() |
EOEditingContext |
editingContext()
The EOEditingContext where the ERAttachment will be created
|
WOActionResults |
invokeAction(WORequest request,
WOContext context)
Calls
ERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent() prior to super.invokeAction. |
java.lang.String |
postURL()
The ajax request URL for this component.
|
java.lang.String |
storageType()
The ERAttachment storage type for the uploaded files.
|
void |
takeValuesFromRequest(WORequest request,
WOContext context)
Calls
ERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent() prior to super.takeValuesFromRequest. |
appendToResponse, resetCachedBindingsInStatefulComponent, synchronizesVariablesWithBindings_awakeInContext, _checkAccess, _includeCSSResources, _includeJavascriptResources, additionalCSSFiles, arrayValueForBinding, arrayValueForBinding, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, browser, checkAccess, clickToOpenEnabled, componentName, defaultCSSPath, defaultJavascriptPath, dynamicBindings, floatValueForBinding, intValueForBinding, isPageAccessAllowed, localizer, objectValueForBinding, objectValueForBinding, pageWithName, postAppendToResponse, preAppendToResponse, primaryCSSFile, primaryJavascriptFile, reset, shouldCheckAccess, stringValueForBinding, stringValueForBinding, useDefaultComponentCSS, useDefaultComponentJavascript__valueForBinding, _associationWithName, _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, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithNamepublic ERDragAndDropUpload(WOContext context)
public java.lang.String dropTargetID()
protected NSArray<java.lang.String> additionalJavascriptFiles()
ERXComponentadditionalJavascriptFiles in class ERXComponentprotected java.lang.String _frameworkName()
ERXComponent_frameworkName in class ERXComponentpublic java.lang.String postURL()
public WOActionResults invokeAction(WORequest request, WOContext context)
ERXNonSynchronizingComponentERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent() prior to super.invokeAction.invokeAction in class ERXNonSynchronizingComponentrequest - for which the action is invokedcontext - of the requestpublic void takeValuesFromRequest(WORequest request, WOContext context)
ERXNonSynchronizingComponentERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent() prior to super.takeValuesFromRequest.takeValuesFromRequest in class ERXNonSynchronizingComponentrequest - from which the values will be takencontext - of the requestpublic java.lang.String storageType()
public java.lang.String configurationName()
public EOEditingContext editingContext()
public NSArray<java.lang.String> accept()
public boolean acceptMimetype(java.lang.String mimetype)
Copyright © 2002 – 2022 Project Wonder.