@Test public void testAddNestedContainerBeanAfterData() { BeanItemContainer<NestedMethodPropertyTest.Person> container = new BeanItemContainer<NestedMethodPropertyTest.Person>( NestedMethodPropertyTest.Person.class); NestedMethodPropertyTest.Person john = new NestedMethodPropertyTest.Person( "John", new Address("streetname", 12345)); container.addBean(john); container.addNestedContainerBean("address"); assertTrue(container.getContainerPropertyIds().contains( "address.street")); assertTrue(container.getItem(john).getItemPropertyIds() .contains("address.street")); assertEquals("streetname", container.getItem(john).getItemProperty("address.street") .getValue()); }
@Override public BeanItem<BEANTYPE> addBean(BEANTYPE bean) { return addItem(bean); }
BeanItemContainer extends
        AbstractBeanContainer<BEANTYPE, BEANTYPE> { @Override public BeanItem<BEANTYPE> addBean(BEANTYPE bean) { return addItem(bean); } }
BeanItemContainer extends
        AbstractBeanContainer<BEANTYPE, BEANTYPE> { @Override public BeanItem<BEANTYPE> addBean(BEANTYPE bean) { return addItem(bean); } BeanItemContainer(Class<? super BEANTYPE> type); @SuppressWarnings("unchecked") @Deprecated  BeanItemContainer(Collection<? extends BEANTYPE> collection);  BeanItemContainer(Class<? super BEANTYPE> type,
            Collection<? extends BEANTYPE> collection); }
BeanItemContainer extends
        AbstractBeanContainer<BEANTYPE, BEANTYPE> { @Override public BeanItem<BEANTYPE> addBean(BEANTYPE bean) { return addItem(bean); } BeanItemContainer(Class<? super BEANTYPE> type); @SuppressWarnings("unchecked") @Deprecated  BeanItemContainer(Collection<? extends BEANTYPE> collection);  BeanItemContainer(Class<? super BEANTYPE> type,
            Collection<? extends BEANTYPE> collection); @Override void addAll(Collection<? extends BEANTYPE> collection); @Override @SuppressWarnings("unchecked") BeanItem<BEANTYPE> addItemAfter(Object previousItemId,
            Object newItemId); @Override @SuppressWarnings("unchecked") BeanItem<BEANTYPE> addItemAt(int index, Object newItemId); @Override @SuppressWarnings("unchecked") BeanItem<BEANTYPE> addItem(Object itemId); @Override BeanItem<BEANTYPE> addBean(BEANTYPE bean); }
BeanItemContainer extends
        AbstractBeanContainer<BEANTYPE, BEANTYPE> { @Override public BeanItem<BEANTYPE> addBean(BEANTYPE bean) { return addItem(bean); } BeanItemContainer(Class<? super BEANTYPE> type); @SuppressWarnings("unchecked") @Deprecated  BeanItemContainer(Collection<? extends BEANTYPE> collection);  BeanItemContainer(Class<? super BEANTYPE> type,
            Collection<? extends BEANTYPE> collection); @Override void addAll(Collection<? extends BEANTYPE> collection); @Override @SuppressWarnings("unchecked") BeanItem<BEANTYPE> addItemAfter(Object previousItemId,
            Object newItemId); @Override @SuppressWarnings("unchecked") BeanItem<BEANTYPE> addItemAt(int index, Object newItemId); @Override @SuppressWarnings("unchecked") BeanItem<BEANTYPE> addItem(Object itemId); @Override BeanItem<BEANTYPE> addBean(BEANTYPE bean);  }