Package com.vaadin.flow.component.html
Enum Class IFrame.SandboxType
- All Implemented Interfaces:
Serializable,Comparable<IFrame.SandboxType>,Constable
- Enclosing class:
IFrame
Sandbox types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllows form submission.Allows opening modal windows, such aswindow.alert().Allows locking the screen orientation.Allows using the Pointer Lock API.Allows opening popups.Allows popups to open without inheriting the sandbox restrictions.Allows starting a presentation session.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.Allows running scripts.Allows requesting access to the parent's storage through the Storage Access API.Allows navigating the top-level browsing context.Allows navigating the top-level browsing context, but only as a result of a user gesture.Applies all restrictions, which is what an empty sandbox does. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Gets the value used for thesandboxattribute.static IFrame.SandboxTypeReturns the enum constant of this class with the specified name.static IFrame.SandboxType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESTRICT_ALL
Applies all restrictions, which is what an empty sandbox does. -
ALLOW_FORMS
Allows form submission. -
ALLOW_MODALS
Allows opening modal windows, such aswindow.alert(). -
ALLOW_ORIENTATION_LOCK
Allows locking the screen orientation. -
ALLOW_POINTER_LOCK
Allows using the Pointer Lock API. -
ALLOW_POPUPS
Allows opening popups. -
ALLOW_POPUPS_TO_ESCAPE_SANDBOX
Allows popups to open without inheriting the sandbox restrictions. -
ALLOW_PRESENTATION
Allows starting a presentation session. -
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
Allows running scripts. -
ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION
Allows requesting access to the parent's storage through the Storage Access API. -
ALLOW_TOP_NAVIGATION
Allows navigating the top-level browsing context. -
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
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
-
getValue
Gets the value used for thesandboxattribute.- Returns:
- the attribute value
-