Author: ivaynberg
Date: Sat Sep 26 15:10:45 2009
New Revision: 819149
URL: http://svn.apache.org/viewvc?rev=819149&view=rev
Log:
WICKET-2489 cleanup
Issue: WICKET-2489
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
URL:
http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java?rev=819149&r1=819148&r2=819149&view=diff
==============================================================================
---
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
(original)
+++
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
Sat Sep 26 15:10:45 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;
@@ -387,14 +388,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());
}
/**