aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-01-10 07:49:07 +0000
committerArtur Signell <artur.signell@itmill.com>2009-01-10 07:49:07 +0000
commit85de7975ccabacb182772a43bbd69a4f2db3e943 (patch)
tree878dfc37b79b4e24a036102934eb4e498a69c49d
parent1355dd0fc925a79ba4cf53de76d85155e820c89e (diff)
downloadvaadin-framework-85de7975ccabacb182772a43bbd69a4f2db3e943.tar.gz
vaadin-framework-85de7975ccabacb182772a43bbd69a4f2db3e943.zip
Fix for #2439 - Inconsistent JavaDoc for Hierarchical container
svn changeset:6488/svn branch:trunk
-rw-r--r--src/com/itmill/toolkit/data/Container.java15
-rw-r--r--src/com/itmill/toolkit/ui/Tree.java3
2 files changed, 8 insertions, 10 deletions
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 {
/**
* <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);
}
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 <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)
*/