public class GroupSummaryView<M> extends GroupingView<M>
Modifier and Type | Class and Description |
---|---|
static interface |
GroupSummaryView.GroupSummaryViewAppearance |
static interface |
GroupSummaryView.GroupSummaryViewStyle |
GroupingView.GroupingData<M>, GroupingView.GroupingViewAppearance, GroupingView.GroupingViewStyle, GroupingView.GroupSummaryTemplate<M>
GridView.GridAppearance, GridView.GridStateStyles, GridView.GridStyles, GridView.GridTemplates
enableGrouping, groupingColumn, lastGroupField, state
autoFill, body, borderWidth, cm, columnListener, dataTable, dataTableBody, dataTableSizingHead, deferUpdateDelay, deferUpdates, ds, emptyText, enableRowBody, footer, forceFit, grid, header, headerColumnIndex, headerDisabled, headerElem, lastViewWidth, listener, overRow, preventScrollToTopOnRefresh, scroller, scrollOffset, selectable, sortState, splitterWidth, states, storeSortInfo, styles, tpls, unselectable, vbar, viewConfig
Constructor and Description |
---|
GroupSummaryView() |
GroupSummaryView(GridView.GridAppearance appearance,
GroupSummaryView.GroupSummaryViewAppearance groupingAppearance) |
GroupSummaryView(GroupSummaryView.GroupSummaryViewAppearance groupAppearance) |
Modifier and Type | Method and Description |
---|---|
protected Map<ValueProvider<? super M,?>,Number> |
calculate(List<M> models) |
protected int |
getGroupIndex(XElement group) |
GroupSummaryView.GroupSummaryViewAppearance |
getGroupingAppearance()
Returns the grouping view appearance.
|
<any> |
getSummaries()
Gets all summary nodes currently rendered in the grid
|
boolean |
isSummaryVisible()
Returns true if summaries are visible.
|
protected void |
onRemove(M m,
int index,
boolean isUpdate)
Handles removing a data model from the store.
|
protected void |
onUpdate(ListStore<M> store,
List<M> models)
Handles an update to data in the store.
|
protected void |
refreshSummaries() |
protected void |
renderGroup(SafeHtmlBuilder buf,
GroupingView.GroupingData<M> g,
SafeHtml renderedRows) |
protected SafeHtml |
renderGroupSummary(GroupingView.GroupingData<M> groupInfo) |
protected SafeHtml |
renderSummary(GroupingView.GroupingData<M> groupInfo,
Map<ValueProvider<? super M,?>,Number> data) |
void |
toggleSummaries(boolean visible)
Toggles the summary information visibility.
|
addCollapseHandler, addExpandHandler, afterRender, collapseAllGroups, createContextMenu, createGroupingData, createGroupingData, doLastSort, doRender, doSort, expandAllGroups, getGroups, getRows, getSortState, groupBy, isEnabledNoGroups, isEnableGroupingMenu, isExpanded, isShowGroupedColumn, isStartCollapsed, makeGroupForRow, onAdd, onMouseDown, refreshRow, renderGroupHeader, renderRows, setEnableGroupingMenu, setEnableNoGroups, setShowGroupedColumn, setStartCollapsed, toggleAllGroups, toggleGroup, toggleGroup, valueBelongsInGroup, verifyNewGroup
addHandler, adjustColumnWidths, applyEmptyText, autoExpand, calculateVBar, createStoreSortInfo, doAttach, doDetach, ensureVisible, ensureVisible, findCell, findCellIndex, findRow, findRowIndex, fireEvent, fitColumns, focus, focusCell, focusRow, getAppearance, getAutoExpandColumn, getAutoExpandMax, getAutoExpandMin, getBody, getCell, getColumnData, getColumnStyle, getColumnWidth, getColumnWidths, getEditorParent, getEmptyText, getHeader, getOffsetWidth, getRenderedValue, getRow, getRow, getRowBody, getRowBodyRowSpan, getScrollAdjust, getScroller, getScrollState, getStateStyles, getTotalWidth, getViewConfig, handleComponentEvent, hasRows, init, initData, initElements, initHeader, initListeners, initUI, insertRows, isAdjustForHScroll, isAutoFill, isColumnLines, isDeferUpdates, isEnableRowBody, isForceFit, isRemoteSort, isSelectableTarget, isShowDirtyCells, isSortingEnabled, isStripeRows, isTrackMouseOver, layout, layout, notifyHide, notifyShow, onAfterRenderView, onCellDeselect, onCellSelect, onClear, onClick, onColumnMove, onColumnWidthChange, onDataChanged, onFocus, onHeaderChange, onHeaderClick, onHiddenChange, onHighlightRow, onNoNext, onNoPrev, onRowDeselect, onRowOut, onRowOver, onRowSelect, processRows, refresh, removeRow, renderFooter, renderHeader, renderHiddenHeaders, renderUI, repaintGrid, resize, restoreScroll, scrollToTop, scrollToTop, setAdjustForHScroll, setAutoExpandColumn, setAutoExpandMax, setAutoExpandMin, setAutoFill, setColumnHeader, setColumnLines, setDeferUpdates, setEmptyText, setEnableRowBody, setForceFit, setRowBodyRowSpan, setShowDirtyCells, setSortingEnabled, setStripeRows, setTrackMouseOver, setViewConfig, syncHeaderScroll, syncScroll, templateOnAllColumnWidthsUpdated, templateOnColumnHiddenUpdated, templateOnColumnWidthUpdated, updateAllColumnWidths, updateColumnHidden, updateColumnWidth, updateHeaderSortState, updateSortIcon
public GroupSummaryView()
public GroupSummaryView(GridView.GridAppearance appearance, GroupSummaryView.GroupSummaryViewAppearance groupingAppearance)
public GroupSummaryView(GroupSummaryView.GroupSummaryViewAppearance groupAppearance)
public GroupSummaryView.GroupSummaryViewAppearance getGroupingAppearance()
GroupingView
getGroupingAppearance
in class GroupingView<M>
protected int getGroupIndex(XElement group)
getGroupIndex
in class GroupingView<M>
public <any> getSummaries()
public boolean isSummaryVisible()
public void toggleSummaries(boolean visible)
visible
- true for visible, false to hideprotected void onRemove(M m, int index, boolean isUpdate)
GridView
onRemove
in class GroupingView<M>
m
- the data modelindex
- the row indexisUpdate
- true to indicate an update an existing rowprotected void onUpdate(ListStore<M> store, List<M> models)
GridView
protected void refreshSummaries()
protected void renderGroup(SafeHtmlBuilder buf, GroupingView.GroupingData<M> g, SafeHtml renderedRows)
renderGroup
in class GroupingView<M>
protected SafeHtml renderGroupSummary(GroupingView.GroupingData<M> groupInfo)
protected SafeHtml renderSummary(GroupingView.GroupingData<M> groupInfo, Map<ValueProvider<? super M,?>,Number> data)
Copyright © 2018. All rights reserved.