diff options
Diffstat (limited to 'server/src/com/vaadin/data/util/BeanItem.java')
-rw-r--r-- | server/src/com/vaadin/data/util/BeanItem.java | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/server/src/com/vaadin/data/util/BeanItem.java b/server/src/com/vaadin/data/util/BeanItem.java index 4834fe4f89..49f5f95898 100644 --- a/server/src/com/vaadin/data/util/BeanItem.java +++ b/server/src/com/vaadin/data/util/BeanItem.java @@ -255,12 +255,13 @@ public class BeanItem<BT> extends PropertysetItem { } /** - * Adds a nested property to the item. + * Adds a nested property to the item. The property must not exist in the + * item already and must of form "field1.field2" where field2 is a field in + * the object referenced to by field1. If an intermediate property returns + * null, the property will return a null value * * @param nestedPropertyId - * property id to add. This property must not exist in the item - * already and must of of form "field1.field2" where field2 is a - * field in the object referenced to by field1 + * property id to add. */ public void addNestedProperty(String nestedPropertyId) { addItemProperty(nestedPropertyId, new NestedMethodProperty<Object>( @@ -268,27 +269,6 @@ public class BeanItem<BT> extends PropertysetItem { } /** - * Adds a nested property to the item. If the <code>nullBeansAllowed</code> - * flag is set to true, calling getValue of the added property will return - * null if the property or any of its intermediate getters returns null. If - * set to false, null values returned by intermediate getters will cause - * NullPointerException. The default value is false to ensure backwards - * compatibility. - * - * @param nestedPropertyId - * property id to add. This property must not exist in the item - * already and must of of form "field1.field2" where field2 is a - * field in the object referenced to by field1 - * @param nullBeansAllowed - * set true to allow null values from intermediate getters - */ - public void addNestedProperty(String nestedPropertyId, - boolean nullBeansAllowed) { - addItemProperty(nestedPropertyId, new NestedMethodProperty<Object>( - getBean(), nestedPropertyId, nullBeansAllowed)); - } - - /** * Gets the underlying JavaBean object. * * @return the bean object. |