Package org.wicketstuff
Class Synchronizer
- java.lang.Object
-
- org.wicketstuff.Synchronizer
-
- Direct Known Subclasses:
DefaultSynchronizer
public class Synchronizer extends Object
Synchronizer basically adds components(repeater's items) and scripts to the associatedIPartialPageRequestHandler
after checking parent is not added to AjaxRequestTarget. If parent is added scripts and items are not added to the requesthandler- Author:
- Vineet Semwal
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Synchronizer.ChildVisitor
-
Constructor Summary
Constructors Constructor Description Synchronizer(MarkupContainer parent, IPartialPageRequestHandler requestHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
_getAppendScripts()
List<String>
_getPrependScripts()
void
add(Component... cs)
protected Boolean
addNewChildVisitor(MarkupContainer parent, Component searchFor)
void
appendScript(String... scripts)
List<Component>
getComponents()
IPartialPageRequestHandler
getRequestHandler()
MarkupContainer
getSearchFor()
boolean
isParentAddedInPartialPageRequestHandler()
checks if parent of repeater is added to the components added to A.R.T(ajaxrequesttarget)boolean
isRequestHandlerAjaxRequestTarget()
void
prependScript(String... scripts)
void
submit()
add script s and components to request handler
-
-
-
Constructor Detail
-
Synchronizer
public Synchronizer(MarkupContainer parent, IPartialPageRequestHandler requestHandler)
-
-
Method Detail
-
getSearchFor
public MarkupContainer getSearchFor()
-
getRequestHandler
public IPartialPageRequestHandler getRequestHandler()
-
isRequestHandlerAjaxRequestTarget
public boolean isRequestHandlerAjaxRequestTarget()
-
add
public void add(Component... cs)
-
appendScript
public void appendScript(String... scripts)
-
prependScript
public void prependScript(String... scripts)
-
isParentAddedInPartialPageRequestHandler
public boolean isParentAddedInPartialPageRequestHandler()
checks if parent of repeater is added to the components added to A.R.T(ajaxrequesttarget)- Returns:
- true if parent of repeatingview is added to A.R.T
-
addNewChildVisitor
protected Boolean addNewChildVisitor(MarkupContainer parent, Component searchFor)
- Parameters:
parent
- parent on which ChildVisitor is addedsearchFor
- ,searchFor is the component which visitor search for- Returns:
- true if searchFor is found
-
submit
public void submit()
add script s and components to request handler
-
-