org.apache.wicket.ajax
Class AjaxRequestTarget.AbstractListener
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AjaxRequestTarget.AbstractListener
public AjaxRequestTarget.AbstractListener()
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 targettarget
- 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 targetresponse
- response object that can be used to output javascript
Copyright © 2006–2013 Apache Software Foundation. All rights reserved.