|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPageFactory
A factory class that creates Pages. A Page can be created by Class, with or without a PageParameters argument to pass to the Page's constructor.
IMPORTANT NOTE: Implementations must let subclasses of
ResetResponseException
thrown from the constructing page's
constructor bubble up.
ISessionSettings.setPageFactory(IPageFactory)
,
Session.getPageFactory()
Method Summary | ||
---|---|---|
|
isBookmarkable(Class<C> pageClass)
Checks whether a page can be instantiated using a bookmarkable URL. |
|
|
newPage(Class<C> pageClass)
Creates a new page using a page class. |
|
|
newPage(Class<C> pageClass,
PageParameters parameters)
Creates a new Page, passing PageParameters to the Page constructor if such a constructor exists. |
Method Detail |
---|
<C extends IRequestablePage> IRequestablePage newPage(Class<C> pageClass)
C
- pageClass
- The page class to instantiate
WicketRuntimeException
- Thrown if the page cannot be constructed<C extends IRequestablePage> IRequestablePage newPage(Class<C> pageClass, PageParameters parameters)
C
- pageClass
- The class of Page to createparameters
- Any parameters to pass to the Page's constructor
WicketRuntimeException
- Thrown if the page cannot be constructed<C extends IRequestablePage> boolean isBookmarkable(Class<C> pageClass)
C
- the type of the page classpageClass
- The class of page to check for bookmarkability
true
if the page can be instantiated by this IPageFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |