com.extjs.gxt.ui.client.widget.grid
Class GroupSummaryView

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseObservable
      extended by com.extjs.gxt.ui.client.widget.grid.GridView
          extended by com.extjs.gxt.ui.client.widget.grid.GroupingView
              extended by com.extjs.gxt.ui.client.widget.grid.GroupSummaryView
All Implemented Interfaces:
Observable

public class GroupSummaryView
extends GroupingView

A GroupingView with support for a summary row.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.grid.GroupingView
GroupingView.GroupingViewImages
 
Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.grid.GridView
GridView.GridViewImages
 
Field Summary
protected  Template cellTpl
           
protected  Template rowTpl
           
 
Fields inherited from class com.extjs.gxt.ui.client.widget.grid.GroupingView
enableGrouping, isUpdating, map
 
Fields inherited from class com.extjs.gxt.ui.client.widget.grid.GridView
activeHdIndex, autoFill, borderWidth, cm, columnListener, deferEmptyText, ds, el, emptyText, enableHdMenu, enableRowBody, focusEl, focusEnabled, footer, forceFit, grid, header, headerColumnIndex, headerDisabled, images, innerHd, lastViewWidth, listener, mainBody, mainHd, mainWrap, overRow, preventScrollToTopOnRefresh, scroller, scrollOffset, selectable, sortState, splitterWidth, templates, userResized, vbar, viewConfig, widgetList
 
Constructor Summary
GroupSummaryView()
           
 
Method Summary
protected  java.util.Map<java.lang.String,java.lang.Number> calculate(java.util.List<ModelData> models, java.util.List<ColumnData> cs)
           
protected  void doAllWidths(java.util.List<java.lang.Integer> ws, int tw)
           
protected  void doGroupEnd(java.lang.StringBuilder buf, GroupColumnData g, java.util.List<ColumnData> cs, int colCount)
           
protected  void doWidth(int col, int w, int tw)
           
 El getSummaryNode(com.google.gwt.dom.client.Element g)
          Returns the summary node element.
protected  void initTemplates()
           
 boolean isSummaryVisible()
          Returns true if summaries are visible.
protected  void onRemove(ListStore<ModelData> ds, ModelData m, int index, boolean isUpdate)
           
protected  void onUpdate(ListStore<ModelData> store, ModelData model)
           
protected  void refreshSummary(java.lang.String groupField, java.lang.String group)
           
protected  java.lang.String renderSummary(java.util.Map<java.lang.String,java.lang.Number> data, java.util.List<ColumnData> cs)
           
protected  void templateOnAllColumnWidthsUpdated(java.util.List<java.lang.Integer> ws, int tw)
           
protected  void templateOnColumnHiddenUpdated(int col, boolean hidden, int tw)
           
protected  void templateOnColumnWidthUpdated(int col, int w, int tw)
           
 void toggleSummaries(boolean visible)
          Toggles the summary information visibility.
 
Methods inherited from class com.extjs.gxt.ui.client.widget.grid.GroupingView
collapseAllGroups, createContextMenu, doGroupStart, doRender, expandAllGroups, findGroup, getGroup, getGroupField, getGroupId, getGroupRenderer, getGroupRow, getGroupRowCount, getGroupRows, getGroups, getImages, getRows, init, initData, isEnableGroupingMenu, isEnableNoGroups, isExpanded, isShowGroupedColumn, isStartCollapsed, onAdd, onGroupSelect, onMouseDown, onShowGroupsClick, refreshRow, renderRows, setEnableGroupingMenu, setEnableNoGroups, setGroupRenderer, setShowGroupedColumn, setStartCollapsed, toggleAllGroups, toggleGroup
 
