Module org.apache.wicket.extensions
Enum Class AjaxDownloadBehavior.Location
java.lang.Object
java.lang.Enum<AjaxDownloadBehavior.Location>
org.apache.wicket.extensions.ajax.AjaxDownloadBehavior.Location
- All Implemented Interfaces:
Serializable
,Comparable<AjaxDownloadBehavior.Location>
,Constable
- Enclosing class:
- AjaxDownloadBehavior
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe resource will be downloaded into ablob
.The resource will be downloaded via a temporary created iframe, the resource has to be aContentDisposition.ATTACHMENT
.The resource will be downloaded in a new browser window by using JavaScriptwindow.open()
API, the resource has to be aContentDisposition.INLINE
.The resource will be downloaded by changing the location of the current DOM document, the resource has to be aContentDisposition.ATTACHMENT
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AjaxDownloadBehavior.Location[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Blob
The resource will be downloaded into ablob
.This is recommended for modern browsers.
-
IFrame
The resource will be downloaded via a temporary created iframe, the resource has to be aContentDisposition.ATTACHMENT
.This is recommended when there are resources in the DOM which will be closed automatically on JavaScript unload event, like WebSockets. Supports both success and failure callbacks!
-
SameWindow
The resource will be downloaded by changing the location of the current DOM document, the resource has to be aContentDisposition.ATTACHMENT
.Note: This will trigger JavaScript unload event on the page! Does not support
AjaxDownloadBehavior.onDownloadFailed(AjaxRequestTarget)
callback, i.e. it is not possible to detect when the download has failed! -
NewWindow
The resource will be downloaded in a new browser window by using JavaScriptwindow.open()
API, the resource has to be aContentDisposition.INLINE
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-