@Test public void testRemoveContainerProperty() { BeanItemContainer<Person> container = new BeanItemContainer<Person>( Person.class); Person john = new Person("John"); container.addBean(john); Assert.assertEquals("John", container .getContainerProperty(john, "name").getValue()); Assert.assertTrue(container.removeContainerProperty("name")); Assert.assertNull(container.getContainerProperty(john, "name")); Assert.assertNotNull(container.getItem(john)); Assert.assertNull(container.getItem(john).getItemProperty("name")); }
@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);  }