]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #2439 - Inconsistent JavaDoc for Hierarchical container
authorArtur Signell <artur.signell@itmill.com>
Sat, 10 Jan 2009 07:49:07 +0000 (07:49 +0000)
committerArtur Signell <artur.signell@itmill.com>
Sat, 10 Jan 2009 07:49:07 +0000 (07:49 +0000)
svn changeset:6488/svn branch:trunk

src/com/itmill/toolkit/data/Container.java
src/com/itmill/toolkit/ui/Tree.java

index d21efd48135ea4c2c3157019a8ca14b98d27adef..97a7a4fc5e72377ef4d8fc53802fc19551b42a49 100644 (file)
@@ -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 {
 
         /**
          * <p>
-         * Tests if the Item specified with <code>itemId</code> has any child
-         * Items, that is, is it a leaf Item. The
-         * {@link #getChildren(Object itemId)}method always returns
-         * <code>null</code> for leaf Items.
+         * Tests if the Item specified with <code>itemId</code> has child
+         * Items or if it is a leaf. The {@link #getChildren(Object itemId)}
+         * method always returns <code>null</code> for leaf Items.
          * </p>
          * 
          * <p>
@@ -536,9 +535,9 @@ public interface Container {
          * .
          * 
          * @param itemId
-         *            ID of the Item whose leaf status is to be tested
-         * @return <code>true</code> if the specified Item is a leaf,
-         *         <code>false</code> if not
+         *            ID of the Item to be tested
+         * @return <code>true</code> if the specified Item has children,
+         *         <code>false</code> if not (is a leaf)
          */
         public boolean hasChildren(Object itemId);
     }
index c43033da9c084f9f82f98d07fd7c1fc5eef4ccb1..eb26645e679a09c1629d1d34fbdd16f50f28bc41 100644 (file)
@@ -617,8 +617,7 @@ public class Tree extends AbstractSelect implements Container.Hierarchical,
     }
 
     /**
-     * Tests if the Item specified with <code>itemId</code> has any child Items,
-     * that is, is it a leaf Item.
+     * Tests if the Item specified with <code>itemId</code> has child Items.
      * 
      * @see com.itmill.toolkit.data.Container.Hierarchical#hasChildren(Object)
      */