Class HierarchicalBeanContainer<K,T>
- java.lang.Object
-
- com.vaadin.v7.data.util.AbstractContainer
-
- com.vaadin.v7.data.util.AbstractInMemoryContainer<IDTYPE,java.lang.String,com.vaadin.v7.data.util.BeanItem<BEANTYPE>>
-
- com.vaadin.v7.data.util.AbstractBeanContainer<IDTYPE,BEANTYPE>
-
- com.vaadin.v7.data.util.BeanContainer<K,T>
-
- org.opennms.features.topology.api.support.HierarchicalBeanContainer<K,T>
-
- All Implemented Interfaces:
com.vaadin.event.SerializableEventListener
,com.vaadin.v7.data.Container
,com.vaadin.v7.data.Container.Filterable
,com.vaadin.v7.data.Container.Hierarchical
,com.vaadin.v7.data.Container.Indexed
,com.vaadin.v7.data.Container.ItemSetChangeNotifier
,com.vaadin.v7.data.Container.Ordered
,com.vaadin.v7.data.Container.PropertySetChangeNotifier
,com.vaadin.v7.data.Container.SimpleFilterable
,com.vaadin.v7.data.Container.Sortable
,com.vaadin.v7.data.Property.ValueChangeListener
,java.io.Serializable
,java.util.EventListener
public abstract class HierarchicalBeanContainer<K,T> extends com.vaadin.v7.data.util.BeanContainer<K,T> implements com.vaadin.v7.data.Container.Hierarchical
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.v7.data.util.AbstractBeanContainer
com.vaadin.v7.data.util.AbstractBeanContainer.BeanIdResolver<IDTYPE extends java.lang.Object,BEANTYPE extends java.lang.Object>, com.vaadin.v7.data.util.AbstractBeanContainer.PropertyBasedBeanIdResolver
-
Nested classes/interfaces inherited from class com.vaadin.v7.data.util.AbstractInMemoryContainer
com.vaadin.v7.data.util.AbstractInMemoryContainer.BaseItemAddEvent, com.vaadin.v7.data.util.AbstractInMemoryContainer.BaseItemRemoveEvent
-
Nested classes/interfaces inherited from class com.vaadin.v7.data.util.AbstractContainer
com.vaadin.v7.data.util.AbstractContainer.BaseItemSetChangeEvent, com.vaadin.v7.data.util.AbstractContainer.BasePropertySetChangeEvent
-
Nested classes/interfaces inherited from interface com.vaadin.v7.data.Container
com.vaadin.v7.data.Container.Editor, com.vaadin.v7.data.Container.Filter, com.vaadin.v7.data.Container.Filterable, com.vaadin.v7.data.Container.Hierarchical, com.vaadin.v7.data.Container.Indexed, com.vaadin.v7.data.Container.ItemSetChangeEvent, com.vaadin.v7.data.Container.ItemSetChangeListener, com.vaadin.v7.data.Container.ItemSetChangeNotifier, com.vaadin.v7.data.Container.Ordered, com.vaadin.v7.data.Container.PropertySetChangeEvent, com.vaadin.v7.data.Container.PropertySetChangeListener, com.vaadin.v7.data.Container.PropertySetChangeNotifier, com.vaadin.v7.data.Container.SimpleFilterable, com.vaadin.v7.data.Container.Sortable, com.vaadin.v7.data.Container.Viewer
-
-
Constructor Summary
Constructors Constructor Description HierarchicalBeanContainer(java.lang.Class<? super T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fireItemSetChange()
ExposefireItemSetChange()
as a public method.boolean
hasChildren(java.lang.Object key)
This is a naive implementation of this method that just checks the size of the collection returned byContainer.Hierarchical.getChildren(Object)
.boolean
isRoot(java.lang.Object key)
This is a naive implementation of this method that just checks to see ifContainer.Hierarchical.getParent(Object)
returns null.-
Methods inherited from class com.vaadin.v7.data.util.BeanContainer
addAll, addBean, addBeanAfter, addBeanAt, addItem, addItemAfter, addItemAt, setBeanIdProperty, setBeanIdResolver
-
Methods inherited from class com.vaadin.v7.data.util.AbstractBeanContainer
addContainerFilter, addContainerFilter, addContainerProperty, addContainerProperty, addListener, addNestedContainerBean, addNestedContainerProperty, addPropertySetChangeListener, createBeanItem, createBeanPropertyResolver, getBeanIdResolver, getBeanType, getContainerFilters, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getItemSorter, getSortableContainerPropertyIds, getType, getUnfilteredItem, hasContainerFilters, registerNewItem, removeAllContainerFilters, removeAllItems, removeContainerFilter, removeContainerFilters, removeContainerProperty, removeItem, removeListener, removePropertySetChangeListener, resolveBeanId, setItemSorter, sort, valueChange
-
Methods inherited from class com.vaadin.v7.data.util.AbstractInMemoryContainer
addFilter, addItem, addItem, addItemAfter, addItemAfter, addItemAt, addItemAt, addItemSetChangeListener, addListener, containsId, doFilterContainer, doSort, filterAll, fireItemAdded, fireItemRemoved, fireItemsAdded, fireItemsRemoved, firstItemId, getAllItemIds, getFilteredItemIds, getFilters, getFirstVisibleItem, getIdByIndex, getItemIds, getSortablePropertyIds, getVisibleItemIds, indexOfId, internalAddItemAfter, internalAddItemAt, internalAddItemAtEnd, internalRemoveAllItems, internalRemoveItem, isFiltered, isFirstId, isLastId, isPropertyFiltered, lastItemId, nextItemId, passesFilters, prevItemId, removeAllFilters, removeFilter, removeFilters, removeItemSetChangeListener, removeListener, setAllItemIds, setFilteredItemIds, setFilters, size, sortContainer
-
Methods inherited from class com.vaadin.v7.data.util.AbstractContainer
fireContainerPropertySetChange, fireContainerPropertySetChange, fireItemSetChange, getItemSetChangeListeners, getListeners, getPropertySetChangeListeners, setItemSetChangeListeners, setPropertySetChangeListeners
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.v7.data.Container
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, size
-
-
-
-
Constructor Detail
-
HierarchicalBeanContainer
public HierarchicalBeanContainer(java.lang.Class<? super T> type)
-
-
Method Detail
-
hasChildren
public boolean hasChildren(java.lang.Object key)
This is a naive implementation of this method that just checks the size of the collection returned byContainer.Hierarchical.getChildren(Object)
.- Specified by:
hasChildren
in interfacecom.vaadin.v7.data.Container.Hierarchical
-
isRoot
public boolean isRoot(java.lang.Object key)
This is a naive implementation of this method that just checks to see ifContainer.Hierarchical.getParent(Object)
returns null.- Specified by:
isRoot
in interfacecom.vaadin.v7.data.Container.Hierarchical
-
fireItemSetChange
public void fireItemSetChange()
ExposefireItemSetChange()
as a public method.- Overrides:
fireItemSetChange
in classcom.vaadin.v7.data.util.AbstractContainer
-
-