|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.request.handler.BookmarkableListenerInterfaceRequestHandler
public class BookmarkableListenerInterfaceRequestHandler
Request handler for bookmarkable pages with listener interface. This handler is only used to
generate URLs. Rendering is always handled by ListenerInterfaceRequestHandler.
| Constructor Summary | |
|---|---|
BookmarkableListenerInterfaceRequestHandler(IPageAndComponentProvider pageComponentProvider,
RequestListenerInterface listenerInterface,
Integer behaviorIndex)
Construct. |
|
BookmarkableListenerInterfaceRequestHandler(PageAndComponentProvider pageComponentProvider,
RequestListenerInterface listenerInterface)
Construct. |
|
| Method Summary | |
|---|---|
void |
detach(IRequestCycle requestCycle)
This method is called at the end of a request cycle to indicate that processing is done and that cleaning up of the subject(s) of this target may be done. |
Integer |
getBehaviorIndex()
Returns index of behavior this listener is targeted on or null if component is
the target |
IRequestableComponent |
getComponent()
Returns the component instance. |
String |
getComponentPath()
Returns the page relative path to the component instance. |
RequestListenerInterface |
getListenerInterface()
Returns the listener interface. |
IRequestablePage |
getPage()
Returns the page. |
Class<? extends IRequestablePage> |
getPageClass()
Returns the page class |
Integer |
getPageId()
Returns the page id. |
PageParameters |
getPageParameters()
|
Integer |
getRenderCount()
Returns the number of times this page has been rendered. |
boolean |
isPageInstanceCreated()
Checks if the page instance is already created or if it will be created when IPageRequestHandler.getPage() is called |
void |
respond(IRequestCycle requestCycle)
Generates a response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BookmarkableListenerInterfaceRequestHandler(IPageAndComponentProvider pageComponentProvider,
RequestListenerInterface listenerInterface,
Integer behaviorIndex)
pageComponentProvider - listenerInterface - behaviorIndex -
public BookmarkableListenerInterfaceRequestHandler(PageAndComponentProvider pageComponentProvider,
RequestListenerInterface listenerInterface)
pageComponentProvider - component - listenerInterface - | Method Detail |
|---|
public IRequestableComponent getComponent()
IComponentRequestHandler
getComponent in interface IComponentRequestHandlerIComponentRequestHandler.getComponent()public final String getComponentPath()
IComponentRequestHandler
getComponentPath in interface IComponentRequestHandlerpublic IRequestablePage getPage()
IPageRequestHandler
getPage in interface IPageRequestHandlerIPageRequestHandler.getPage()public Class<? extends IRequestablePage> getPageClass()
IPageClassRequestHandler
getPageClass in interface IPageClassRequestHandlerIPageClassRequestHandler.getPageClass()public Integer getPageId()
IPageRequestHandler
getPageId in interface IPageRequestHandlerIPageRequestHandler.getPageId()public PageParameters getPageParameters()
getPageParameters in interface IPageClassRequestHandlerIPageClassRequestHandler.getPageParameters()public void detach(IRequestCycle requestCycle)
IRequestHandler
detach in interface IRequestHandlerrequestCycle - the current request cycleorg.apache.org.apache.wicket.request.IRequestHandler#detach(org.apache.wicket.request.cycle.RequestCycle)public RequestListenerInterface getListenerInterface()
public Integer getBehaviorIndex()
null if component is
the target
nullpublic void respond(IRequestCycle requestCycle)
IRequestHandler
respond in interface IRequestHandlerrequestCycle - the current request cycleorg.apache.org.apache.wicket.request.IRequestHandler#respond(org.apache.wicket.request.cycle.RequestCycle)public final boolean isPageInstanceCreated()
IPageRequestHandlerIPageRequestHandler.getPage() is called
isPageInstanceCreated in interface IPageRequestHandlertrue iff page instance is not yet createdpublic final Integer getRenderCount()
IPageRequestHandler
getRenderCount in interface IPageRequestHandlerIRequestablePage.getRenderCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||