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 Components 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 Details

    • PluginRequestTarget

      public PluginRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget upstream)
  • Method Details

    • add

      public void add(org.apache.wicket.Component component, String markupId)
      Specified by:
      add in interface org.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 interface org.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 interface org.apache.wicket.core.request.handler.IPartialPageRequestHandler
    • addListener

      public void addListener(org.apache.wicket.ajax.AjaxRequestTarget.IListener listener)
      Specified by:
      addListener in interface org.apache.wicket.ajax.AjaxRequestTarget
    • appendJavaScript

      public void appendJavaScript(CharSequence javascript)
      Specified by:
      appendJavaScript in interface org.apache.wicket.core.request.handler.IPartialPageRequestHandler
    • prependJavaScript

      public void prependJavaScript(CharSequence javascript)
      Specified by:
      prependJavaScript in interface org.apache.wicket.core.request.handler.IPartialPageRequestHandler
    • registerRespondListener

      public void registerRespondListener(org.apache.wicket.ajax.AjaxRequestTarget.ITargetRespondListener listener)
      Specified by:
      registerRespondListener in interface org.apache.wicket.ajax.AjaxRequestTarget
    • getComponents

      public Collection<? extends org.apache.wicket.Component> getComponents()
      Specified by:
      getComponents in interface org.apache.wicket.core.request.handler.IPartialPageRequestHandler
    • focusComponent

      public void focusComponent(org.apache.wicket.Component component)
      Specified by:
      focusComponent in interface org.apache.wicket.core.request.handler.IPartialPageRequestHandler
    • getHeaderResponse

      public org.apache.wicket.markup.head.IHeaderResponse getHeaderResponse()
      Specified by:
      getHeaderResponse in interface org.apache.wicket.core.request.handler.IPartialPageRequestHandler
    • getLastFocusedElementId

      public String getLastFocusedElementId()
      Specified by:
      getLastFocusedElementId in interface org.apache.wicket.ajax.AjaxRequestTarget
    • getPage

      public org.apache.wicket.Page getPage()
      Specified by:
      getPage in interface org.apache.wicket.ajax.AjaxRequestTarget
      Specified by:
      getPage in interface org.apache.wicket.core.request.handler.IPageRequestHandler
    • getPageId

      public Integer getPageId()
      Specified by:
      getPageId in interface org.apache.wicket.core.request.handler.IPageRequestHandler
    • isPageInstanceCreated

      public boolean isPageInstanceCreated()
      Specified by:
      isPageInstanceCreated in interface org.apache.wicket.core.request.handler.IPageRequestHandler
    • getRenderCount

      public Integer getRenderCount()
      Specified by:
      getRenderCount in interface org.apache.wicket.core.request.handler.IPageRequestHandler
    • getPageClass

      public Class<? extends org.apache.wicket.request.component.IRequestablePage> getPageClass()
      Specified by:
      getPageClass in interface org.apache.wicket.core.request.handler.IPageClassRequestHandler
    • getPageParameters

      public org.apache.wicket.request.mapper.parameter.PageParameters getPageParameters()
      Specified by:
      getPageParameters in interface org.apache.wicket.core.request.handler.IPageClassRequestHandler
    • respond

      public void respond(org.apache.wicket.request.IRequestCycle requestCycle)
      Specified by:
      respond in interface org.apache.wicket.request.IRequestHandler
    • detach

      public void detach(org.apache.wicket.request.IRequestCycle requestCycle)
      Specified by:
      detach in interface org.apache.wicket.request.IRequestHandler
    • getLogData

      public org.apache.wicket.request.ILogData getLogData()
      Specified by:
      getLogData in interface org.apache.wicket.request.ILoggableRequestHandler
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object