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,
                           org.apache.wicket.request.mapper.parameter.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
    • Method Detail

      • getURL

        protected CharSequence getURL()
        Gets the url to use for this link.
        Returns:
        The URL that this link links to
      • getStatelessHint

        protected boolean getStatelessHint()
        Description copied from class: Component
        Returns whether the component can be stateless. Also the component behaviors must be stateless, otherwise the component will be treat as stateful. In order for page to be stateless (and not to be stored in session), all components (and component behaviors) must be stateless.
        Overrides:
        getStatelessHint in class Component
        Returns:
        whether the component can be stateless