Package org.apache.wicket.page
Class PageManager
- java.lang.Object
-
- org.apache.wicket.page.PageManager
-
- All Implemented Interfaces:
IPageManager
public class PageManager extends java.lang.Object implements IPageManager
Default implementation of a page manager.- See Also:
IPageStore,IPageContext
-
-
Constructor Summary
Constructors Constructor Description PageManager(IPageStore store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPage(IManageablePage page)Add a page.protected IPageContextcreatePageContext()Factory method for anIPageContext, returns aDefaultPageContextby default.voiddestroy()Destroy when application is destroyed.voiddetach()Detach at end of request.IManageablePagegetPage(int pageId)Get a pageIPageStoregetPageStore()Get the storage of pages, optional.voidremoveAllPages()Remove all pages.voidremovePage(IManageablePage page)Remove a pagebooleansupportsVersioning()Is versionining of pages supported, seeIPageStore.supportsVersioning().-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.page.IPageManager
clear, touchPage
-
-
-
-
Constructor Detail
-
PageManager
public PageManager(IPageStore store)
-
-
Method Detail
-
supportsVersioning
public boolean supportsVersioning()
Description copied from interface:IPageManagerIs versionining of pages supported, seeIPageStore.supportsVersioning().- Specified by:
supportsVersioningin interfaceIPageManager- Returns:
trueif versioning is supported
-
getPage
public IManageablePage getPage(int pageId)
Description copied from interface:IPageManagerGet a page- Specified by:
getPagein interfaceIPageManager- Parameters:
pageId- id of page- Returns:
- page, may be
null
-
removePage
public void removePage(IManageablePage page)
Description copied from interface:IPageManagerRemove a page- Specified by:
removePagein interfaceIPageManager- Parameters:
page- page to remove
-
addPage
public void addPage(IManageablePage page)
Description copied from interface:IPageManagerAdd a page.- Specified by:
addPagein interfaceIPageManager- Parameters:
page- page to add
-
removeAllPages
public void removeAllPages()
Description copied from interface:IPageManagerRemove all pages.- Specified by:
removeAllPagesin interfaceIPageManager
-
detach
public void detach()
Description copied from interface:IPageManagerDetach at end of request.- Specified by:
detachin interfaceIPageManager
-
createPageContext
protected IPageContext createPageContext()
Factory method for anIPageContext, returns aDefaultPageContextby default.- Returns:
- context of a stored page
-
destroy
public void destroy()
Description copied from interface:IPageManagerDestroy when application is destroyed.- Specified by:
destroyin interfaceIPageManager
-
getPageStore
public IPageStore getPageStore()
Description copied from interface:IPageManagerGet the storage of pages, optional.- Specified by:
getPageStorein interfaceIPageManager- Returns:
- store or
null
-
-