/** * Constructs a {@code BeanItemContainer} and adds the given beans to it. * * @param type * the type of the beans that will be added to the container. * @param collection * a {@link Collection} of beans (can be empty or null). * @throws IllegalArgumentException * If {@code type} is null */ public BeanItemContainer(Class<? super BEANTYPE> type, Collection<? extends BEANTYPE> collection) throws IllegalArgumentException { super(type); super.setBeanIdResolver(new IdentityBeanIdResolver<BEANTYPE>()); if (collection != null) { addAll(collection); } }
/** * Reloads the configuration. */ public void reloadSurveillanceViews() { m_beanItemContainer.removeAllItems(); m_beanItemContainer.addAll(SurveillanceViewProvider.getInstance().getSurveillanceViewConfiguration().getViews()); } }