Class 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, Serializable, 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 Object,​BEANTYPE extends 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
      • Nested classes/interfaces inherited from interface com.vaadin.v7.data.Container.Indexed

        com.vaadin.v7.data.Container.Indexed.ItemAddEvent, com.vaadin.v7.data.Container.Indexed.ItemRemoveEvent
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void fireItemSetChange()
      Expose fireItemSetChange() as a public method.
      boolean hasChildren​(Object key)
      This is a naive implementation of this method that just checks the size of the collection returned by Container.Hierarchical.getChildren(Object).
      boolean isRoot​(Object key)
      This is a naive implementation of this method that just checks to see if Container.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 interface com.vaadin.v7.data.Container

        addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, size
      • Methods inherited from interface com.vaadin.v7.data.Container.Hierarchical

        areChildrenAllowed, getChildren, getParent, removeItem, rootItemIds, setChildrenAllowed, setParent
      • Methods inherited from interface com.vaadin.v7.data.Container.Ordered

        addItemAfter, addItemAfter, firstItemId, isFirstId, isLastId, lastItemId, nextItemId, prevItemId
    • Constructor Detail

      • HierarchicalBeanContainer

        public HierarchicalBeanContainer​(Class<? super T> type)
    • Method Detail

      • hasChildren

        public boolean hasChildren​(Object key)
        This is a naive implementation of this method that just checks the size of the collection returned by Container.Hierarchical.getChildren(Object).
        Specified by:
        hasChildren in interface com.vaadin.v7.data.Container.Hierarchical
      • isRoot

        public boolean isRoot​(Object key)
        This is a naive implementation of this method that just checks to see if Container.Hierarchical.getParent(Object) returns null.
        Specified by:
        isRoot in interface com.vaadin.v7.data.Container.Hierarchical
      • fireItemSetChange

        public void fireItemSetChange()
        Expose fireItemSetChange() as a public method.
        Overrides:
        fireItemSetChange in class com.vaadin.v7.data.util.AbstractContainer