|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.Component
wicket.MarkupContainer
wicket.Page
Abstract base class for pages. As a MarkupContainer subclass, a Page can contain a component hierarchy and markup in some markup language such as HTML. Users of the framework should not attempt to subclass Page directly. Instead they should subclass a subclass of Page that is appropriate to the markup type they are using, such as WebPage (for HTML markup).
MarkupContainer.
IModel). A Page can be assigned a model by passing one to the Page's
constructor, by overriding initModel() or with an explicit invocation of
setModel(). If the model is a CompoundPropertyModel,
Components on the Page can use the Page's model implicitly via container
inheritance. If a Component is not assigned a model, the initModel() override
in Component will cause that Component to use the nearest CompoundModel in
the parent chain, in this case, the Page's model. For basic CompoundModels,
the name of the Component determines which property of the implicit page
model the component is bound to. If more control is desired over the binding
of Components to the page model (for example, if you want to specify some
OGNL expression other than the component's name for retrieving the model
object), BoundCompoundPropertyModel can be used.
PageStaterecord that reconstitutes the Page
when replicated in a cluster.
WebPage,
MarkupContainer,
CompoundPropertyModel,
BoundCompoundPropertyModel,
Component,
IPageVersionManager,
UndoPageVersionManager,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class wicket.Component |
Component.ComponentModelChange, Component.IVisitor, Component.VisibilityChange |
| Field Summary | |
protected static boolean |
ACCESS_ALLOWED
Access allowed flag (value == true). |
protected static boolean |
ACCESS_DENIED
Access denied flag (value == false). |
| Fields inherited from class wicket.Component |
FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4 |
| Constructor Summary | |
protected |
Page()
Constructor. |
protected |
Page(IModel model)
|
| Method Summary | |
protected boolean |
checkAccess()
Whether access is allowed to this page. |
protected void |
configureResponse()
Set-up response with appropriate content type and locale. |
boolean |
continueToOriginalDestination()
Redirects to any intercept page previously specified by a call to redirectToInterceptPage. |
void |
doRender()
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
int |
getAutoIndex()
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
int |
getCurrentVersionNumber()
|
FeedbackMessages |
getFeedbackMessages()
|
PageMap |
getPageMap()
|
java.util.Iterator |
getPageSets()
THIS FEATURE IS CURRENTLY EXPERIMENTAL. |
Page |
getVersion(int versionNumber)
Override this method to implement a custom way of producing a version of a Page when it cannot be found in the Session. |
java.lang.String |
hierarchyAsString()
|
protected void |
internalOnEndRequest()
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
protected void |
internalOnModelChanged()
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
boolean |
isDirty()
|
boolean |
isErrorPage()
Override this method and return true if your page is used to display Wicket errors. |
PageState |
newPageState()
|
protected IPageVersionManager |
newVersionManager()
|
void |
onRedirect()
Redirect to this page. |
protected void |
onRender()
Renders this container to the given response object. |
void |
redirectToInterceptPage(Page page)
Redirects browser to an intermediate page such as a sign-in page. |
void |
removePersistedFormData(java.lang.Class formClass,
boolean disablePersistence)
Convenience method. |
void |
setDirty(boolean dirty)
|
void |
setPageMap(java.lang.String pageMapName)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
java.lang.String |
toString()
Get the string representation of this container. |
abstract java.lang.String |
urlFor(Component component,
java.lang.Class listenerInterface)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
abstract java.lang.String |
urlFor(java.lang.String path)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
abstract java.lang.String |
urlFor(java.lang.String pageMapName,
java.lang.Class pageClass,
PageParameters parameters)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
| Methods inherited from class wicket.MarkupContainer |
add, autoAdd, contains, findMarkupStream, get, getMarkupStream, getMarkupType, internalAdd, internalBeginRequest, internalEndRequest, iterator, onComponentTagBody, remove, removeAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, visitChildren, visitChildren |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final boolean ACCESS_ALLOWED
protected static final boolean ACCESS_DENIED
| Constructor Detail |
protected Page()
protected Page(IModel model)
model - See ComponentComponent.Component(String, IModel)| Method Detail |
public final boolean continueToOriginalDestination()
PageMap.redirectToInterceptPage(Page)public final int getAutoIndex()
public final int getCurrentVersionNumber()
public final FeedbackMessages getFeedbackMessages()
public final PageMap getPageMap()
public final java.util.Iterator getPageSets()
public Page getVersion(int versionNumber)
versionNumber - The version desired
public final java.lang.String hierarchyAsString()
public final boolean isDirty()
public boolean isErrorPage()
public PageState newPageState()
public final void onRedirect()
onRedirect in interface IRedirectListenerIRedirectListener.onRedirect()public final void redirectToInterceptPage(Page page)
page - The sign in page
public final void removePersistedFormData(java.lang.Class formClass,
boolean disablePersistence)
formClass - Form to be selected. Pages may have more than one Form.disablePersistence - if true, disable persistence for all FormComponents on that
page. If false, it will remain unchanged.Form.removePersistentFormComponentValues(boolean)public final void doRender()
public final void setDirty(boolean dirty)
dirty - True to make this page dirty, false to make it clean.public final void setPageMap(java.lang.String pageMapName)
pageMapName - Sets this page into the page map with the given name. If the
page map does not yet exist, it is automatically created.public java.lang.String toString()
toString in class MarkupContainerComponent.toString()public abstract java.lang.String urlFor(Component component, java.lang.Class listenerInterface)
Gets a url that invokes the given listener interface on the given
component. The listener interface can be any interface with a single
method taking no arguments which has been registered with a call to
RequestCycle.registerRequestListenerInterface(Class). The
component must implement the given interface.
component - Component implementing listener interfacelistenerInterface - The listener interface to invoke when the URL is requested
public abstract java.lang.String urlFor(java.lang.String path)
path - The path
public abstract java.lang.String urlFor(java.lang.String pageMapName,
java.lang.Class pageClass,
PageParameters parameters)
Gets the url for the given page class using the given parameters.
pageMapName - Name of pagemap to usepageClass - Class of pageparameters - Parameters to page
protected boolean checkAccess()
protected void configureResponse()
protected final void internalOnEndRequest()
internalOnEndRequest in class ComponentComponent.internalOnEndRequest()protected final void internalOnModelChanged()
internalOnModelChanged in class ComponentComponent.internalOnModelChanged()protected IPageVersionManager newVersionManager()
protected final void onRender()
onRender in class MarkupContainer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||