Package org.wicketstuff
Class DefaultSynchronizer
- java.lang.Object
-
- org.wicketstuff.Synchronizer
-
- org.wicketstuff.DefaultSynchronizer
-
- All Implemented Interfaces:
AjaxRequestTarget.IListener
public class DefaultSynchronizer extends Synchronizer implements AjaxRequestTarget.IListener
Synchronizer basically adds components(repeater's items) and scripts to the the AjaxRequestTarget after checking parent is not added to AjaxRequestTarget .If parent is added scripts and items are not added to the AjaxRequestTarget- Author:
- Vineet Semwal
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.wicketstuff.Synchronizer
Synchronizer.ChildVisitor
-
-
Constructor Summary
Constructors Constructor Description DefaultSynchronizer(MarkupContainer parent, IPartialPageRequestHandler requestHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onAfterRespond(Map<String,Component> map, AjaxRequestTarget.IJavaScriptResponse response)
void
onBeforeRespond(Map<String,Component> map, AjaxRequestTarget target)
void
updateAjaxAttributes(AbstractDefaultAjaxBehavior behavior, AjaxRequestAttributes attributes)
-
Methods inherited from class org.wicketstuff.Synchronizer
_getAppendScripts, _getPrependScripts, add, addNewChildVisitor, appendScript, getComponents, getRequestHandler, getSearchFor, isParentAddedInPartialPageRequestHandler, isRequestHandlerAjaxRequestTarget, prependScript, submit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.ajax.AjaxRequestTarget.IListener
onAfterRespond
-
-
-
-
Constructor Detail
-
DefaultSynchronizer
public DefaultSynchronizer(MarkupContainer parent, IPartialPageRequestHandler requestHandler)
-
-
Method Detail
-
onBeforeRespond
public void onBeforeRespond(Map<String,Component> map, AjaxRequestTarget target)
- Specified by:
onBeforeRespond
in interfaceAjaxRequestTarget.IListener
-
onAfterRespond
public void onAfterRespond(Map<String,Component> map, AjaxRequestTarget.IJavaScriptResponse response)
- Specified by:
onAfterRespond
in interfaceAjaxRequestTarget.IListener
-
updateAjaxAttributes
public void updateAjaxAttributes(AbstractDefaultAjaxBehavior behavior, AjaxRequestAttributes attributes)
- Specified by:
updateAjaxAttributes
in interfaceAjaxRequestTarget.IListener
-
-