Interface IPageSource

  • All Known Subinterfaces:
    IMapperContext
    All Known Implementing Classes:
    DefaultMapperContext

    public interface IPageSource
    Interface for objects that are capable of getting and creating page instance.
    Author:
    Matej Knopp
    • Method Detail

      • getPageInstance

        IRequestablePage getPageInstance​(int pageId)
        Returns existing page instance if the page exists.
        Parameters:
        pageId -
        Returns:
        page instance or null if the page does not exist.
      • newPageInstance

        IRequestablePage newPageInstance​(Class<? extends IRequestablePage> pageClass,
                                         org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
        Creates new page instance of page with given class. The page should be marked as create bookmarkable, so subsequent calls to IRequestablePage.wasCreatedBookmarkable() must return true
        Parameters:
        pageClass -
        pageParameters -
        Returns:
        new page instance