Class AbstractAjaxDownloadBehavior

java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
com.evolveum.midpoint.web.component.AbstractAjaxDownloadBehavior
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:
AjaxDownloadBehaviorFromStream

public abstract class AbstractAjaxDownloadBehavior extends org.apache.wicket.behavior.AbstractAjaxBehavior
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    AbstractAjaxDownloadBehavior(boolean addAntiCache)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    abstract org.apache.wicket.util.resource.IResourceStream
     
    void
    initiate(org.apache.wicket.ajax.AjaxRequestTarget target)
    Call this method to initiate the download.
    void
     
    void
    setContentType(String contentType)
     
    void
    setFileName(String fileName)
     

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

    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
  • Constructor Details

    • AbstractAjaxDownloadBehavior

      public AbstractAjaxDownloadBehavior()
    • AbstractAjaxDownloadBehavior

      public AbstractAjaxDownloadBehavior(boolean addAntiCache)
  • Method Details

    • initiate

      public void initiate(org.apache.wicket.ajax.AjaxRequestTarget target)
      Call this method to initiate the download.
    • onRequest

      public void onRequest()
    • setContentType

      public void setContentType(String contentType)
    • getFileName

      public String getFileName()
    • setFileName

      public void setFileName(String fileName)
    • getResourceStream

      public abstract org.apache.wicket.util.resource.IResourceStream getResourceStream()