Enum Class BrowserFrame.Sandbox

java.lang.Object
java.lang.Enum<BrowserFrame.Sandbox>
io.jmix.ui.component.BrowserFrame.Sandbox
All Implemented Interfaces:
Serializable, Comparable<BrowserFrame.Sandbox>, Constable
Enclosing interface:
BrowserFrame

public static enum BrowserFrame.Sandbox extends Enum<BrowserFrame.Sandbox>
Standard values of the attribute sandbox of iframe HTML element. The value of the attribute can either be empty to apply all restrictions, or space-separated tokens to lift particular restrictions
  • Enum Constant Details

    • ALLOW_FORMS

      public static final BrowserFrame.Sandbox ALLOW_FORMS
      Allows the resource to submit forms.
    • ALLOW_MODALS

      public static final BrowserFrame.Sandbox ALLOW_MODALS
      Lets the resource open modal windows.
    • ALLOW_ORIENTATION_LOCK

      public static final BrowserFrame.Sandbox ALLOW_ORIENTATION_LOCK
      Lets the resource lock the screen orientation.
    • ALLOW_POINTER_LOCK

      public static final BrowserFrame.Sandbox ALLOW_POINTER_LOCK
      Lets the resource use the Pointer Lock API.
    • ALLOW_POPUPS

      public static final BrowserFrame.Sandbox ALLOW_POPUPS
      Allows popups (such as window.open(), target="_blank", or showModalDialog()).
    • ALLOW_POPUPS_TO_ESCAPE_SANDBOX

      public static final BrowserFrame.Sandbox ALLOW_POPUPS_TO_ESCAPE_SANDBOX
      Lets the sandboxed document open new windows without those windows inheriting the sandboxing.
    • ALLOW_PRESENTATION

      public static final BrowserFrame.Sandbox ALLOW_PRESENTATION
      Lets the resource start a presentation session.
    • ALLOW_SAME_ORIGIN

      public static final BrowserFrame.Sandbox ALLOW_SAME_ORIGIN
      Allows the iframe content to be treated as being from the same origin.
    • ALLOW_SCRIPTS

      public static final BrowserFrame.Sandbox ALLOW_SCRIPTS
      Lets the resource run scripts.
    • ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION

      public static final BrowserFrame.Sandbox ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION
      Lets the resource request access to the parent's storage capabilities with the Storage Access API.
    • ALLOW_TOP_NAVIGATION

      public static final BrowserFrame.Sandbox ALLOW_TOP_NAVIGATION
      Lets the resource navigate the top-level browsing context (the one named _top).
    • ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION

      public static final BrowserFrame.Sandbox ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION
      Lets the resource navigate the top-level browsing context, but only if initiated by a user gesture.
    • ALLOW_DOWNLOADS_WITHOUT_USER_ACTIVATION

      public static final BrowserFrame.Sandbox ALLOW_DOWNLOADS_WITHOUT_USER_ACTIVATION
      Allows for downloads to occur without a gesture from the user.
    • DENY_ALL

      public static final BrowserFrame.Sandbox DENY_ALL
      Applies all restrictions.
  • Method Details

    • values

      public static BrowserFrame.Sandbox[] 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

      public static BrowserFrame.Sandbox valueOf(String name)
      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
    • getValue

      public String getValue()