public class AJAXDownload
extends org.apache.wicket.behavior.AbstractAjaxBehavior
Constructor and Description |
---|
AJAXDownload() |
AJAXDownload(boolean addAntiCache) |
Modifier and Type | Method and Description |
---|---|
protected String |
getFileName()
Override this method for a file name which will let the browser prompt with a save/open
dialog.
|
protected org.apache.wicket.util.resource.IResourceStream |
getResourceStream()
Hook method providing the actual resource stream.
|
void |
initiate(org.apache.wicket.ajax.AjaxRequestTarget aTarget,
String aFileName)
Call this method to initiate the download.
|
void |
onRequest() |
afterRender, bind, getCallbackUrl, getComponent, onBind, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
public AJAXDownload()
public AJAXDownload(boolean addAntiCache)
public void initiate(org.apache.wicket.ajax.AjaxRequestTarget aTarget, String aFileName)
aTarget
- the AJAX target.aFileName
- the filename.public void onRequest()
protected String getFileName()
protected org.apache.wicket.util.resource.IResourceStream getResourceStream()
Copyright © 2012–2017. All rights reserved.