java.lang.Object
org.apache.wicket.page.PageManager
- All Implemented Interfaces:
IPageManager
Default implementation of a page manager.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear all pages.protected IPageContext
Factory method for anIPageContext
, returns aDefaultPageContext
by default.void
destroy()
Destroy when application is destroyed.void
detach()
Detach at end of request.void
end()
End the request.getPage
(int pageId) Get a pageGet the storage of pages, optional.void
removePage
(IManageablePage page) Remove a pageboolean
Is versioning of pages supported, seeIPageStore.supportsVersioning()
.void
touchPage
(IManageablePage page) Add a page.void
untouchPage
(IManageablePage page) Marks page as non-changed.
-
Constructor Details
-
PageManager
-
-
Method Details
-
supportsVersioning
Description copied from interface:IPageManager
Is versioning of pages supported, seeIPageStore.supportsVersioning()
.- Specified by:
supportsVersioning
in interfaceIPageManager
- Returns:
true
if versioning is supported
-
getPage
Description copied from interface:IPageManager
Get a page- Specified by:
getPage
in interfaceIPageManager
- Parameters:
pageId
- id of page- Returns:
- page, may be
null
-
removePage
Description copied from interface:IPageManager
Remove a page- Specified by:
removePage
in interfaceIPageManager
- Parameters:
page
- page to remove
-
touchPage
Description copied from interface:IPageManager
Add a page.- Specified by:
touchPage
in interfaceIPageManager
- Parameters:
page
- page to add
-
clear
Description copied from interface:IPageManager
Clear all pages.- Specified by:
clear
in interfaceIPageManager
-
untouchPage
Description copied from interface:IPageManager
Marks page as non-changed. Could be used in Ajax requests to avoid storing the page if no changes have happened.- Specified by:
untouchPage
in interfaceIPageManager
- Parameters:
page
- the page that should not be stored in the page stores at the end of the request.
-
end
Description copied from interface:IPageManager
End the request.- Specified by:
end
in interfaceIPageManager
-
detach
Description copied from interface:IPageManager
Detach at end of request.- Specified by:
detach
in interfaceIPageManager
-
createPageContext
Factory method for anIPageContext
, returns aDefaultPageContext
by default.- Returns:
- context of a stored page
-
destroy
Description copied from interface:IPageManager
Destroy when application is destroyed.- Specified by:
destroy
in interfaceIPageManager
-
getPageStore
Description copied from interface:IPageManager
Get the storage of pages, optional.- Specified by:
getPageStore
in interfaceIPageManager
- Returns:
- store or
null
-