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

  • Enum Constant Details

    • Blob

      public static final AjaxDownloadBehavior.Location Blob
      The resource will be downloaded into a blob.

      This is recommended for modern browsers.

    • IFrame

      The resource will be downloaded via a temporary created iframe, the resource has to be a ContentDisposition.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 a ContentDisposition.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 JavaScript window.open() API, the resource has to be a ContentDisposition.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 name
      NullPointerException - if the argument is null