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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final FileUploadWidgetSettings
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.wicket.IRequestListener

    rendersPage
  • Field Details

  • Constructor Details

  • Method Details

    • renderHead

      public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
      Specified by:
      renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
      Overrides:
      renderHead in class org.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.