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.StateChangeEvent
datasource, 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, sort
addItemSetChangeListener, addSelectedItemChangeListener, addStateChangeListener, addValueChangeListener, aggregate, aggregateValues, containsId, datasourceCollectionChanged, datasourceItemChanged, datasourceItemPropertyChanged, datasourceStateChanged, getDatasource, getEntityMetaClass, getItem, getItemIds, getItems, getItemValue, getSelectedItem, getState, getType, setSelectedItem, setState, size, supportsProperty, updateItem
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enableSorting, resetSortOrder, sort, suppressSorting
firstItemId, isFirstId, isLastId, lastItemId, nextItemId, prevItemId
addItemSetChangeListener, addSelectedItemChangeListener, addValueChangeListener, containsId, getItem, getItemIds, getItemNN, getItems, getItemValue, getType, size, supportsProperty, updateItem
addStateChangeListener, getState
public DatasourceGroupTableItems(GroupDatasource<E,K> datasource)
public GroupDatasource<E,K> getGroupDatasource()
public void groupBy(java.lang.Object[] properties)
GroupTableItems
groupBy
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)
GroupTableItems
hasChildren
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()
GroupTableItems
hasGroups
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)
GroupTableItems
containsGroup
in interface GroupTableItems<E extends Entity<K>>