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
Modifier and TypeMethodDescriptiongetPageInstance
(int pageId) Returns existing page instance if the page exists.newPageInstance
(Class<? extends IRequestablePage> pageClass, PageParameters pageParameters) Creates new page instance of page with given class.
-
Method Details
-
getPageInstance
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
-