From 6f63e7e8f267f8eccb65c35d3da651e5619db4e9 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 8 Jan 2010 13:31:56 +0000 Subject: [PATCH] svn changeset:10648/svn branch:6.2 --- src/com/vaadin/data/Container.java | 34 ++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/src/com/vaadin/data/Container.java b/src/com/vaadin/data/Container.java index 226a4e0b09..5777bf2b05 100644 --- a/src/com/vaadin/data/Container.java +++ b/src/com/vaadin/data/Container.java @@ -541,6 +541,24 @@ public interface Container extends Serializable { * false if not (is a leaf) */ public boolean hasChildren(Object itemId); + + /** + *

+ * Removes the Item identified by ItemId from the + * Container. + *

+ * + *

+ * Note that this does not remove any children the item might have. + *

+ * + * @param itemId + * ID of the Item to remove + * @return true if the operation succeeded, + * false if not + */ + public boolean removeItem(Object itemId) + throws UnsupportedOperationException; } /** @@ -555,17 +573,15 @@ public interface Container extends Serializable { * visible in the container. * * When an {@link com.vaadin.data.Ordered} or - * {@link com.vaadin.data.Indexed} container is filtered, all - * operations of these interfaces should only use the filtered contents and - * the filtered indices to the container. + * {@link com.vaadin.data.Indexed} container is filtered, all operations of + * these interfaces should only use the filtered contents and the filtered + * indices to the container. * - * Adding items (if supported) to a filtered - * {@link com.vaadin.data.Ordered} or - * {@link com.vaadin.data.Indexed} container should insert them + * Adding items (if supported) to a filtered {@link com.vaadin.data.Ordered} + * or {@link com.vaadin.data.Indexed} container should insert them * immediately after the indicated visible item. The unfiltered position of - * items added at index 0, at index - * {@link com.vaadin.data.Container#size()} or at an undefined - * position is up to the implementation. + * items added at index 0, at index {@link com.vaadin.data.Container#size()} + * or at an undefined position is up to the implementation. * * @since 5.0 */ -- 2.39.5