com.evolveum.midpoint.web.component.ajaxDownload
Class AjaxDownloadBehaviorFromFile

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.apache.wicket.behavior.AbstractAjaxBehavior
          extended by com.evolveum.midpoint.web.component.ajaxDownload.AjaxDownloadBehaviorFromFile
All Implemented Interfaces:
Serializable, org.apache.wicket.behavior.IBehaviorListener, org.apache.wicket.IClusterable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.IRequestListener, org.apache.wicket.markup.html.IComponentAwareHeaderContributor

public abstract class AjaxDownloadBehaviorFromFile
extends org.apache.wicket.behavior.AbstractAjaxBehavior

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener
INTERFACE
 
Constructor Summary
AjaxDownloadBehaviorFromFile()
           
AjaxDownloadBehaviorFromFile(boolean addAntiCache)
           
 
Method Summary
protected abstract  org.apache.wicket.util.file.File initFile()
           
 void initiate(org.apache.wicket.ajax.AjaxRequestTarget target)
          Call this method to initiate the download.
 void onRequest()
           
 void setContentType(String contentType)
           
 
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, getStatelessHint, onBind, onComponentRendered, onComponentTag, onComponentTag
 
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListenerInterface, canCallListenerInterface, detach, isEnabled, isTemporary, onConfigure, onEvent, onException, renderHead, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxDownloadBehaviorFromFile

public AjaxDownloadBehaviorFromFile()

AjaxDownloadBehaviorFromFile

public AjaxDownloadBehaviorFromFile(boolean addAntiCache)
Method Detail

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)

initFile

protected abstract org.apache.wicket.util.file.File initFile()


Copyright © 2013 evolveum. All Rights Reserved.