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'sAjaxRequestTarget
that filters the list ofComponent
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.
-
-
Constructor Summary
Constructors Constructor Description PluginRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget upstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
add(org.apache.wicket.Component component, String markupId)
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
equals(Object obj)
void
focusComponent(org.apache.wicket.Component component)
Collection<? extends org.apache.wicket.Component>
getComponents()
org.apache.wicket.markup.head.IHeaderResponse
getHeaderResponse()
String
getLastFocusedElementId()
org.apache.wicket.request.ILogData
getLogData()
org.apache.wicket.Page
getPage()
Class<? extends org.apache.wicket.request.component.IRequestablePage>
getPageClass()
Integer
getPageId()
org.apache.wicket.request.mapper.parameter.PageParameters
getPageParameters()
Integer
getRenderCount()
int
hashCode()
boolean
isPageInstanceCreated()
void
prependJavaScript(CharSequence javascript)
void
registerRespondListener(org.apache.wicket.ajax.AjaxRequestTarget.ITargetRespondListener listener)
void
respond(org.apache.wicket.request.IRequestCycle requestCycle)
-
-
-
Method Detail
-
add
public void add(org.apache.wicket.Component component, String markupId)
- 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
public void addChildren(org.apache.wicket.MarkupContainer parent, Class<?> childCriteria)
- 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
public void appendJavaScript(CharSequence javascript)
- Specified by:
appendJavaScript
in interfaceorg.apache.wicket.core.request.handler.IPartialPageRequestHandler
-
prependJavaScript
public void prependJavaScript(CharSequence javascript)
- 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
public Collection<? extends org.apache.wicket.Component> 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
public String 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
public Integer 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
public Integer getRenderCount()
- Specified by:
getRenderCount
in interfaceorg.apache.wicket.core.request.handler.IPageRequestHandler
-
getPageClass
public Class<? extends org.apache.wicket.request.component.IRequestablePage> 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
-
-