Class LeafViewBuilderImpl
java.lang.Object
io.deephaven.multiviewwidget.impl.LeafViewBuilderImpl
- All Implemented Interfaces:
LeafViewBuilder,ViewFactory
-
Constructor Summary
ConstructorsConstructorDescriptionLeafViewBuilderImpl(WidgetBuilder widgetBuilder, String name, Table liveTable, Color tabColor) -
Method Summary
Modifier and TypeMethodDescription@NotNull WidgetBuilderGet the parent builder in its current state.@NotNull LeafViewBuilderleafColumnOrder(@NotNull Collection<String> leafFrontCols) Identifies columns which should be displayed toward the beginning of the resultant columns@NotNull LeafViewBuilderleafFormatColumns(@NotNull Collection<String> leafFormats) Defines a number of column-level formats which will be applied to the resultant table.@NotNull LeafViewBuilderleafFormatColumnWhere(@NotNull String leafFormatCol, @NotNull String leafFormatCondition, @NotNull String leafFormatColor) Defines a conditional columnar format.@NotNull LeafViewBuilderleafSortAscending(@NotNull Collection<String> leafSortCols) Identifies columns used for sort-ordering of the resultant table@NotNull LeafViewBuilderleafSortDescending(@NotNull Collection<String> leafSortCols) Identifies columns used for sort-ordering of the resultant table@NotNull LeafViewBuilderwithTotals(boolean includeTotals) Identifies if the view should include a totals row.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.multiviewwidget.builder.LeafViewBuilder
leafColumnOrder, leafFormatColumns, leafSortAscending, leafSortDescendingMethods inherited from interface io.deephaven.multiviewwidget.builder.ViewFactory
addAggView, addAggView, addGlobalFilter, addGlobalFilter, addLeafView, addLeafView, addPivotView, addPivotView, addPivotView, addPivotView, addPivotView, addPivotView, addPivotView, addPivotView, addPlotView, addPlotView, addPlotView, addPlotView, addRollupView, addRollupView, addStaticFilter, build, collapseGlobalFilter, collapseGlobalFilter, globalFilterBucket, globalFilterBucket
-
Constructor Details
-
LeafViewBuilderImpl
public LeafViewBuilderImpl(WidgetBuilder widgetBuilder, String name, Table liveTable, Color tabColor)
-
-
Method Details
-
withTotals
Description copied from interface:LeafViewBuilderIdentifies if the view should include a totals row. This is 'true' by default.- Specified by:
withTotalsin interfaceLeafViewBuilder- Parameters:
includeTotals- if the view should include totals.- Returns:
- this
PivotViewBuilder
-
leafColumnOrder
@NotNull public @NotNull LeafViewBuilder leafColumnOrder(@NotNull @NotNull Collection<String> leafFrontCols) Description copied from interface:LeafViewBuilderIdentifies columns which should be displayed toward the beginning of the resultant columns- Specified by:
leafColumnOrderin interfaceLeafViewBuilder- Parameters:
leafFrontCols- column name(s) which should be shown near the beginning of the resultant columns- Returns:
- this
LeafViewBuilder
-
leafSortAscending
@NotNull public @NotNull LeafViewBuilder leafSortAscending(@NotNull @NotNull Collection<String> leafSortCols) Description copied from interface:LeafViewBuilderIdentifies columns used for sort-ordering of the resultant table- Specified by:
leafSortAscendingin interfaceLeafViewBuilder- Parameters:
leafSortCols- column name(s) which will identify the resultant sorting- Returns:
- this
LeafViewBuilder
-
leafSortDescending
@NotNull public @NotNull LeafViewBuilder leafSortDescending(@NotNull @NotNull Collection<String> leafSortCols) Description copied from interface:LeafViewBuilderIdentifies columns used for sort-ordering of the resultant table- Specified by:
leafSortDescendingin interfaceLeafViewBuilder- Parameters:
leafSortCols- column name(s) which will identify the resultant sorting- Returns:
- this
LeafViewBuilder
-
leafFormatColumns
@NotNull public @NotNull LeafViewBuilder leafFormatColumns(@NotNull @NotNull Collection<String> leafFormats) Description copied from interface:LeafViewBuilderDefines a number of column-level formats which will be applied to the resultant table. The formatting is identical to that defined byTable.formatColumns(String...)- Specified by:
leafFormatColumnsin interfaceLeafViewBuilder- Parameters:
leafFormats- Columnar formatting to be applied to the resultant table- Returns:
- this
LeafViewBuilder
-
leafFormatColumnWhere
@NotNull public @NotNull LeafViewBuilder leafFormatColumnWhere(@NotNull @NotNull String leafFormatCol, @NotNull @NotNull String leafFormatCondition, @NotNull @NotNull String leafFormatColor) Description copied from interface:LeafViewBuilderDefines a conditional columnar format. SeeTable.formatColumnWhere(String, String, String)- Specified by:
leafFormatColumnWherein interfaceLeafViewBuilder- Parameters:
leafFormatCol- the columns which will have conditional formatting appliedleafFormatCondition- the condition used to identify if the color should be appliedleafFormatColor- the color to conditionally apply- Returns:
- this
LeafViewBuilder
-
getBuilder
Description copied from interface:ViewFactoryGet the parent builder in its current state. May be used to store intermediary states of the builder in order to separate widget-creation into multiple distinct sections- Specified by:
getBuilderin interfaceViewFactory- Returns:
- the parent builder
-