Package org.apache.wicket.page
Interface IPageManager
-
- All Known Implementing Classes:
MockPageManager
,PageManager
public interface IPageManager
A manager of pages - facade betweenPage
s andIPageStore
s they are stored in.- See Also:
PageManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
clear()
Clear all pages.void
destroy()
Destroy when application is destroyed.void
detach()
Detach at end of request.default void
end()
End the request.IManageablePage
getPage(int pageId)
Get a pageIPageStore
getPageStore()
Get the storage of pages, optional.void
removePage(IManageablePage page)
Remove a pageboolean
supportsVersioning()
Is versionining of pages supported, seeIPageStore.supportsVersioning()
.void
touchPage(IManageablePage page)
Add a page.void
untouchPage(IManageablePage page)
Marks page as non-changed.
-
-
-
Method Detail
-
supportsVersioning
boolean supportsVersioning()
Is versionining of pages supported, seeIPageStore.supportsVersioning()
.- Returns:
true
if versioning is supported
-
getPage
IManageablePage getPage(int pageId)
Get a page- Parameters:
pageId
- id of page- Returns:
- page, may be
null
-
removePage
void removePage(IManageablePage page)
Remove a page- Parameters:
page
- page to remove
-
touchPage
void touchPage(IManageablePage page)
Add a page.- Parameters:
page
- page to add
-
untouchPage
void untouchPage(IManageablePage page)
Marks page as non-changed. Could be used in Ajax requests to avoid storing the page if no changes have happened.- Parameters:
page
- the page that should not be stored in the page stores at the end of the request.
-
clear
void clear()
Clear all pages.
-
end
default void end()
End the request.
-
detach
void detach()
Detach at end of request.
-
destroy
void destroy()
Destroy when application is destroyed.
-
getPageStore
IPageStore getPageStore()
Get the storage of pages, optional.- Returns:
- store or
null
-
-