@Test public void testOverridingProperties() { BeanItem<MyClass2> item = new BeanItem<MyClass2>(new MyClass2("bean2")); Collection<?> itemPropertyIds = item.getItemPropertyIds(); Assert.assertEquals(6, itemPropertyIds.size()); Assert.assertTrue(MyClass2.class.equals(item.getBean().getClass())); Assert.assertFalse(item.getItemProperty("name2").isReadOnly()); }
public BT getBean() { return bean; }
BeanItem extends PropertysetItem { public BT getBean() { return bean; } }
BeanItem extends PropertysetItem { public BT getBean() { return bean; } BeanItem(BT bean);  BeanItem(BT bean, Class<BT> beanClass);   BeanItem(BT bean,
            Map<String, VaadinPropertyDescriptor<BT>> propertyDescriptors);  BeanItem(BT bean, Collection<?> propertyIds);  BeanItem(BT bean, String... propertyIds); }
BeanItem extends PropertysetItem { public BT getBean() { return bean; } BeanItem(BT bean);  BeanItem(BT bean, Class<BT> beanClass);   BeanItem(BT bean,
            Map<String, VaadinPropertyDescriptor<BT>> propertyDescriptors);  BeanItem(BT bean, Collection<?> propertyIds);  BeanItem(BT bean, String... propertyIds); void expandProperty(String propertyId, String... subPropertyIds); void addNestedProperty(String nestedPropertyId); BT getBean(); }
BeanItem extends PropertysetItem { public BT getBean() { return bean; } BeanItem(BT bean);  BeanItem(BT bean, Class<BT> beanClass);   BeanItem(BT bean,
            Map<String, VaadinPropertyDescriptor<BT>> propertyDescriptors);  BeanItem(BT bean, Collection<?> propertyIds);  BeanItem(BT bean, String... propertyIds); void expandProperty(String propertyId, String... subPropertyIds); void addNestedProperty(String nestedPropertyId); BT getBean();  }