Methods inherited from class com.extjs.gxt.ui.client.widget.grid.GridView
addRowStyle, afterRender, applyEmptyText, autoExpand, calculateVBar, createComponentEvent, detachWidget, detachWidgets, doAttach, doDetach, doSort, ensureVisible, findCell, findCellIndex, findRow, findRowIndex, fitColumns, fly, focusCell, focusGrid, focusRow, getBody, getCell, getCellIndex, getCellSelectorDepth, getColumnData, getColumnStyle, getColumnWidth, getEditorParent, getEmptyText, getHeader, getHeaderCell, getOffsetWidth, getRenderedValue, getRow, getRow, getRowSelectorDepth, getScrollAdjust, getScroller, getScrollState, getSortState, getTotalWidth, getViewConfig, getWidget, getWidgetCell, handleComponentEvent, hasRows, initElements, initListeners, initUI, insertRows, isAdjustForHScroll, isAutoFill, isForceFit, isShowDirtyCells, isShowInvalidCells, isSortingEnabled, layout, layout, newColumnHeader, notifyHide, notifyShow, onBeforeDataChanged, onCellDeselect, onCellSelect, onClear, onClick, onColumnMove, onColumnSplitterMoved, onColumnWidthChange, onDataChanged, onHeaderChange, onHeaderClick, onHiddenChange, onHighlightRow, onRowDeselect, onRowOut, onRowOver, onRowSelect, prepareData, processRows, refresh, removeRow, removeRowStyle, render, renderFooter, renderHeader, renderUI, renderWidgets, resize, restoreScroll, scrollToTop, setAdjustForHScroll, setAutoFill, setCellSelectorDepth, setEmptyText, setForceFit, setRowSelectorDepth, setShowDirtyCells, setShowInvalidCells, setSortingEnabled, setViewConfig, stopEditing, syncHeaderScroll, syncHScroll, syncScroll, templateAfterMove, templateOnLayout, templateUpdateColumnText, updateAllColumnWidths, updateColumnHidden, updateColumnWidth, updateHeaderSortState, updateSortIcon
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rowTpl

protected Template rowTpl

cellTpl

protected Template cellTpl
Constructor Detail

GroupSummaryView

public GroupSummaryView()
Method Detail

getSummaryNode

public El getSummaryNode(com.google.gwt.dom.client.Element g)
Returns the summary node element.

Parameters:
g - the group element
Returns:
the summary node

isSummaryVisible

public boolean isSummaryVisible()
Returns true if summaries are visible.

Returns:
true for visible

toggleSummaries

public void toggleSummaries(boolean visible)
Toggles the summary information visibility.

Parameters:
visible - true for visible, false to hide

calculate

protected java.util.Map<java.lang.String,java.lang.Number> calculate(java.util.List<ModelData> models,
                                                                     java.util.List<ColumnData> cs)

doAllWidths

protected void doAllWidths(java.util.List<java.lang.Integer> ws,
                           int tw)

doGroupEnd

protected void doGroupEnd(java.lang.StringBuilder buf,
                          GroupColumnData g,
                          java.util.List<ColumnData> cs,
                          int colCount)
Overrides:
doGroupEnd in class GroupingView

doWidth

protected void doWidth(int col,
                       int w,
                       int tw)

initTemplates

protected void initTemplates()
Overrides:
initTemplates in class GroupingView

onRemove

protected void onRemove(ListStore<ModelData> ds,
                        ModelData m,
                        int index,
                        boolean isUpdate)
Overrides:
onRemove in class GroupingView

onUpdate

protected void onUpdate(ListStore<ModelData> store,
                        ModelData model)
Overrides:
onUpdate in class GridView

refreshSummary

protected void refreshSummary(java.lang.String groupField,
                              java.lang.String group)

renderSummary

protected java.lang.String renderSummary(java.util.Map<java.lang.String,java.lang.Number> data,
                                         java.util.List<ColumnData> cs)

templateOnAllColumnWidthsUpdated

protected void templateOnAllColumnWidthsUpdated(java.util.List<java.lang.Integer> ws,
                                                int tw)
Overrides:
templateOnAllColumnWidthsUpdated in class GroupingView

templateOnColumnHiddenUpdated

protected void templateOnColumnHiddenUpdated(int col,
                                             boolean hidden,
                                             int tw)
Overrides:
templateOnColumnHiddenUpdated in class GroupingView

templateOnColumnWidthUpdated

protected void templateOnColumnWidthUpdated(int col,
                                            int w,
                                            int tw)
Overrides:
templateOnColumnWidthUpdated in class GroupingView