Author: ivaynberg
Date: Sat Sep 26 15:10:57 2009
New Revision: 819150

URL: http://svn.apache.org/viewvc?rev=819150&view=rev
Log:
WICKET-2489 cleanup
Issue: WICKET-2489

Modified:
    
wicket/trunk/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java

Modified: 
wicket/trunk/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java?rev=819150&r1=819149&r2=819150&view=diff
==============================================================================
--- 
wicket/trunk/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java 
(original)
+++ 
wicket/trunk/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java 
Sat Sep 26 15:10:57 2009
@@ -19,6 +19,7 @@
 import java.io.OutputStream;
 import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.Collection;
 import java.util.Collections;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -391,14 +392,13 @@
        }
 
        /**
-        * Return true, if the Component has already been added
+        * Returns an unmodifiable collection of all components added to this 
target
         * 
-        * @param component
-        * @return true, if already added
+        * @return unmodifiable collection of all components added to this 
target
         */
-       public final boolean isAdded(final Component component)
+       public final Collection<? extends Component> getComponents()
        {
-               return (null != 
markupIdToComponent.get(component.getMarkupId()));
+               return 
Collections.unmodifiableCollection(markupIdToComponent.values());
        }
 
        /**


Reply via email to