Class AggView
java.lang.Object
io.deephaven.multiviewwidget.views.AggView
- All Implemented Interfaces:
Deflatable<ViewTab>,ViewTab
An aggregated table view sporting both the aggregation table and the totals table. Grouping columns can be
configured by the user post-initialization. This object exists on both the server and client side; only the
client-side will ever attempt to construct/access the
AggViewPanel-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAggView(@NotNull String name, @NotNull Table liveTable, @Nullable Color tabColor, @NotNull Collection<String> groupingCols, @NotNull Collection<String> aggDefaultGroupingCols, @NotNull Collection<AggView.AggRequest> aggRequests, @NotNull Collection<SortDefinition> sortOrdering, @NotNull Collection<String> priorityColumns, @NotNull FormatDefinition formats, @NotNull List<ViewLink> linkViews, boolean withTotals, boolean startCollapsed) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAggTypeCol(Map<AggType, Collection<String>> map, AggType aggType, String aggTypeCol) deflate(@NotNull ExportedObjectClient client) Convert this object into an Inflatable suitable for serialization.@NotNull Table@NotNull FormatDefinitiongetGroupingAggregators(Collection<String> groupingCols) booleanbooleanboolean@NotNull Collection<String>@Nullable Color@NotNull String@NotNull JPanelgetViewTabPanel(@NotNull WidgetContext widgetContext) Get the component associated with thisViewTab.booleanvoidonGlobalFiltersChanged(Collection<String> changedColumns, boolean lazy) voidsetHasError(boolean hasError) voidsetIsDirty(boolean isDirty) voidupdateIfDirty(boolean synchronous, boolean refresh) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.multiviewwidget.views.ViewTab
onGlobalFiltersChanged, possiblyNullDeflateTable, updateIfDirty
-
Constructor Details
-
AggView
public AggView(@NotNull @NotNull String name, @NotNull @NotNull Table liveTable, @Nullable @Nullable Color tabColor, @NotNull @NotNull Collection<String> groupingCols, @NotNull @NotNull Collection<String> aggDefaultGroupingCols, @NotNull @NotNull Collection<AggView.AggRequest> aggRequests, @NotNull @NotNull Collection<SortDefinition> sortOrdering, @NotNull @NotNull Collection<String> priorityColumns, @NotNull @NotNull FormatDefinition formats, @NotNull @NotNull List<ViewLink> linkViews, boolean withTotals, boolean startCollapsed)
-
-
Method Details
-
addAggTypeCol
-
getIncludeTotals
public boolean getIncludeTotals() -
getViewTabName
- Specified by:
getViewTabNamein interfaceViewTab
-
getBaseTable
-
getTabColor
- Specified by:
getTabColorin interfaceViewTab
-
onGlobalFiltersChanged
- Specified by:
onGlobalFiltersChangedin interfaceViewTab
-
updateIfDirty
public void updateIfDirty(boolean synchronous, boolean refresh) - Specified by:
updateIfDirtyin interfaceViewTab
-
setIsDirty
public void setIsDirty(boolean isDirty) - Specified by:
setIsDirtyin interfaceViewTab
-
getIsDirty
public boolean getIsDirty()- Specified by:
getIsDirtyin interfaceViewTab
-
setHasError
public void setHasError(boolean hasError) - Specified by:
setHasErrorin interfaceViewTab
-
getHasError
public boolean getHasError()- Specified by:
getHasErrorin interfaceViewTab
-
getGlobalFilters
-
getViewTabPanel
Description copied from interface:ViewTabGet the component associated with thisViewTab.- Specified by:
getViewTabPanelin interfaceViewTab- Parameters:
widgetContext- the context to create the component with.- Returns:
- the component.
-
getGroupingCols
-
getDefaultGroupingCols
-
getTotalsAggColTypes
-
getGroupingAggregators
public Collection<ComboAggregateFactory.ComboBy> getGroupingAggregators(Collection<String> groupingCols) -
getSortOrdering
-
getPriorityColumns
-
getFormats
-
getLinkViews
-
isStartCollapsed
public boolean isStartCollapsed() -
deflate
Description copied from interface:DeflatableConvert this object into an Inflatable suitable for serialization.- Specified by:
deflatein interfaceDeflatable<ViewTab>- Parameters:
client- the ExportedObjectClient we are deflating for.- Returns:
- an Inflatable for serializing to the client
-