public class FilterableHierarchicalContainer
extends com.vaadin.data.util.HierarchicalContainer
implements com.vaadin.data.Container.ItemSetChangeListener
com.vaadin.data.util.IndexedContainer.ItemSetChangeEvent
com.vaadin.data.util.AbstractContainer.BaseItemSetChangeEvent, com.vaadin.data.util.AbstractContainer.BasePropertySetChangeEvent
com.vaadin.data.Container.Editor, com.vaadin.data.Container.Filter, com.vaadin.data.Container.Filterable, com.vaadin.data.Container.Hierarchical, com.vaadin.data.Container.Indexed, com.vaadin.data.Container.ItemSetChangeEvent, com.vaadin.data.Container.ItemSetChangeListener, com.vaadin.data.Container.ItemSetChangeNotifier, com.vaadin.data.Container.Ordered, com.vaadin.data.Container.PropertySetChangeEvent, com.vaadin.data.Container.PropertySetChangeListener, com.vaadin.data.Container.PropertySetChangeNotifier, com.vaadin.data.Container.SimpleFilterable, com.vaadin.data.Container.Sortable, com.vaadin.data.Container.Viewer
Constructor and Description |
---|
FilterableHierarchicalContainer(HierarchicalBeanContainer<?,?> container) |
Modifier and Type | Method and Description |
---|---|
boolean |
addContainerProperty(Object propertyId,
Class<?> type,
Object defaultValue) |
Object |
addItem() |
com.vaadin.data.Item |
addItem(Object itemId) |
boolean |
areChildrenAllowed(Object itemId) |
void |
containerItemSetChange(com.vaadin.data.Container.ItemSetChangeEvent event) |
boolean |
containsId(Object itemId) |
protected boolean |
doFilterContainer(boolean hasFilters) |
void |
fireItemUpdated() |
Collection<?> |
getChildren(Object itemId) |
com.vaadin.data.Property<?> |
getContainerProperty(Object itemId,
Object propertyId) |
Collection<String> |
getContainerPropertyIds() |
List<Object> |
getFilteredItemIds() |
com.vaadin.data.util.BeanItem<?> |
getItem(Object itemId) |
List<?> |
getItemIds() |
Object |
getParent(Object itemId) |
Class<?> |
getType(Object propertyId) |
protected com.vaadin.data.util.BeanItem<?> |
getUnfilteredItem(Object itemId) |
boolean |
hasChildren(Object itemId) |
boolean |
isRoot(Object itemId) |
boolean |
removeAllItems() |
boolean |
removeContainerProperty(Object propertyId) |
boolean |
removeItem(Object itemId) |
Collection<?> |
rootItemIds() |
boolean |
setChildrenAllowed(Object itemId,
boolean areChildrenAllowed) |
void |
setFilteredItemIds(List<Object> itemIds) |
boolean |
setParent(Object itemId,
Object newParentId) |
int |
size() |
doSort, fireItemSetChange, isIncludeParentsWhenFiltering, moveAfterSibling, passesFilters, removeItemRecursively, removeItemRecursively, setIncludeParentsWhenFiltering
addContainerFilter, addContainerFilter, addItemAfter, addItemAfter, addItemAt, addItemAt, addListener, addListener, addPropertySetChangeListener, addValueChangeListener, clone, fireItemAdded, fireItemSetChange, getContainerFilters, getItemSorter, getListeners, getSortableContainerPropertyIds, hasContainerFilters, registerNewItem, removeAllContainerFilters, removeContainerFilter, removeContainerFilters, removeListener, removeListener, removePropertySetChangeListener, removeValueChangeListener, setItemSorter, sort
addFilter, addItemSetChangeListener, addListener, filterAll, fireItemRemoved, firstItemId, getAllItemIds, getFilters, getIdByIndex, getItemIds, getSortablePropertyIds, getVisibleItemIds, indexOfId, internalAddItemAfter, internalAddItemAt, internalAddItemAtEnd, internalRemoveAllItems, internalRemoveItem, isFiltered, isFirstId, isLastId, isPropertyFiltered, lastItemId, nextItemId, prevItemId, removeAllFilters, removeFilter, removeFilters, removeItemSetChangeListener, removeListener, setAllItemIds, setFilters, sortContainer
fireContainerPropertySetChange, fireContainerPropertySetChange, getItemSetChangeListeners, getPropertySetChangeListeners, setItemSetChangeListeners, setPropertySetChangeListeners
public FilterableHierarchicalContainer(HierarchicalBeanContainer<?,?> container)
public com.vaadin.data.util.BeanItem<?> getItem(Object itemId)
public Collection<String> getContainerPropertyIds()
getContainerPropertyIds
in interface com.vaadin.data.Container
getContainerPropertyIds
in class com.vaadin.data.util.IndexedContainer
public List<?> getItemIds()
public com.vaadin.data.Property<?> getContainerProperty(Object itemId, Object propertyId)
getContainerProperty
in interface com.vaadin.data.Container
getContainerProperty
in class com.vaadin.data.util.IndexedContainer
public Class<?> getType(Object propertyId)
getType
in interface com.vaadin.data.Container
getType
in class com.vaadin.data.util.IndexedContainer
public int size()
public boolean containsId(Object itemId)
public com.vaadin.data.Item addItem(Object itemId) throws UnsupportedOperationException
addItem
in interface com.vaadin.data.Container
addItem
in class com.vaadin.data.util.HierarchicalContainer
UnsupportedOperationException
public Object addItem() throws UnsupportedOperationException
addItem
in interface com.vaadin.data.Container
addItem
in class com.vaadin.data.util.HierarchicalContainer
UnsupportedOperationException
public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException
addContainerProperty
in interface com.vaadin.data.Container
addContainerProperty
in class com.vaadin.data.util.IndexedContainer
UnsupportedOperationException
public boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException
removeContainerProperty
in interface com.vaadin.data.Container
removeContainerProperty
in class com.vaadin.data.util.IndexedContainer
UnsupportedOperationException
public boolean removeAllItems() throws UnsupportedOperationException
removeAllItems
in interface com.vaadin.data.Container
removeAllItems
in class com.vaadin.data.util.HierarchicalContainer
UnsupportedOperationException
public Collection<?> getChildren(Object itemId)
getChildren
in interface com.vaadin.data.Container.Hierarchical
getChildren
in class com.vaadin.data.util.HierarchicalContainer
public Object getParent(Object itemId)
getParent
in interface com.vaadin.data.Container.Hierarchical
getParent
in class com.vaadin.data.util.HierarchicalContainer
public Collection<?> rootItemIds()
rootItemIds
in interface com.vaadin.data.Container.Hierarchical
rootItemIds
in class com.vaadin.data.util.HierarchicalContainer
public boolean setParent(Object itemId, Object newParentId) throws UnsupportedOperationException
setParent
in interface com.vaadin.data.Container.Hierarchical
setParent
in class com.vaadin.data.util.HierarchicalContainer
UnsupportedOperationException
public boolean areChildrenAllowed(Object itemId)
areChildrenAllowed
in interface com.vaadin.data.Container.Hierarchical
areChildrenAllowed
in class com.vaadin.data.util.HierarchicalContainer
public boolean setChildrenAllowed(Object itemId, boolean areChildrenAllowed) throws UnsupportedOperationException
setChildrenAllowed
in interface com.vaadin.data.Container.Hierarchical
setChildrenAllowed
in class com.vaadin.data.util.HierarchicalContainer
UnsupportedOperationException
public boolean isRoot(Object itemId)
isRoot
in interface com.vaadin.data.Container.Hierarchical
isRoot
in class com.vaadin.data.util.HierarchicalContainer
public boolean hasChildren(Object itemId)
hasChildren
in interface com.vaadin.data.Container.Hierarchical
hasChildren
in class com.vaadin.data.util.HierarchicalContainer
public boolean removeItem(Object itemId) throws UnsupportedOperationException
removeItem
in interface com.vaadin.data.Container
removeItem
in interface com.vaadin.data.Container.Hierarchical
removeItem
in class com.vaadin.data.util.HierarchicalContainer
UnsupportedOperationException
protected boolean doFilterContainer(boolean hasFilters)
doFilterContainer
in class com.vaadin.data.util.HierarchicalContainer
protected com.vaadin.data.util.BeanItem<?> getUnfilteredItem(Object itemId)
getUnfilteredItem
in class com.vaadin.data.util.IndexedContainer
public void containerItemSetChange(com.vaadin.data.Container.ItemSetChangeEvent event)
containerItemSetChange
in interface com.vaadin.data.Container.ItemSetChangeListener
public void fireItemUpdated()
Copyright © 2016. All rights reserved.