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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IRequestablePage
getPageInstance(int pageId)
Returns existing page instance if the page exists.IRequestablePage
newPageInstance(Class<? extends IRequestablePage> pageClass, PageParameters pageParameters)
Creates new page instance of page with given class.
-
-
-
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, PageParameters pageParameters)
Creates new page instance of page with given class. The page should be marked as create bookmarkable, so subsequent calls toIRequestablePage.wasCreatedBookmarkable()
must returntrue
- Parameters:
pageClass
-pageParameters
-- Returns:
- new page instance
-
-