Package org.hippoecm.frontend
Class PluginRequestTarget
java.lang.Object
org.hippoecm.frontend.PluginRequestTarget
- All Implemented Interfaces:
org.apache.wicket.ajax.AjaxRequestTarget
,org.apache.wicket.core.request.handler.IPageClassRequestHandler
,org.apache.wicket.core.request.handler.IPageRequestHandler
,org.apache.wicket.core.request.handler.IPartialPageRequestHandler
,org.apache.wicket.request.ILoggableRequestHandler
,org.apache.wicket.request.IRequestHandler
public final class PluginRequestTarget
extends Object
implements org.apache.wicket.ajax.AjaxRequestTarget
Extension of Wicket's
AjaxRequestTarget
that filters the list of
Component
s that have been added.
This class used to handle the case that nested components were added to the request target. While necessary in Wicket-1.4.x, in Wicket-6, this is handled by the framework.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.wicket.ajax.AjaxRequestTarget
org.apache.wicket.ajax.AjaxRequestTarget.IListener, org.apache.wicket.ajax.AjaxRequestTarget.ITargetRespondListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(org.apache.wicket.Component... components) Adds a component to this Ajax request, but only if it is still part of the page when this Ajax request begins to respond.void
void
addChildren
(org.apache.wicket.MarkupContainer parent, Class<?> childCriteria) void
addListener
(org.apache.wicket.ajax.AjaxRequestTarget.IListener listener) void
appendJavaScript
(CharSequence javascript) void
detach
(org.apache.wicket.request.IRequestCycle requestCycle) boolean
void
focusComponent
(org.apache.wicket.Component component) Collection<? extends org.apache.wicket.Component>
org.apache.wicket.markup.head.IHeaderResponse
org.apache.wicket.request.ILogData
org.apache.wicket.Page
getPage()
Class<? extends org.apache.wicket.request.component.IRequestablePage>
org.apache.wicket.request.mapper.parameter.PageParameters
int
hashCode()
boolean
void
prependJavaScript
(CharSequence javascript) void
registerRespondListener
(org.apache.wicket.ajax.AjaxRequestTarget.ITargetRespondListener listener) void
respond
(org.apache.wicket.request.IRequestCycle requestCycle)
-
Constructor Details
-
PluginRequestTarget
public PluginRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget upstream)
-
-
Method Details
-
add
- Specified by:
add
in interfaceorg.apache.wicket.core.request.handler.IPartialPageRequestHandler
-
add
public void add(org.apache.wicket.Component... components) Adds a component to this Ajax request, but only if it is still part of the page when this Ajax request begins to respond.- Specified by:
add
in interfaceorg.apache.wicket.core.request.handler.IPartialPageRequestHandler
- Parameters:
components
- the components to add
-
addChildren
- Specified by:
addChildren
in interfaceorg.apache.wicket.core.request.handler.IPartialPageRequestHandler
-
addListener
public void addListener(org.apache.wicket.ajax.AjaxRequestTarget.IListener listener) - Specified by:
addListener
in interfaceorg.apache.wicket.ajax.AjaxRequestTarget
-
appendJavaScript
- Specified by:
appendJavaScript
in interfaceorg.apache.wicket.core.request.handler.IPartialPageRequestHandler
-
prependJavaScript
- Specified by:
prependJavaScript
in interfaceorg.apache.wicket.core.request.handler.IPartialPageRequestHandler
-
registerRespondListener
public void registerRespondListener(org.apache.wicket.ajax.AjaxRequestTarget.ITargetRespondListener listener) - Specified by:
registerRespondListener
in interfaceorg.apache.wicket.ajax.AjaxRequestTarget
-
getComponents
- Specified by:
getComponents
in interfaceorg.apache.wicket.core.request.handler.IPartialPageRequestHandler
-
focusComponent
public void focusComponent(org.apache.wicket.Component component) - Specified by:
focusComponent
in interfaceorg.apache.wicket.core.request.handler.IPartialPageRequestHandler
-
getHeaderResponse
public org.apache.wicket.markup.head.IHeaderResponse getHeaderResponse()- Specified by:
getHeaderResponse
in interfaceorg.apache.wicket.core.request.handler.IPartialPageRequestHandler
-
getLastFocusedElementId
- Specified by:
getLastFocusedElementId
in interfaceorg.apache.wicket.ajax.AjaxRequestTarget
-
getPage
public org.apache.wicket.Page getPage()- Specified by:
getPage
in interfaceorg.apache.wicket.ajax.AjaxRequestTarget
- Specified by:
getPage
in interfaceorg.apache.wicket.core.request.handler.IPageRequestHandler
-
getPageId
- Specified by:
getPageId
in interfaceorg.apache.wicket.core.request.handler.IPageRequestHandler
-
isPageInstanceCreated
public boolean isPageInstanceCreated()- Specified by:
isPageInstanceCreated
in interfaceorg.apache.wicket.core.request.handler.IPageRequestHandler
-
getRenderCount
- Specified by:
getRenderCount
in interfaceorg.apache.wicket.core.request.handler.IPageRequestHandler
-
getPageClass
- Specified by:
getPageClass
in interfaceorg.apache.wicket.core.request.handler.IPageClassRequestHandler
-
getPageParameters
public org.apache.wicket.request.mapper.parameter.PageParameters getPageParameters()- Specified by:
getPageParameters
in interfaceorg.apache.wicket.core.request.handler.IPageClassRequestHandler
-
respond
public void respond(org.apache.wicket.request.IRequestCycle requestCycle) - Specified by:
respond
in interfaceorg.apache.wicket.request.IRequestHandler
-
detach
public void detach(org.apache.wicket.request.IRequestCycle requestCycle) - Specified by:
detach
in interfaceorg.apache.wicket.request.IRequestHandler
-
getLogData
public org.apache.wicket.request.ILogData getLogData()- Specified by:
getLogData
in interfaceorg.apache.wicket.request.ILoggableRequestHandler
-
hashCode
public int hashCode() -
equals
-