|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.widget.core.client.grid.GridView<M>
com.sencha.gxt.widget.core.client.grid.GroupingView<M>
M - the model typepublic class GroupingView<M>
GridView that groups data based on a given grouping column.
| Nested Class Summary | |
|---|---|
static class |
GroupingView.GroupingData<M>
|
static interface |
GroupingView.GroupingViewAppearance
|
static interface |
GroupingView.GroupingViewStyle
|
static interface |
GroupingView.GroupSummaryTemplate<M>
|
| Nested classes/interfaces inherited from class com.sencha.gxt.widget.core.client.grid.GridView |
|---|
GridView.GridAppearance, GridView.GridDataTableStyles, GridView.GridStyles, GridView.GridTemplates |
| Constructor Summary | |
|---|---|
GroupingView()
|
|
GroupingView(GroupingView.GroupingViewAppearance groupAppearance)
|
|
| Method Summary | |
|---|---|
HandlerRegistration |
addCollapseHandler(CollapseItemEvent.CollapseItemHandler<java.util.List<M>> handler)
Adds a CollapseItemEvent.CollapseItemHandler handler for CollapseItemEvent
events. |
HandlerRegistration |
addExpandHandler(ExpandItemEvent.ExpandItemHandler<java.util.List<M>> handler)
Adds a ExpandItemEvent.ExpandItemHandler handler for ExpandItemEvent events. |
void |
collapseAllGroups()
Collapses all groups. |
void |
expandAllGroups()
Expands all groups. |
void |
groupBy(ColumnConfig<M,?> column)
|
boolean |
isEnabledNoGroups()
Returns true if the user can turn off grouping. |
boolean |
isEnableGroupingMenu()
Returns true if the grouping menu is enabled. |
boolean |
isExpanded(Element group)
Returns true if the group is expanded. |
boolean |
isShowGroupedColumn()
Returns true if the grouped column is visible. |
boolean |
isStartCollapsed()
Returns true if start collapsed is enabled. |
void |
setEnableGroupingMenu(boolean enableGroupingMenu)
True to enable the the grouping menu items in the header context menu (defaults to true). |
void |
setEnableNoGroups(boolean enableNoGroups)
True to enable the no groups menu item in the header context menu (defaults to true). |
void |
setShowGroupedColumn(boolean showGroupedColumn)
Sets whether the grouped column is visible (defaults to true). |
void |
setStartCollapsed(boolean startCollapsed)
Sets whether the groups should start collapsed (defaults to false). |
void |
toggleAllGroups(boolean expanded)
Toggles all groups. |
| Methods inherited from class com.sencha.gxt.widget.core.client.grid.GridView |
|---|
ensureVisible, findCell, findCellIndex, findRow, findRowIndex, focus, focusCell, focusRow, getAppearance, getAutoExpandColumn, getAutoExpandMax, getAutoExpandMin, getBody, getCell, getEditorParent, getEmptyText, getHeader, getRow, getRow, getRowBody, getRowBodyRowSpan, getScroller, getScrollState, getViewConfig, isAdjustForHScroll, isAutoFill, isColumnLines, isDeferUpdates, isEnableRowBody, isForceFit, isSelectableTarget, isShowDirtyCells, isSortingEnabled, isStripeRows, isTrackMouseOver, layout, refresh, scrollToTop, setAdjustForHScroll, setAutoExpandColumn, setAutoExpandMax, setAutoExpandMin, setAutoFill, setColumnLines, setDeferUpdates, setEmptyText, setEnableRowBody, setForceFit, setRowBodyRowSpan, setShowDirtyCells, setSortingEnabled, setStripeRows, setTrackMouseOver, setViewConfig |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupingView()
public GroupingView(GroupingView.GroupingViewAppearance groupAppearance)
| Method Detail |
|---|
public HandlerRegistration addCollapseHandler(CollapseItemEvent.CollapseItemHandler<java.util.List<M>> handler)
CollapseItemEvent.HasCollapseItemHandlersCollapseItemEvent.CollapseItemHandler handler for CollapseItemEvent
events.
addCollapseHandler in interface CollapseItemEvent.HasCollapseItemHandlers<java.util.List<M>>handler - the handler
public HandlerRegistration addExpandHandler(ExpandItemEvent.ExpandItemHandler<java.util.List<M>> handler)
ExpandItemEvent.HasExpandItemHandlersExpandItemEvent.ExpandItemHandler handler for ExpandItemEvent events.
addExpandHandler in interface ExpandItemEvent.HasExpandItemHandlers<java.util.List<M>>handler - the handler
public void collapseAllGroups()
public void expandAllGroups()
public void groupBy(ColumnConfig<M,?> column)
public boolean isEnabledNoGroups()
public boolean isEnableGroupingMenu()
public boolean isExpanded(Element group)
group - the group
public boolean isShowGroupedColumn()
public boolean isStartCollapsed()
public void setEnableGroupingMenu(boolean enableGroupingMenu)
enableGroupingMenu - true to enable the grouping menu itemspublic void setEnableNoGroups(boolean enableNoGroups)
enableNoGroups - true to enable no groups menu itempublic void setShowGroupedColumn(boolean showGroupedColumn)
showGroupedColumn - true to show the grouped columnpublic void setStartCollapsed(boolean startCollapsed)
startCollapsed - true to start collapsedpublic void toggleAllGroups(boolean expanded)
expanded - true to expand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||