org.apache.wicket.request.mapper
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
 IRequestablePage getPageInstance(int pageId)
          Returns existing page instance if the page exists.
 IRequestablePage newPageInstance(java.lang.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(java.lang.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 to IRequestablePage.wasCreatedBookmarkable() must return true

Parameters:
pageMapName -
pageClass -
pageParameters -
Returns:
new page instance


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.