Enum Class IFrame.SandboxType

java.lang.Object
java.lang.Enum<IFrame.SandboxType>
com.vaadin.flow.component.html.IFrame.SandboxType
All Implemented Interfaces:
Serializable, Comparable<IFrame.SandboxType>, Constable
Enclosing class:
IFrame

public static enum IFrame.SandboxType extends Enum<IFrame.SandboxType>
Sandbox types.
  • Enum Constant Details

    • RESTRICT_ALL

      public static final IFrame.SandboxType RESTRICT_ALL
      Applies all restrictions, which is what an empty sandbox does.
    • ALLOW_FORMS

      public static final IFrame.SandboxType ALLOW_FORMS
      Allows form submission.
    • ALLOW_MODALS

      public static final IFrame.SandboxType ALLOW_MODALS
      Allows opening modal windows, such as window.alert().
    • ALLOW_ORIENTATION_LOCK

      public static final IFrame.SandboxType ALLOW_ORIENTATION_LOCK
      Allows locking the screen orientation.
    • ALLOW_POINTER_LOCK

      public static final IFrame.SandboxType ALLOW_POINTER_LOCK
      Allows using the Pointer Lock API.
    • ALLOW_POPUPS

      public static final IFrame.SandboxType ALLOW_POPUPS
      Allows opening popups.
    • ALLOW_POPUPS_TO_ESCAPE_SANDBOX

      public static final IFrame.SandboxType ALLOW_POPUPS_TO_ESCAPE_SANDBOX
      Allows popups to open without inheriting the sandbox restrictions.
    • ALLOW_PRESENTATION

      public static final IFrame.SandboxType ALLOW_PRESENTATION
      Allows starting a presentation session.
    • ALLOW_SAME_ORIGIN

      public static final IFrame.SandboxType ALLOW_SAME_ORIGIN
      Keeps the content in its own origin instead of a unique one, so that it can access same-origin data such as cookies and local storage.
    • ALLOW_SCRIPTS

      public static final IFrame.SandboxType ALLOW_SCRIPTS
      Allows running scripts.
    • ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION

      public static final IFrame.SandboxType ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION
      Allows requesting access to the parent's storage through the Storage Access API.
    • ALLOW_TOP_NAVIGATION

      public static final IFrame.SandboxType ALLOW_TOP_NAVIGATION
      Allows navigating the top-level browsing context.
    • ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION

      public static final IFrame.SandboxType ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION
      Allows navigating the top-level browsing context, but only as a result of a user gesture.
  • Method Details

    • values

      public static IFrame.SandboxType[] 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 IFrame.SandboxType 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()
      Gets the value used for the sandbox attribute.
      Returns:
      the attribute value