Class 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
    • 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
      • Methods inherited from interface org.apache.wicket.IRequestListener

        rendersPage
    • Method Detail

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