Author: ivaynberg
Date: Thu Apr 19 12:42:09 2007
New Revision: 530527

URL: http://svn.apache.org/viewvc?view=rev&rev=530527
Log:
added util method

Modified:
    
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java

Modified: 
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java?view=diff&rev=530527&r1=530526&r2=530527
==============================================================================
--- 
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
 (original)
+++ 
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
 Thu Apr 19 12:42:09 2007
@@ -286,6 +286,27 @@
        }
 
        /**
+        * Visits all children of the specified parent container and adds them 
to
+        * the target if they are of same type as <code>childCriteria</code>
+        * 
+        * @param parent
+        * @param childCriteria
+        */
+       public final void addChildren(MarkupContainer parent, Class 
childCriteria)
+       {
+               parent.visitChildren(childCriteria, new Component.IVisitor()
+               {
+
+                       public Object component(Component component)
+                       {
+                               addComponent(component);
+                               return CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
+                       }
+
+               });
+       }
+
+       /**
         * Adds a component to the list of components to be rendered
         * 
         * @param component


Reply via email to