Package io.jmix.ui.component
Enum Class BrowserFrame.Sandbox
- All Implemented Interfaces:
Serializable
,Comparable<BrowserFrame.Sandbox>
,Constable
- Enclosing interface:
- BrowserFrame
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAllows for downloads to occur without a gesture from the user.Allows the resource to submit forms.Lets the resource open modal windows.Lets the resource lock the screen orientation.Lets the resource use the Pointer Lock API.Allows popups (such as window.open(), target="_blank", or showModalDialog()).Lets the sandboxed document open new windows without those windows inheriting the sandboxing.Lets the resource start a presentation session.Allows the iframe content to be treated as being from the same origin.Lets the resource run scripts.Lets the resource request access to the parent's storage capabilities with the Storage Access API.Lets the resource navigate the top-level browsing context (the one named _top).Lets the resource navigate the top-level browsing context, but only if initiated by a user gesture.Applies all restrictions. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static BrowserFrame.Sandbox
Returns the enum constant of this class with the specified name.static BrowserFrame.Sandbox[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALLOW_FORMS
Allows the resource to submit forms. -
ALLOW_MODALS
Lets the resource open modal windows. -
ALLOW_ORIENTATION_LOCK
Lets the resource lock the screen orientation. -
ALLOW_POINTER_LOCK
Lets the resource use the Pointer Lock API. -
ALLOW_POPUPS
Allows popups (such as window.open(), target="_blank", or showModalDialog()). -
ALLOW_POPUPS_TO_ESCAPE_SANDBOX
Lets the sandboxed document open new windows without those windows inheriting the sandboxing. -
ALLOW_PRESENTATION
Lets the resource start a presentation session. -
ALLOW_SAME_ORIGIN
Allows the iframe content to be treated as being from the same origin. -
ALLOW_SCRIPTS
Lets the resource run scripts. -
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
Lets the resource navigate the top-level browsing context (the one named _top). -
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
Allows for downloads to occur without a gesture from the user. -
DENY_ALL
Applies all restrictions.
-
-
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
-