Package org.wicketstuff
Class Synchronizer
java.lang.Object
org.wicketstuff.Synchronizer
- Direct Known Subclasses:
DefaultSynchronizer
Synchronizer basically adds components(repeater's items) and scripts to the associated
IPartialPageRequestHandler
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
-
Constructor Summary
ConstructorDescriptionSynchronizer
(MarkupContainer parent, IPartialPageRequestHandler requestHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected Boolean
addNewChildVisitor
(MarkupContainer parent, Component searchFor) void
appendScript
(String... scripts) boolean
checks if parent of repeater is added to the components added to A.R.T(ajaxrequesttarget)boolean
void
prependScript
(String... scripts) void
submit()
add script s and components to request handler
-
Constructor Details
-
Synchronizer
-
-
Method Details
-
_getPrependScripts
-
_getAppendScripts
-
getComponents
-
getSearchFor
-
getRequestHandler
-
isRequestHandlerAjaxRequestTarget
public boolean isRequestHandlerAjaxRequestTarget() -
add
-
appendScript
-
prependScript
-
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
- 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
-