Class Synchronizer

  • Direct Known Subclasses:
    DefaultSynchronizer

    public class Synchronizer
    extends Object
    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
    • Method Detail

      • _getPrependScripts

        public List<String> _getPrependScripts()
      • _getAppendScripts

        public List<String> _getAppendScripts()
      • isRequestHandlerAjaxRequestTarget

        public boolean isRequestHandlerAjaxRequestTarget()
      • 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 added
        searchFor - ,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