public class ListenerInterfaceRequestHandler extends Object implements IPageRequestHandler, IComponentRequestHandler, ILoggableRequestHandler
Constructor and Description |
---|
ListenerInterfaceRequestHandler(IPageAndComponentProvider pageComponentProvider,
RequestListenerInterface listenerInterface,
Integer behaviorIndex)
Construct.
|
ListenerInterfaceRequestHandler(PageAndComponentProvider pageComponentProvider,
RequestListenerInterface listenerInterface)
Construct.
|
Modifier and Type | Method and Description |
---|---|
void |
detach(IRequestCycle requestCycle) |
Integer |
getBehaviorIndex()
Index of target behavior 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.
|
ListenerInterfaceLogData |
getLogData() |
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) |
public ListenerInterfaceRequestHandler(IPageAndComponentProvider pageComponentProvider, RequestListenerInterface listenerInterface, Integer behaviorIndex)
pageComponentProvider
- listenerInterface
- behaviorIndex
- public ListenerInterfaceRequestHandler(PageAndComponentProvider pageComponentProvider, RequestListenerInterface listenerInterface)
pageComponentProvider
- listenerInterface
- public IRequestableComponent getComponent()
IComponentRequestHandler
getComponent
in interface IComponentRequestHandler
public IRequestablePage getPage()
IPageRequestHandler
getPage
in interface IPageRequestHandler
public Class<? extends IRequestablePage> getPageClass()
IPageClassRequestHandler
getPageClass
in interface IPageClassRequestHandler
public Integer getPageId()
IPageRequestHandler
getPageId
in interface IPageRequestHandler
public PageParameters getPageParameters()
getPageParameters
in interface IPageClassRequestHandler
public void detach(IRequestCycle requestCycle)
detach
in interface IRequestHandler
IRequestHandler.detach(org.apache.wicket.request.IRequestCycle)
public RequestListenerInterface getListenerInterface()
public Integer getBehaviorIndex()
null
if component is the target.null
public void respond(IRequestCycle requestCycle)
respond
in interface IRequestHandler
IRequestHandler.respond(org.apache.wicket.request.IRequestCycle)
public final boolean isPageInstanceCreated()
IPageRequestHandler
IPageRequestHandler.getPage()
is calledisPageInstanceCreated
in interface IPageRequestHandler
true
iff page instance is already createdpublic final String getComponentPath()
IComponentRequestHandler
getComponentPath
in interface IComponentRequestHandler
public final Integer getRenderCount()
IPageRequestHandler
getRenderCount
in interface IPageRequestHandler
IRequestablePage.getRenderCount()
public ListenerInterfaceLogData getLogData()
getLogData
in interface ILoggableRequestHandler
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.