public abstract class AjaxDownloadBehavior
extends org.apache.wicket.behavior.AbstractAjaxBehavior
| Constructor and Description |
|---|
AjaxDownloadBehavior()
Instantiates a new
AjaxDownloadBehavior. |
AjaxDownloadBehavior(boolean antiCache)
Instantiates a new
AjaxDownloadBehavior. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getFileName()
Hook method for a file name which will let the browser prompt with a save/open dialog.
|
protected abstract org.apache.wicket.util.resource.IResourceStream |
getResourceStream()
Hook method providing the actual resource stream.
|
void |
initiate(org.apache.wicket.ajax.AjaxRequestTarget target)
Call this method to initiate the download.
|
void |
onRequest() |
afterRender, bind, getCallbackUrl, getComponent, onBind, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbindpublic AjaxDownloadBehavior()
AjaxDownloadBehavior.public AjaxDownloadBehavior(boolean antiCache)
AjaxDownloadBehavior.antiCache - the anti cachepublic void initiate(org.apache.wicket.ajax.AjaxRequestTarget target)
target - the AjaxRequestTargetpublic void onRequest()
protected abstract String getFileName()
protected abstract org.apache.wicket.util.resource.IResourceStream getResourceStream()
Copyright © 2010–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.