public abstract class HierarchicalBeanContainer<K,T>
extends com.vaadin.v7.data.util.BeanContainer<K,T>
implements com.vaadin.v7.data.Container.Hierarchical
com.vaadin.v7.data.util.AbstractBeanContainer.BeanIdResolver<IDTYPE,BEANTYPE>, com.vaadin.v7.data.util.AbstractBeanContainer.PropertyBasedBeanIdResolver
com.vaadin.v7.data.util.AbstractInMemoryContainer.BaseItemAddEvent, com.vaadin.v7.data.util.AbstractInMemoryContainer.BaseItemRemoveEvent
com.vaadin.v7.data.util.AbstractContainer.BaseItemSetChangeEvent, com.vaadin.v7.data.util.AbstractContainer.BasePropertySetChangeEvent
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 and Description |
---|
HierarchicalBeanContainer(Class<? super T> type) |
Modifier and Type | Method and 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. |
addAll, addBean, addBeanAfter, addBeanAt, addItem, addItemAfter, addItemAt, setBeanIdProperty, setBeanIdResolver
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
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
fireContainerPropertySetChange, fireContainerPropertySetChange, fireItemSetChange, getItemSetChangeListeners, getListeners, getPropertySetChangeListeners, setItemSetChangeListeners, setPropertySetChangeListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
areChildrenAllowed, getChildren, getParent, removeItem, rootItemIds, setChildrenAllowed, setParent
public boolean hasChildren(Object key)
Container.Hierarchical.getChildren(Object)
.hasChildren
in interface com.vaadin.v7.data.Container.Hierarchical
public boolean isRoot(Object key)
Container.Hierarchical.getParent(Object)
returns null.isRoot
in interface com.vaadin.v7.data.Container.Hierarchical
public void fireItemSetChange()
fireItemSetChange()
as a public method.fireItemSetChange
in class com.vaadin.v7.data.util.AbstractContainer
Copyright © 2021. All rights reserved.