public class DatasourceGroupTableItems<E extends Entity<K>,K> extends SortableDatasourceTableItems<E,K> implements GroupTableItems<E>
TableItems.ItemSetChangeEvent<T>, TableItems.Ordered<T>, TableItems.SelectedItemChangeEvent<T>, TableItems.Sortable<T>, TableItems.ValueChangeEvent<T>DataUnit.StateChangeEventdatasource, events, state| Constructor and Description |
|---|
DatasourceGroupTableItems(GroupDatasource<E,K> datasource) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsGroup(GroupInfo groupId)
Indicates that a group is contained in the groups tree
|
java.util.List<E> |
getChildItems(GroupInfo groupId) |
java.util.List<GroupInfo> |
getChildren(GroupInfo groupId) |
GroupDatasource<E,K> |
getGroupDatasource() |
java.util.Collection<?> |
getGroupItemIds(GroupInfo groupId) |
int |
getGroupItemsCount(GroupInfo groupId) |
java.util.List<GroupInfo> |
getGroupPath(E entity) |
java.util.Collection<?> |
getGroupProperties() |
java.lang.Object |
getGroupProperty(GroupInfo groupId) |
java.lang.Object |
getGroupPropertyValue(GroupInfo groupId) |
java.util.List<E> |
getOwnChildItems(GroupInfo groupId) |
GroupInfo |
getParentGroup(E entity) |
void |
groupBy(java.lang.Object[] properties)
Perform grouping by the list of properties
|
boolean |
hasChildren(GroupInfo groupId)
Indicates that group has nested groups
|
boolean |
hasGroups()
Indicated that a datasource has groups
|
java.util.List<GroupInfo> |
rootGroups() |
firstItemId, getSortableDatasource, isFirstId, isLastId, lastItemId, nextItemId, prevItemId, resetSortOrder, sortaddItemSetChangeListener, addSelectedItemChangeListener, addStateChangeListener, addValueChangeListener, aggregate, aggregateValues, containsId, datasourceCollectionChanged, datasourceItemChanged, datasourceItemPropertyChanged, datasourceStateChanged, getDatasource, getEntityMetaClass, getItem, getItemIds, getItems, getItemValue, getSelectedItem, getState, getType, setSelectedItem, setState, size, supportsProperty, updateItemclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenableSorting, resetSortOrder, sort, suppressSortingfirstItemId, isFirstId, isLastId, lastItemId, nextItemId, prevItemIdaddItemSetChangeListener, addSelectedItemChangeListener, addValueChangeListener, containsId, getItem, getItemIds, getItemNN, getItems, getItemValue, getType, size, supportsProperty, updateItemaddStateChangeListener, getStatepublic DatasourceGroupTableItems(GroupDatasource<E,K> datasource)
public GroupDatasource<E,K> getGroupDatasource()
public void groupBy(java.lang.Object[] properties)
GroupTableItemsgroupBy in interface GroupTableItems<E extends Entity<K>>public java.util.List<GroupInfo> rootGroups()
rootGroups in interface GroupTableItems<E extends Entity<K>>public boolean hasChildren(GroupInfo groupId)
GroupTableItemshasChildren in interface GroupTableItems<E extends Entity<K>>public java.util.List<GroupInfo> getChildren(GroupInfo groupId)
getChildren in interface GroupTableItems<E extends Entity<K>>public java.util.List<E> getOwnChildItems(GroupInfo groupId)
getOwnChildItems in interface GroupTableItems<E extends Entity<K>>public java.util.List<E> getChildItems(GroupInfo groupId)
getChildItems in interface GroupTableItems<E extends Entity<K>>@Nullable public GroupInfo getParentGroup(E entity)
getParentGroup in interface GroupTableItems<E extends Entity<K>>public java.util.List<GroupInfo> getGroupPath(E entity)
getGroupPath in interface GroupTableItems<E extends Entity<K>>public java.lang.Object getGroupProperty(GroupInfo groupId)
getGroupProperty in interface GroupTableItems<E extends Entity<K>>public java.lang.Object getGroupPropertyValue(GroupInfo groupId)
getGroupPropertyValue in interface GroupTableItems<E extends Entity<K>>public java.util.Collection<?> getGroupItemIds(GroupInfo groupId)
getGroupItemIds in interface GroupTableItems<E extends Entity<K>>public int getGroupItemsCount(GroupInfo groupId)
getGroupItemsCount in interface GroupTableItems<E extends Entity<K>>public boolean hasGroups()
GroupTableItemshasGroups in interface GroupTableItems<E extends Entity<K>>public java.util.Collection<?> getGroupProperties()
getGroupProperties in interface GroupTableItems<E extends Entity<K>>public boolean containsGroup(GroupInfo groupId)
GroupTableItemscontainsGroup in interface GroupTableItems<E extends Entity<K>>