Package org.zkoss.zul

Class Iframe

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Component, Scope, ComponentCtrl
    Direct Known Subclasses:
    Jasperreport

    public class Iframe
    extends HtmlBasedComponent
    Includes an inline frame.

    Unlike HTML iframe, this component doesn't have the frameborder property. Rather, use the CSS style to customize the border (like any other components).

    To handle the onload event, you have to use the client-attribute namespace. Please refer to ZK Component Reference: iframe fore more information.

    Author:
    tomyeh
    See Also:
    Include, Serialized Form
    • Constructor Detail

      • Iframe

        public Iframe()
      • Iframe

        public Iframe​(java.lang.String src)
    • Method Detail

      • setScrolling

        public void setScrolling​(java.lang.String scrolling)
        Define scroll bars
        Parameters:
        scrolling - "true", "false", "yes" or "no" or "auto", "auto" by default If null, "auto" is assumed.
        Since:
        3.0.4
      • getScrolling

        public java.lang.String getScrolling()
        Return the scroll bars.

        Default: "auto"

        Since:
        3.0.4
      • getName

        public java.lang.String getName()
        Returns the frame name.

        Default: null (use browser default).

      • setName

        public void setName​(java.lang.String name)
        Sets the frame name.
      • isAutohide

        public boolean isAutohide()
        Returns whether to automatically hide this component if a popup or dropdown is overlapped with it.

        Default: false.

        If an iframe contains PDF or other non-HTML resource, it is possible that it obscures the popup that shall be shown above it. To resolve this, you have to specify autohide="true" to this component, and specify the following in the page:

        <?script content="zk.useStack='auto';"?>
         

        Please refer to Stackup and Shadow for more information.

      • setAutohide

        public void setAutohide​(boolean autohide)
        Sets whether to automatically hide this component if a popup or dropdown is overlapped with it. Refer to isAutohide() for more information
      • getSrc

        public java.lang.String getSrc()
        Returns the src.

        Default: null.

      • getEncodedSrc

        protected java.lang.String getEncodedSrc()
        Returns the encoded src (getSrc()).