public class NullTreeTableContainer extends com.vaadin.v7.data.util.ContainerHierarchicalWrapper implements TreeTableContainer, AggregationContainer, com.vaadin.v7.data.Container.Ordered
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
AggregationContainer.Context, AggregationContainer.Type
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Object,java.lang.String> |
captions |
static java.lang.String |
ERROR_MESSAGE |
protected java.util.Set<java.lang.Object> |
expanded |
protected java.lang.Object |
first |
protected java.util.LinkedList<java.lang.Object> |
inline |
Constructor and Description |
---|
NullTreeTableContainer(com.vaadin.v7.data.Container toBeWrapped) |
Modifier and Type | Method and Description |
---|---|
void |
addContainerPropertyAggregation(java.lang.Object propertyId,
AggregationContainer.Type type) |
java.lang.Object |
addItemAfter(java.lang.Object previousItemId) |
com.vaadin.v7.data.Item |
addItemAfter(java.lang.Object previousItemId,
java.lang.Object newItemId) |
protected void |
addToHierarchyWrapper(java.lang.Object itemId) |
java.util.Map<java.lang.Object,java.lang.Object> |
aggregate(AggregationContainer.Context context)
Perform aggregation and return map with formatted string values.
|
java.util.Map<java.lang.Object,java.lang.Object> |
aggregateValues(AggregationContainer.Context context)
Perform aggregation and return map with aggregation info and aggregation column type, i.e.
|
void |
collapseAll() |
void |
expandAll() |
protected void |
expandAll(java.util.Collection itemIds) |
java.lang.Object |
firstItemId() |
java.util.Collection |
getAggregationPropertyIds() |
protected java.util.LinkedList<java.lang.Object> |
getInlineChildren(java.lang.Object itemId) |
int |
getLevel(java.lang.Object itemId) |
java.util.Collection |
getSortableContainerPropertyIds() |
boolean |
isExpanded(java.lang.Object itemId) |
boolean |
isFirstId(java.lang.Object itemId) |
boolean |
isLastId(java.lang.Object itemId) |
java.lang.Object |
lastItemId() |
java.lang.Object |
nextItemId(java.lang.Object itemId) |
java.lang.Object |
prevItemId(java.lang.Object itemId) |
void |
removeContainerPropertyAggregation(java.lang.Object propertyId) |
protected void |
removeFromHierarchyWrapper(java.lang.Object itemId) |
void |
resetSortOrder() |
boolean |
setExpanded(java.lang.Object itemId) |
boolean |
setParent(java.lang.Object itemId,
java.lang.Object newParentId) |
int |
size() |
void |
sort(java.lang.Object[] propertyId,
boolean[] ascending) |
void |
updateHierarchicalWrapper() |
_children, _container, _hierarchical, addContainerProperty, addItem, addItem, addItemSetChangeListener, addListener, addListener, addPropertySetChangeListener, areChildrenAllowed, containsId, getChildren, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getParent, getType, hasChildren, isRoot, removeAllItems, removeContainerProperty, removeItem, removeItemRecursively, removeItemSetChangeListener, removeListener, removeListener, removePropertySetChangeListener, rootItemIds, setChildrenAllowed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final java.lang.String ERROR_MESSAGE
protected java.util.Set<java.lang.Object> expanded
protected java.util.LinkedList<java.lang.Object> inline
protected java.util.Map<java.lang.Object,java.lang.String> captions
protected java.lang.Object first
public NullTreeTableContainer(com.vaadin.v7.data.Container toBeWrapped)
public void updateHierarchicalWrapper()
updateHierarchicalWrapper
in class com.vaadin.v7.data.util.ContainerHierarchicalWrapper
protected void addToHierarchyWrapper(java.lang.Object itemId)
addToHierarchyWrapper
in class com.vaadin.v7.data.util.ContainerHierarchicalWrapper
protected void removeFromHierarchyWrapper(java.lang.Object itemId)
removeFromHierarchyWrapper
in class com.vaadin.v7.data.util.ContainerHierarchicalWrapper
public boolean setParent(java.lang.Object itemId, java.lang.Object newParentId)
setParent
in interface com.vaadin.v7.data.Container.Hierarchical
setParent
in class com.vaadin.v7.data.util.ContainerHierarchicalWrapper
public int size()
size
in interface com.vaadin.v7.data.Container
size
in class com.vaadin.v7.data.util.ContainerHierarchicalWrapper
public java.lang.Object nextItemId(java.lang.Object itemId)
nextItemId
in interface com.vaadin.v7.data.Container.Ordered
public java.lang.Object prevItemId(java.lang.Object itemId)
prevItemId
in interface com.vaadin.v7.data.Container.Ordered
public java.lang.Object firstItemId()
firstItemId
in interface com.vaadin.v7.data.Container.Ordered
public java.lang.Object lastItemId()
lastItemId
in interface com.vaadin.v7.data.Container.Ordered
public boolean isFirstId(java.lang.Object itemId)
isFirstId
in interface com.vaadin.v7.data.Container.Ordered
public boolean isLastId(java.lang.Object itemId)
isLastId
in interface com.vaadin.v7.data.Container.Ordered
public java.lang.Object addItemAfter(java.lang.Object previousItemId) throws java.lang.UnsupportedOperationException
addItemAfter
in interface com.vaadin.v7.data.Container.Ordered
java.lang.UnsupportedOperationException
public com.vaadin.v7.data.Item addItemAfter(java.lang.Object previousItemId, java.lang.Object newItemId) throws java.lang.UnsupportedOperationException
addItemAfter
in interface com.vaadin.v7.data.Container.Ordered
java.lang.UnsupportedOperationException
public int getLevel(java.lang.Object itemId)
getLevel
in interface TreeTableContainer
public boolean isExpanded(java.lang.Object itemId)
public boolean setExpanded(java.lang.Object itemId)
public void expandAll()
protected void expandAll(java.util.Collection itemIds)
public void collapseAll()
protected java.util.LinkedList<java.lang.Object> getInlineChildren(java.lang.Object itemId)
public void sort(java.lang.Object[] propertyId, boolean[] ascending)
sort
in interface com.vaadin.v7.data.Container.Sortable
public java.util.Collection getSortableContainerPropertyIds()
getSortableContainerPropertyIds
in interface com.vaadin.v7.data.Container.Sortable
public java.util.Collection getAggregationPropertyIds()
getAggregationPropertyIds
in interface AggregationContainer
public void addContainerPropertyAggregation(java.lang.Object propertyId, AggregationContainer.Type type)
addContainerPropertyAggregation
in interface AggregationContainer
public void removeContainerPropertyAggregation(java.lang.Object propertyId)
removeContainerPropertyAggregation
in interface AggregationContainer
public java.util.Map<java.lang.Object,java.lang.Object> aggregate(AggregationContainer.Context context)
AggregationContainer
aggregate
in interface AggregationContainer
context
- aggregation contextpublic java.util.Map<java.lang.Object,java.lang.Object> aggregateValues(AggregationContainer.Context context)
AggregationContainer
aggregateValues
in interface AggregationContainer
context
- aggregation contextpublic void resetSortOrder()
resetSortOrder
in interface TableSortableContainer