public class EmptyGroupTableItems<E extends Entity> extends EmptyTableItems<E> implements GroupTableItems<E>
TableItems.ItemSetChangeEvent<T>, TableItems.Ordered<T>, TableItems.SelectedItemChangeEvent<T>, TableItems.Sortable<T>, TableItems.ValueChangeEvent<T>DataUnit.StateChangeEventmetaClass| Constructor and Description |
|---|
EmptyGroupTableItems(MetaClass metaClass) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsGroup(GroupInfo groupId)
Indicates that a group is contained in the groups tree
|
java.lang.Object |
firstItemId() |
java.util.List<E> |
getChildItems(GroupInfo groupId) |
java.util.List<GroupInfo> |
getChildren(GroupInfo groupId) |
java.util.Collection<?> |
getGroupItemIds(GroupInfo groupId) |
int |
getGroupItemsCount(GroupInfo groupId) |
java.util.List<GroupInfo> |
getGroupPath(E item) |
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 item) |
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
|
boolean |
isFirstId(java.lang.Object itemId)
Tests if the Item corresponding to the given Item ID is the first item.
|
boolean |
isLastId(java.lang.Object itemId)
Tests if the item corresponding to the given item ID is the last item.
|
java.lang.Object |
lastItemId() |
java.lang.Object |
nextItemId(java.lang.Object itemId)
Gets the ID of the item following the Item that corresponds to
itemId. |
java.lang.Object |
prevItemId(java.lang.Object itemId)
Gets the ID of the item preceding the item that corresponds to
itemId. |
void |
resetSortOrder()
Resets sort order.
|
java.util.List<GroupInfo> |
rootGroups() |
void |
sort(java.lang.Object[] propertyId,
boolean[] ascending)
Sorts data.
|
addItemSetChangeListener, addSelectedItemChangeListener, addStateChangeListener, addValueChangeListener, containsId, getEntityMetaClass, getItem, getItemIds, getItems, getItemValue, getSelectedItem, getState, getType, setSelectedItem, size, supportsProperty, updateItemclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenableSorting, suppressSortingaddItemSetChangeListener, addSelectedItemChangeListener, addValueChangeListener, containsId, getItem, getItemIds, getItemNN, getItems, getItemValue, getType, size, supportsProperty, updateItemaddStateChangeListener, getStatepublic EmptyGroupTableItems(MetaClass metaClass)
public void groupBy(java.lang.Object[] properties)
GroupTableItemsgroupBy in interface GroupTableItems<E extends Entity>public java.util.List<GroupInfo> rootGroups()
rootGroups in interface GroupTableItems<E extends Entity>public boolean hasChildren(GroupInfo groupId)
GroupTableItemshasChildren in interface GroupTableItems<E extends Entity>public java.util.List<GroupInfo> getChildren(GroupInfo groupId)
getChildren in interface GroupTableItems<E extends Entity>public java.util.List<E> getOwnChildItems(GroupInfo groupId)
getOwnChildItems in interface GroupTableItems<E extends Entity>public java.util.List<E> getChildItems(GroupInfo groupId)
getChildItems in interface GroupTableItems<E extends Entity>@Nullable public GroupInfo getParentGroup(E item)
getParentGroup in interface GroupTableItems<E extends Entity>public java.util.List<GroupInfo> getGroupPath(E item)
getGroupPath in interface GroupTableItems<E extends Entity>public java.lang.Object getGroupProperty(GroupInfo groupId)
getGroupProperty in interface GroupTableItems<E extends Entity>public java.lang.Object getGroupPropertyValue(GroupInfo groupId)
getGroupPropertyValue in interface GroupTableItems<E extends Entity>public java.util.Collection<?> getGroupItemIds(GroupInfo groupId)
getGroupItemIds in interface GroupTableItems<E extends Entity>public int getGroupItemsCount(GroupInfo groupId)
getGroupItemsCount in interface GroupTableItems<E extends Entity>public boolean hasGroups()
GroupTableItemshasGroups in interface GroupTableItems<E extends Entity>public java.util.Collection<?> getGroupProperties()
getGroupProperties in interface GroupTableItems<E extends Entity>public boolean containsGroup(GroupInfo groupId)
GroupTableItemscontainsGroup in interface GroupTableItems<E extends Entity>public java.lang.Object nextItemId(java.lang.Object itemId)
TableItems.OrdereditemId.nextItemId in interface TableItems.Ordered<E extends Entity>nextItemId in class EmptyTableItems<E extends Entity>itemId - item idnullpublic java.lang.Object prevItemId(java.lang.Object itemId)
TableItems.OrdereditemId.prevItemId in interface TableItems.Ordered<E extends Entity>prevItemId in class EmptyTableItems<E extends Entity>itemId - item idnullpublic java.lang.Object firstItemId()
firstItemId in interface TableItems.Ordered<E extends Entity>firstItemId in class EmptyTableItems<E extends Entity>public java.lang.Object lastItemId()
lastItemId in interface TableItems.Ordered<E extends Entity>lastItemId in class EmptyTableItems<E extends Entity>public boolean isFirstId(java.lang.Object itemId)
TableItems.OrderedisFirstId in interface TableItems.Ordered<E extends Entity>isFirstId in class EmptyTableItems<E extends Entity>itemId - item idtrue if the item is first visible item, false if notpublic boolean isLastId(java.lang.Object itemId)
TableItems.OrderedisLastId in interface TableItems.Ordered<E extends Entity>isLastId in class EmptyTableItems<E extends Entity>itemId - item idtrue if the item is last visible item in the, false if notpublic void sort(java.lang.Object[] propertyId,
boolean[] ascending)
TableItems.Sortablesort in interface TableItems.Sortable<E extends Entity>sort in class EmptyTableItems<E extends Entity>propertyId - id of propertyascending - asc / desc flagspublic void resetSortOrder()
TableItems.SortableresetSortOrder in interface TableItems.Sortable<E extends Entity>resetSortOrder in class EmptyTableItems<E extends Entity>