ColumnGroupingManager¶
Definition¶
Extends¶
Extended By¶
None
Description¶
Manages the nested column groupings of a TablePanel or TreePanel. Get one with panel.getColumnGroupingManager().
Method Summary¶
| Owner | Name | Return Type | Description |
|---|---|---|---|
| ColumnGroupingManager | addToGroup(groupId, memberId) | Boolean | Puts a column or grouping into a grouping, creating it if needed. Returns false if that gives a member two parents or nests a grouping in itself. |
| ColumnGroupingManager | collapseAll() | Boolean | Collapses every collapsible grouping. |
| ColumnGroupingManager | collapseGroup(groupId) | Boolean | Collapses a grouping. Returns false if it cannot collapse or is already collapsed. |
| ColumnGroupingManager | expandAll() | Boolean | Expands every collapsible grouping. |
| ColumnGroupingManager | expandGroup(groupId) | Boolean | Expands a grouping. Returns false if it cannot collapse or is already expanded. |
| ColumnGroupingManager | getChildren(groupId) | List | Returns the ids of the columns and groupings a grouping shows when expanded, in display order. |
| Object | getClassName() | String | Returns the string name of this object's class type. |
| ColumnGroupingManager | getColumnsInGroup(groupId) | Set | Returns the ids of every column under a grouping, at any depth, in display order. |
| ColumnGroupingManager | getGroup(groupId) | ColumnGrouping | Returns the column grouping with this id, or null. |
| ColumnGroupingManager | getGroups() | Set | Returns the ids of every column grouping, nested ones included. |
| ColumnGroupingManager | getLastError() | String | Returns why the last change made here returned false, or null. |
| ColumnGroupingManager | getParentGroup(memberId) | String | Returns the id of the grouping directly containing a column or grouping, or null. |
| ColumnGroupingManager | isCollapsed(groupId) | Boolean | Returns true if the grouping is collapsed. |
| ColumnGroupingManager | removeFromGroup(groupId, memberId) | Boolean | Takes a column or nested grouping out of a grouping. Returns false if it was not in it. |
| ColumnGroupingManager | removeGroup(groupId) | Boolean | Removes a grouping; what it shows when expanded takes its place in its parent. No column is removed. |
| ColumnGroupingManager | setCollapsedMembers(groupId, memberIds) | Boolean | Sets what a grouping shows while collapsed, typically totals. An empty list makes it not collapsible. |
| ColumnGroupingManager | setGroupTitle(groupId, title) | Boolean | Sets a grouping's header text. Titles need not be unique. |
| ColumnGroupingManager | setIsCollapsable(groupId, collapsable) | Boolean | Makes a grouping collapsible or not. With no collapsed members set, it shows its first member while collapsed. |
| ColumnGroupingManager | setParentGroup(groupId, parentGroupId) | Boolean | Moves a grouping inside another one, or to the top level when parentGroupId is null. |
| Object | toJson() | String | Returns a string of a json representation of this object. |
Method Definitions¶
addToGroup(groupId,memberId)¶
Boolean ColumnGroupingManager::addToGroup(String groupId, String memberId)
Description¶
Puts a column or grouping into a grouping, creating it if needed. Returns false if that gives a member two parents or nests a grouping in itself.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| groupId | String | Id of the column grouping to add to |
| memberId | String | Id of a column, or of another column grouping |
collapseAll()¶
Boolean ColumnGroupingManager::collapseAll()
Description¶
Collapses every collapsible grouping.
collapseGroup(groupId)¶
Boolean ColumnGroupingManager::collapseGroup(String groupId)
Description¶
Collapses a grouping. Returns false if it cannot collapse or is already collapsed.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| groupId | String | Id of the column grouping |
expandAll()¶
Boolean ColumnGroupingManager::expandAll()
Description¶
Expands every collapsible grouping.
expandGroup(groupId)¶
Boolean ColumnGroupingManager::expandGroup(String groupId)
Description¶
Expands a grouping. Returns false if it cannot collapse or is already expanded.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| groupId | String | Id of the column grouping |
getChildren(groupId)¶
List ColumnGroupingManager::getChildren(String groupId)
Description¶
Returns the ids of the columns and groupings a grouping shows when expanded, in display order.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| groupId | String | Id of the column grouping |
getClassName()¶
Description¶
Returns the string name of this object's class type.
getColumnsInGroup(groupId)¶
Set ColumnGroupingManager::getColumnsInGroup(String groupId)
Description¶
Returns the ids of every column under a grouping, at any depth, in display order.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| groupId | String | Id of the column grouping |
getGroup(groupId)¶
ColumnGrouping ColumnGroupingManager::getGroup(String groupId)
Description¶
Returns the column grouping with this id, or null.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| groupId | String | Id of the column grouping |
getGroups()¶
Set ColumnGroupingManager::getGroups()
Description¶
Returns the ids of every column grouping, nested ones included.
getLastError()¶
String ColumnGroupingManager::getLastError()
Description¶
Returns why the last change made here returned false, or null.
getParentGroup(memberId)¶
String ColumnGroupingManager::getParentGroup(String memberId)
Description¶
Returns the id of the grouping directly containing a column or grouping, or null.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| memberId | String | Id of a column or column grouping |
isCollapsed(groupId)¶
Boolean ColumnGroupingManager::isCollapsed(String groupId)
Description¶
Returns true if the grouping is collapsed.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| groupId | String | Id of the column grouping |
removeFromGroup(groupId,memberId)¶
Boolean ColumnGroupingManager::removeFromGroup(String groupId, String memberId)
Description¶
Takes a column or nested grouping out of a grouping. Returns false if it was not in it.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| groupId | String | Id of the column grouping |
| memberId | String | Id of the column or nested grouping to take out |
removeGroup(groupId)¶
Boolean ColumnGroupingManager::removeGroup(String groupId)
Description¶
Removes a grouping; what it shows when expanded takes its place in its parent. No column is removed.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| groupId | String | Id of the column grouping |
setCollapsedMembers(groupId,memberIds)¶
Boolean ColumnGroupingManager::setCollapsedMembers(String groupId, List memberIds)
Description¶
Sets what a grouping shows while collapsed, typically totals. An empty list makes it not collapsible.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| groupId | String | Id of the column grouping |
| memberIds | List | Ids of columns or nested groupings to show while collapsed |
setGroupTitle(groupId,title)¶
Boolean ColumnGroupingManager::setGroupTitle(String groupId, String title)
Description¶
Sets a grouping's header text. Titles need not be unique.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| groupId | String | Id of the column grouping |
| title | String | New title |
setIsCollapsable(groupId,collapsable)¶
Boolean ColumnGroupingManager::setIsCollapsable(String groupId, Boolean collapsable)
Description¶
Makes a grouping collapsible or not. With no collapsed members set, it shows its first member while collapsed.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| groupId | String | Id of the column grouping |
| collapsable | Boolean | true to allow collapsing |
setParentGroup(groupId,parentGroupId)¶
Boolean ColumnGroupingManager::setParentGroup(String groupId, String parentGroupId)
Description¶
Moves a grouping inside another one, or to the top level when parentGroupId is null.
Parameter Definition¶
| Name | Type | Description |
|---|---|---|
| groupId | String | Id of the column grouping to move |
| parentGroupId | String | Id of the new parent grouping, or null for top level |
toJson()¶
Description¶
Returns a string of a json representation of this object.