Class InlineFrame

    • Constructor Detail

      • InlineFrame

        public InlineFrame​(String id,
                           Class<C> c)
        Constructs an inline frame that instantiates the given Page class when the content of the inline frame is requested. The instantiated Page is used to render a response to the user.
        Type Parameters:
        C -
        Parameters:
        id - See Component
        c - Page class
      • InlineFrame

        public InlineFrame​(String id,
                           Class<C> c,
                           PageParameters params)
        Constructs an inline frame that instantiates the given Page class when the content of the inline frame is requested. The instantiated Page is used to render a response to the user.
        Type Parameters:
        C -
        Parameters:
        id - See Component
        c - Page class
        params - Page parameters
      • InlineFrame

        public InlineFrame​(String id,
                           Page page)
        This constructor is ideal if a Page object was passed in from a previous Page. Construct an inline frame containing the given Page.
        Parameters:
        id - See component
        page - The page
      • InlineFrame

        public InlineFrame​(String id,
                           IPageProvider pageProvider)
        This constructor is ideal for constructing pages lazily. Constructs an inline frame which invokes the getPage() method of the IPageLink interface when the content of the inline frame is requested. Whatever Page objects is returned by this method will be rendered back to the user.
        Parameters:
        id - See Component
        pageProvider - the provider of the page to be contained in the inline frame if and when the content is requested