public class PageSettings extends Object
Constructor and Description |
---|
PageSettings() |
Modifier and Type | Method and Description |
---|---|
PageSettings |
addComponentResolver(IComponentResolver resolver)
Adds a component resolver to the list.
|
boolean |
getCallListenerAfterExpiry() |
List<IComponentResolver> |
getComponentResolvers()
Get the (modifiable) list of IComponentResolvers.
|
boolean |
getRecreateBookmarkablePagesAfterExpiry()
When enabled (default), urls on mounted pages will contain the full mount path, including
PageParameters, allowing wicket to reinstantiate the page if got expired.
|
boolean |
getVersionPagesByDefault() |
PageSettings |
setCallListenerAfterExpiry(boolean callAfterExpiry)
Sets a setting that determines whether Wicket should execute the
IRequestListener on a component
which owner page is freshly created after expiration of the old one |
PageSettings |
setRecreateBookmarkablePagesAfterExpiry(boolean recreateBookmarkablePagesAfterExpiry)
Sets the recreateBookmarkablePagesAfterExpiry setting
|
PageSettings |
setVersionPagesByDefault(boolean pagesVersionedByDefault)
A global setting that tells the pages to update their page id if their component
hierarchy changes somehow.
|
public PageSettings addComponentResolver(IComponentResolver resolver)
resolver
- The IComponentResolver
that is addedthis
object for chainingpublic List<IComponentResolver> getComponentResolvers()
public boolean getVersionPagesByDefault()
public PageSettings setVersionPagesByDefault(boolean pagesVersionedByDefault)
pagesVersionedByDefault
- a flag that indicates whether pages should increase their page id when
their component hierarchy changes somehow.this
object for chainingpublic boolean getRecreateBookmarkablePagesAfterExpiry()
public PageSettings setRecreateBookmarkablePagesAfterExpiry(boolean recreateBookmarkablePagesAfterExpiry)
recreateBookmarkablePagesAfterExpiry
- this
object for chainingpublic boolean getCallListenerAfterExpiry()
true
if Wicket should execute an IRequestListener
on a component
which owning page is freshly created after expiration of the old onegetRecreateBookmarkablePagesAfterExpiry()
,
IRequestableComponent.canCallListenerAfterExpiry()
public PageSettings setCallListenerAfterExpiry(boolean callAfterExpiry)
IRequestListener
on a component
which owner page is freshly created after expiration of the old onecallAfterExpiry
- true
if Wicket should execute the listenerthis
object for chainingsetRecreateBookmarkablePagesAfterExpiry(boolean)
,
IRequestableComponent.canCallListenerAfterExpiry()
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.