public interface IPageProvider
getPageParameters()
instead of calling getPageInstance()
.getPageParameters(). Same goes for page class.Modifier and Type | Method and Description |
---|---|
void |
detach()
Detaches the page if it has been loaded.
|
boolean |
doesProvideNewPage()
Returns whether or not the page instance held by this provider has been instantiated by the
provider.
|
Class<? extends IRequestablePage> |
getPageClass()
Returns class of the page.
|
Integer |
getPageId()
Returns the page id.
|
IRequestablePage |
getPageInstance()
Returns page instance specified by the constructor.
|
org.apache.wicket.request.mapper.parameter.PageParameters |
getPageParameters()
Returns
PageParameters of the page. |
Integer |
getRenderCount()
Returns the number of times this page has been rendered.
|
boolean |
hasPageInstance()
If this provider returns existing page, regardless if it was already created by PageProvider
itself or is or can be found in the data store.
|
boolean |
isNewPageInstance()
Deprecated.
use
PageProvider.hasPageInstance() negation instead |
boolean |
wasExpired()
Returns whether the provided page was expired prior to this access.
|
IRequestablePage getPageInstance() throws PageExpiredException
PageExpiredException
- if the specified page
could not have been found and the constructor used did not provide enough information
to create new page instanceorg.apache.wicket.request.mapper.parameter.PageParameters getPageParameters() throws PageExpiredException
PageParameters
of the page.PageExpiredException
- if the specified page
could not have been found and the constructor used did not provide enough information
to create new page instanceboolean isNewPageInstance()
PageProvider.hasPageInstance()
negation insteadPageProvider.hasPageInstance()
boolean wasExpired()
true>
if the page was created after its original instance expired.Class<? extends IRequestablePage> getPageClass() throws PageExpiredException
PageExpiredException
- if the specified page
could not have been found and the constructor used did not provide enough information
to create new page instanceInteger getPageId()
Integer getRenderCount()
void detach()
boolean hasPageInstance()
PageProvider.getPageInstance()
this provider will return an existing instance and no
page will be created.boolean doesProvideNewPage()
true
iff the page instance held by this provider was instantiated by the
providerIllegalStateException
- if this method is called and the provider does not yet have a page instance, ie
if getPageInstance()
has never been called on this providerCopyright © 2006–2019 Apache Software Foundation. All rights reserved.