Class FileUploadBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- org.apache.wicket.behavior.AbstractAjaxBehavior
-
- org.hippoecm.frontend.plugins.jquery.upload.FileUploadBehavior
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.IRequestListener
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
GalleryFileUploadBehavior
public abstract class FileUploadBehavior extends org.apache.wicket.behavior.AbstractAjaxBehavior
Contributes all JS resources needed by the JQuery-File-Upload- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected FileUploadWidgetSettings
settings
-
Constructor Summary
Constructors Constructor Description FileUploadBehavior(FileUploadWidgetSettings settings)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
configureParameters(org.apache.wicket.Component component)
Set parameters that will be used in the jquery-fileupload initialization.void
onRequest()
Called when a request to a behavior is received.void
renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
protected void
renderScripts(org.apache.wicket.markup.head.IHeaderResponse response)
protected abstract void
renderWidgetConfig(org.apache.wicket.markup.head.IHeaderResponse response, Map<String,Object> variables)
Load the jquery-file-upload config script and run the startup method-
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, onBind, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
-
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag
-
-
-
-
Field Detail
-
settings
protected final FileUploadWidgetSettings settings
-
-
Constructor Detail
-
FileUploadBehavior
public FileUploadBehavior(FileUploadWidgetSettings settings)
-
-
Method Detail
-
renderHead
public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
- Specified by:
renderHead
in interfaceorg.apache.wicket.markup.html.IComponentAwareHeaderContributor
- Overrides:
renderHead
in classorg.apache.wicket.behavior.Behavior
-
renderScripts
protected void renderScripts(org.apache.wicket.markup.head.IHeaderResponse response)
-
configureParameters
protected Map<String,Object> configureParameters(org.apache.wicket.Component component)
Set parameters that will be used in the jquery-fileupload initialization. See jquery.fileupload.js/options
-
renderWidgetConfig
protected abstract void renderWidgetConfig(org.apache.wicket.markup.head.IHeaderResponse response, Map<String,Object> variables)
Load the jquery-file-upload config script and run the startup method
-
onRequest
public void onRequest()
Called when a request to a behavior is received.
-
-