From: Artur Signell Date: Sat, 10 Jan 2009 07:49:07 +0000 (+0000) Subject: Fix for #2439 - Inconsistent JavaDoc for Hierarchical container X-Git-Tag: 6.7.0.beta1~3366 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=85de7975ccabacb182772a43bbd69a4f2db3e943;p=vaadin-framework.git Fix for #2439 - Inconsistent JavaDoc for Hierarchical container svn changeset:6488/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/data/Container.java b/src/com/itmill/toolkit/data/Container.java index d21efd4813..97a7a4fc5e 100644 --- a/src/com/itmill/toolkit/data/Container.java +++ b/src/com/itmill/toolkit/data/Container.java @@ -466,7 +466,7 @@ public interface Container { throws UnsupportedOperationException; /** - * Tests if the Item with given ID can have any children. + * Tests if the Item with given ID can have children. * * @param itemId * ID of the Item in the container whose child capability is @@ -523,10 +523,9 @@ public interface Container { /** *

- * Tests if the Item specified with itemId has any child - * Items, that is, is it a leaf Item. The - * {@link #getChildren(Object itemId)}method always returns - * null for leaf Items. + * Tests if the Item specified with itemId has child + * Items or if it is a leaf. The {@link #getChildren(Object itemId)} + * method always returns null for leaf Items. *

* *

@@ -536,9 +535,9 @@ public interface Container { * . * * @param itemId - * ID of the Item whose leaf status is to be tested - * @return true if the specified Item is a leaf, - * false if not + * ID of the Item to be tested + * @return true if the specified Item has children, + * false if not (is a leaf) */ public boolean hasChildren(Object itemId); } diff --git a/src/com/itmill/toolkit/ui/Tree.java b/src/com/itmill/toolkit/ui/Tree.java index c43033da9c..eb26645e67 100644 --- a/src/com/itmill/toolkit/ui/Tree.java +++ b/src/com/itmill/toolkit/ui/Tree.java @@ -617,8 +617,7 @@ public class Tree extends AbstractSelect implements Container.Hierarchical, } /** - * Tests if the Item specified with itemId has any child Items, - * that is, is it a leaf Item. + * Tests if the Item specified with itemId has child Items. * * @see com.itmill.toolkit.data.Container.Hierarchical#hasChildren(Object) */