Class CmsFramePopup

  • All Implemented Interfaces:,<>,,,,,,,,,,,, java.lang.Iterable<>, I_CmsAutoHider

    public class CmsFramePopup
    extends CmsPopup
    This class represents a popup which displays an IFrame.

    It also exports a Javascript function to close the popup when given the id of the popup.

    • Field Detail

      • m_closeHandler

        protected java.lang.Runnable m_closeHandler
        The handler which is called when the popup closes itself.
    • Constructor Detail

      • CmsFramePopup

        public CmsFramePopup​(java.lang.String title,
                             java.lang.String url)

        title - the title of the popup dialog
        url - the URL which should be opened in the popup
    • Method Detail

      • getFrame

        public getFrame()
        Returns the frame contained in this popup.

        a frame
      • hideDelayed

        public void hideDelayed()
        Hide the popup, but only after the current event has been processed.

      • setCloseHandler

        public void setCloseHandler​(java.lang.Runnable closeHandler)
        Sets the handler which should be called when the popup closes itself.

        closeHandler - the "close" handler
      • setId

        public void setId​(java.lang.String id)
        Sets the id of this IFrame popup.

        The popup can be closed by calling the cmsCloseDialog Javascript function with the same id as a parameter.

        id - the new id
      • exportCloseFunction

        protected void exportCloseFunction()
        Exports a Javascript function 'cmsCloseDialog', which, when passed the id of a CmsFramePopup as a parameter, will close that dialog.