Class BrowserFrameImpl

All Implemented Interfaces:
AttachNotifier, BrowserFrame, Component, Component.BelongToFrame, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper, HasContextHelp, HasDebugId, HasHtmlCaption, HasHtmlDescription, HasHtmlSanitizer, ResourceView

public class BrowserFrameImpl extends AbstractResourceView<JmixBrowserFrame> implements BrowserFrame
  • Constructor Details

    • BrowserFrameImpl

      public BrowserFrameImpl()
  • Method Details

    • createComponent

      protected JmixBrowserFrame createComponent()
    • getSandbox

      @Nullable public String getSandbox()
      Specified by:
      getSandbox in interface BrowserFrame
      Returns:
      value of the attribute sandbox
    • setSandbox

      public void setSandbox(@Nullable String value)
      Description copied from interface: BrowserFrame
      Sets value of the attribute sandbox. This attribute applies extra restrictions to the content in the frame.
      Specified by:
      setSandbox in interface BrowserFrame
      Parameters:
      value - sandbox
    • setSandbox

      public void setSandbox(BrowserFrame.Sandbox sandbox)
      Description copied from interface: BrowserFrame
      Sets value of the attribute sandbox.
      Specified by:
      setSandbox in interface BrowserFrame
      Parameters:
      sandbox - sandbox
    • setSandbox

      public void setSandbox(@Nullable EnumSet<BrowserFrame.Sandbox> sandboxSet)
      Description copied from interface: BrowserFrame
      Sets value of the attribute sandbox.
      Specified by:
      setSandbox in interface BrowserFrame
      Parameters:
      sandboxSet - EnumSet of BrowserFrame.Sandbox
    • setSrcdoc

      public void setSrcdoc(@Nullable String value)
      Description copied from interface: BrowserFrame
      Sets value of the attribute srcdoc. Inline HTML to embed, overriding the src attribute. You can also specify a value for the attribute srcdoc using attribute srcdocFile in xml by passing the path to the file with HTML code.
      Specified by:
      setSrcdoc in interface BrowserFrame
      Parameters:
      value - inline HTML code
    • getSrcdoc

      @Nullable public String getSrcdoc()
      Specified by:
      getSrcdoc in interface BrowserFrame
      Returns:
      value of the attribute srcdoc
    • setAllow

      public void setAllow(@Nullable String value)
      Description copied from interface: BrowserFrame
      Sets value of the attribute allow. Specifies a feature policy for the iframe.
      Specified by:
      setAllow in interface BrowserFrame
      Parameters:
      value - allow
    • setAllow

      public void setAllow(BrowserFrame.Allow allow)
      Description copied from interface: BrowserFrame
      Sets value of the attribute allow. Specifies a feature policy for the iframe.
      Specified by:
      setAllow in interface BrowserFrame
      Parameters:
      allow - allow
    • setAllow

      public void setAllow(@Nullable EnumSet<BrowserFrame.Allow> allowSet)
      Description copied from interface: BrowserFrame
      Sets value of the attribute allow. The value of the attribute can be a space-separated list of allow features.
      Specified by:
      setAllow in interface BrowserFrame
      Parameters:
      allowSet - EnumSet of BrowserFrame.Allow
    • getAllow

      @Nullable public String getAllow()
      Specified by:
      getAllow in interface BrowserFrame
      Returns:
      value of the attribute allow
    • getReferrerPolicy

      @Nullable public String getReferrerPolicy()
      Specified by:
      getReferrerPolicy in interface BrowserFrame
      Returns:
      value of the attribute referrerpolicy
    • setReferrerPolicy

      public void setReferrerPolicy(@Nullable String value)
      Description copied from interface: BrowserFrame
      Sets value of the attribute referrerpolicy. This attribute indicates which referrer to send when fetching the frame's resource
      Specified by:
      setReferrerPolicy in interface BrowserFrame
      Parameters:
      value - referrerpolicy
    • setReferrerPolicy

      public void setReferrerPolicy(BrowserFrame.ReferrerPolicy referrerPolicy)
      Description copied from interface: BrowserFrame
      Sets value of the attribute referrerpolicy.
      Specified by:
      setReferrerPolicy in interface BrowserFrame
      Parameters:
      referrerPolicy - referrerpolicy