org.apache.wicket.ajax
Class AjaxRequestTarget.AbstractListener

java.lang.Object
  extended by org.apache.wicket.ajax.AjaxRequestTarget.AbstractListener
All Implemented Interfaces:
AjaxRequestTarget.IListener
Enclosing interface:
AjaxRequestTarget

public static class AjaxRequestTarget.AbstractListener
extends Object
implements AjaxRequestTarget.IListener

Empty implementation of an AjaxRequestTarget.IListener useful as a starting point for your own custom listener.


Constructor Summary
AjaxRequestTarget.AbstractListener()
           
 
Method Summary
 void onAfterRespond(Map<String,Component> map, AjaxRequestTarget.IJavaScriptResponse response)
          Triggered after ajax request target is done with its response cycle.
 void onBeforeRespond(Map<String,Component> map, AjaxRequestTarget target)
          Triggered before ajax request target begins its response cycle
 void updateAjaxAttributes(AjaxRequestAttributes attributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxRequestTarget.AbstractListener

public AjaxRequestTarget.AbstractListener()
Method Detail

updateAjaxAttributes

public void updateAjaxAttributes(AjaxRequestAttributes attributes)

onBeforeRespond

public void onBeforeRespond(Map<String,Component> map,
                            AjaxRequestTarget target)
Description copied from interface: AjaxRequestTarget.IListener
Triggered before ajax request target begins its response cycle

Specified by:
onBeforeRespond in interface AjaxRequestTarget.IListener
Parameters:
map - modifiable map (markupId -> component) of components already added to the target
target - the target itself. Could be used to add components or to append/prepend javascript

onAfterRespond

public void onAfterRespond(Map<String,Component> map,
                           AjaxRequestTarget.IJavaScriptResponse response)
Description copied from interface: AjaxRequestTarget.IListener
Triggered after ajax request target is done with its response cycle. At this point only additional javascript can be output to the response using the provided AjaxRequestTarget.IJavaScriptResponse object NOTE: During this stage of processing any calls to target that manipulate the response (adding components, javascript) will have no effect

Specified by:
onAfterRespond in interface AjaxRequestTarget.IListener
Parameters:
map - read-only map:markupId->component of components already added to the target
response - response object that can be used to output javascript


Copyright © 2006–2017 Apache Software Foundation. All rights reserved.