Class PivotTableOptions
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.pivottableflowui.kit.component.model.PivotTableOptionsObservable
PivotTableOptionsObservable.ObjectChangeEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Aggregationprotected Aggregationsprotected Booleanprotected Orderprotected DerivedPropertiesprotected Stringprotected JsFunctionprotected Stringprotected Integerprotected Rendererprotected RendererOptionsprotected Renderersprotected Orderprotected Booleanprotected Booleanprotected Booleanprotected JsFunctionprotected UnusedPropertiesVerticalFields inherited from class io.jmix.pivottableflowui.kit.component.model.PivotTableOptionsObservable
changedFromClient, listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAggregationProperties(String... aggregationProperties) Original property name:vals.voidaddColumns(String... columns) Adds an array of attribute names to use as columns.voidaddExclusions(String property, String... exclusions) Adds property values to a given property which denote records to exclude from rendering; used to prepopulate the filter menus that appear on double-click.voidaddHiddenFromAggregations(String... hiddenFromAggregations) Adds attribute names to omit from the aggregation arguments dropdowns.voidaddHiddenFromDragDrop(String... hiddenFromDragDrop) Adds attribute names to omit from the drag'n'drop portion of the UI.voidaddHiddenProperties(String... hiddenProperties) Adds attribute names to omit from the UI.voidaddInclusions(String property, String... inclusions) Adds property values to a given property which denote records to include in rendering; used to prepopulate the filter menus that appear on double-click (overridesexclusions).voidaddProperties(Map<String, String> properties) Adds data provider properties to serialize.voidaddProperty(String property, String value) Sets data provider property to serialize.voidAdds an array of attribute names to use as rows.getRows()isShowUI()voidsetAggregation(Aggregation aggregation) Original property name:aggregator.voidsetAggregationProperties(List<String> aggregationProperties) Original property name:vals.voidsetAggregations(Aggregations aggregations) Original property name:aggregators.voidsetAutoSortUnusedProperties(Boolean autoSortUnusedProperties) Original property name:autoSortUnusedAttrs.voidsetColumnOrder(Order columnOrder) Sets the order in which column data is provided to the renderer.voidsetColumns(List<String> columns) Sets a collection of attribute names to use as columns.voidsetDerivedProperties(DerivedProperties derivedProperties) Original property name:derivedAttributes.voidsetEmptyDataMessage(String emptyDataMessage) If component doesn't have data to aggregate, the message will be displayedvoidsetExclusions(String property, List<String> exclusions) Sets a list whose values are arrays of attribute values which denote records to exclude from rendering; used to prepopulate the filter menus that appear on double-click.voidsetExclusions(Map<String, List<String>> exclusions) Sets a map whose keys are attribute names and values are arrays of attribute values which denote records to exclude from rendering; used to prepopulate the filter menus that appear on double-click.voidsetFilterFunction(JsFunction filter) Original property name:filter.voidsetHiddenFromAggregations(List<String> hiddenFromAggregations) Sets attribute names to omit from the aggregation arguments dropdowns.voidsetHiddenFromDragDrop(List<String> hiddenFromDragDrop) Sets attribute names to omit from the drag'n'drop portion of the UI.voidsetHiddenProperties(List<String> hiddenProperties) Sets attribute names to omit from the UI.voidsetInclusions(String property, List<String> inclusions) Sets a list whose values are arrays of attribute values which denote records to include in rendering; used to prepopulate the filter menus that appear on double-click (overridesexclusions).voidsetInclusions(Map<String, List<String>> inclusions) Sets a map whose keys are attribute names and values are arrays of attribute values which denote records to include in rendering; used to prepopulate the filter menus that appear on double-click (overridesexclusions).voidsetLocaleCode(String localeCode) Sets a locale codevoidsetLocalizedStrings(Map<String, Object> localizedStrings) voidsetMenuLimit(Integer menuLimit) Sets the maximum number of values to list in the double click menu.voidvoidsetProperties(Map<String, String> properties) Sets data provider properties to serialize.voidsetRenderer(Renderer renderer) Sets a descriptor of an object which will generate output from pivot data structure (see documentation).voidsetRendererOptions(RendererOptions rendererOptions) Sets an object that is passed through to renderer as options.voidsetRenderers(Renderers renderers) Sets an object that represents a list of rendering functions (see documentation).voidsetRowOrder(Order rowOrder) Sets the order in which row data is provided to the renderer.voidSets a collection of attribute names to use as rows.voidsetShowColumnTotals(Boolean showColumnTotals) Shows or hides col totals.voidsetShowRowTotals(Boolean showRowTotals) Shows or hides row totals.voidShows or hides UIvoidsetSortersFunction(JsFunction sorters) Original property name:sorters.voidsetUnusedPropertiesVertical(UnusedPropertiesVertical unusedPropertiesVertical) Original property name:unusedAttrsVertical.Methods inherited from class io.jmix.pivottableflowui.kit.component.model.PivotTableOptionsObservable
fireChangeEvent, markAsChanged, setChangedFromClient
-
Field Details
-
properties
-
rows
-
columns
-
aggregation
-
renderer
-
aggregationProperties
-
aggregations
-
renderers
-
columnOrder
-
rowOrder
-
autoSortUnusedProperties
-
unusedPropertiesVertical
-
filterFunction
-
sortersFunction
-
rendererOptions
-
inclusions
-
exclusions
-
derivedProperties
-
localeCode
-
showUI
-
showRowTotals
-
showColumnTotals
-
emptyDataMessage
-
localizedStrings
-
-
Constructor Details
-
PivotTableOptions
public PivotTableOptions()
-
-
Method Details
-
setPivotTableObjectChangeListener
public void setPivotTableObjectChangeListener(Consumer<PivotTableOptionsObservable.ObjectChangeEvent> listener) - Overrides:
setPivotTableObjectChangeListenerin classPivotTableOptionsObservable
-
getProperties
- Returns:
- data provider properties to serialize
-
setProperties
Sets data provider properties to serialize.- Parameters:
properties- data provider properties to serialize
-
addProperties
Adds data provider properties to serialize.- Parameters:
properties- data provider properties to serialize
-
addProperty
Sets data provider property to serialize.- Parameters:
property- data provider property to serializevalue- a property value
-
getRows
- Returns:
- a collection of attribute names to use as rows
-
setRows
Sets a collection of attribute names to use as rows.- Parameters:
rows- a collection of attribute names to use as rows
-
addRows
Adds an array of attribute names to use as rows.- Parameters:
rows- an array of attribute names to add
-
getColumns
- Returns:
- a collection of attribute names to use as columns
-
setColumns
Sets a collection of attribute names to use as columns.- Parameters:
columns- a collection of attribute names to use as columns
-
addColumns
Adds an array of attribute names to use as columns.- Parameters:
columns- an array of attribute names to add
-
getAggregation
- Returns:
- an object which will aggregate results per cell
-
setAggregation
Original property name:aggregator.Sets a descriptor of an object which will aggregate results per cell (see documentation).
Applies only when
showUI=false.- Parameters:
aggregation- an object which will aggregate results per cell
-
getRenderer
- Returns:
- an object which will generate output from pivot data structure
-
setRenderer
Sets a descriptor of an object which will generate output from pivot data structure (see documentation).Applies only when
showUI=false.- Parameters:
renderer- an object which will generate output from pivot data structure
-
getAggregationProperties
- Returns:
- attribute names to prepopulate in vals area
-
setAggregationProperties
Original property name:vals.Sets attribute names to prepopulate in vals area (gets passed to aggregator generating function).
Applies only when
showUI=true.- Parameters:
aggregationProperties- attribute names to prepopulate in vals area
-
addAggregationProperties
Original property name:vals.Adds attribute names to prepopulate in vals area (gets passed to aggregator generating function).
Applies only when
showUI=true.- Parameters:
aggregationProperties- attribute names to prepopulate in vals area
-
getAggregations
- Returns:
- an object that represents a list of generators for aggregation functions in dropdown
-
setAggregations
Original property name:aggregators.Sets an object that represents a list of generators for aggregation functions in dropdown (see documentation).
Applies only when
showUI=true.- Parameters:
aggregations- an object that represents a list of generators for aggregation functions in dropdown
-
getRenderers
- Returns:
- n object that represents a list of rendering functions
-
setRenderers
Sets an object that represents a list of rendering functions (see documentation).Applies only when
showUI=true.- Parameters:
renderers- n object that represents a list of rendering functions
-
getHiddenProperties
- Returns:
- attribute names to omit from the UI
-
setHiddenProperties
Sets attribute names to omit from the UI.Applies only when
showUI=true.- Parameters:
hiddenProperties- attribute names to omit from the UI
-
addHiddenProperties
Adds attribute names to omit from the UI.Applies only when
showUI=true.- Parameters:
hiddenProperties- attribute names to omit from the UI
-
getHiddenFromAggregations
- Returns:
- attribute names to omit from the aggregation arguments dropdowns
-
setHiddenFromAggregations
Sets attribute names to omit from the aggregation arguments dropdowns.Applies only when
showUI=true.- Parameters:
hiddenFromAggregations- attribute names to omit from the aggregation arguments dropdowns
-
addHiddenFromAggregations
Adds attribute names to omit from the aggregation arguments dropdowns.Applies only when
showUI=true.- Parameters:
hiddenFromAggregations- attribute names to omit from the aggregation arguments dropdowns
-
getHiddenFromDragDrop
- Returns:
- attribute names to omit from the drag'n'drop portion of the UI
-
setHiddenFromDragDrop
Sets attribute names to omit from the drag'n'drop portion of the UI.Applies only when
showUI=true.- Parameters:
hiddenFromDragDrop- attribute names to omit from the drag'n'drop portion of the UI
-
addHiddenFromDragDrop
Adds attribute names to omit from the drag'n'drop portion of the UI.Applies only when
showUI=true.- Parameters:
hiddenFromDragDrop- attribute names to omit from the drag'n'drop portion of the UI
-
getColumnOrder
- Returns:
- the order in which column data is provided to the renderer
-
setColumnOrder
Sets the order in which column data is provided to the renderer.Ordering by value orders by column total.
- Parameters:
columnOrder- the order in which column data is provided to the renderer
-
getRowOrder
- Returns:
- the order in which row data is provided to the renderer
-
setRowOrder
Sets the order in which row data is provided to the renderer.Ordering by value orders by row total.
- Parameters:
rowOrder- the order in which row data is provided to the renderer
-
getMenuLimit
- Returns:
- the maximum number of values to list in the double click menu
-
setMenuLimit
Sets the maximum number of values to list in the double click menu.Applies only when
showUI=true.- Parameters:
menuLimit- the maximum number of values to list in the double click menu
-
getAutoSortUnusedProperties
- Returns:
- whether unused attributes are kept sorted in the UI
-
setAutoSortUnusedProperties
Original property name:autoSortUnusedAttrs.Sets whether unused attributes are kept sorted in the UI.
Applies only when
showUI=true.- Parameters:
autoSortUnusedProperties- whether unused attributes are kept sorted in the UI
-
getUnusedPropertiesVertical
- Returns:
- whether unused attributes are shown vertically
-
setUnusedPropertiesVertical
Original property name:unusedAttrsVertical.Sets whether unused attributes are shown vertically instead of the default which is horizontally.
truemeans always vertical,falsemeans always horizontal. If set to a number (as is the default) then if the attributes' names' combined length in characters exceeds the number then the attributes will be shown vertically.Applies only when
showUI=true.- Parameters:
unusedPropertiesVertical- whether unused attributes are shown vertically
-
getFilterFunction
- Returns:
- a filter function that is called on each record
-
setFilterFunction
Original property name:filter.Sets a filter function that is called on each record, returns
falseif the record is to be excluded from the input before rendering ortrueotherwise.- Parameters:
filter- a filter function that is called on each record
-
getSortersFunction
- Returns:
- a sorter function
-
setSortersFunction
Original property name:sorters.Sets a sorter function that is called with an attribute name and can return a function which can be used as an argument to
Array.sortfor output purposes. If no function is returned, the default sorting mechanism is a built-in "natural sort" implementation. Useful for sorting attributes like month names.- Parameters:
sorters- a sorter function
-
getRendererOptions
- Returns:
- an object that is passed through to renderer as options
-
setRendererOptions
Sets an object that is passed through to renderer as options.- Parameters:
rendererOptions- an object that is passed through to renderer as options
-
getInclusions
- Returns:
- a map whose keys are attribute names and values are arrays of attribute values
- See Also:
-
setInclusions
Sets a map whose keys are attribute names and values are arrays of attribute values which denote records to include in rendering; used to prepopulate the filter menus that appear on double-click (overridesexclusions).Applies only when
showUI=true.- Parameters:
inclusions- a map whose keys are attribute names and values are arrays of attribute values- See Also:
-
setInclusions
Sets a list whose values are arrays of attribute values which denote records to include in rendering; used to prepopulate the filter menus that appear on double-click (overridesexclusions).Applies only when
showUI=true.- Parameters:
property- a property for which set inclusionsinclusions- a list of property values- See Also:
-
addInclusions
Adds property values to a given property which denote records to include in rendering; used to prepopulate the filter menus that appear on double-click (overridesexclusions).Applies only when
showUI=true.- Parameters:
property- a property for which set inclusionsinclusions- an array of property values- See Also:
-
getExclusions
- Returns:
- a map whose keys are attribute names and values are arrays of attribute values
-
setExclusions
Sets a map whose keys are attribute names and values are arrays of attribute values which denote records to exclude from rendering; used to prepopulate the filter menus that appear on double-click.Applies only when
showUI=true.- Parameters:
exclusions- a map whose keys are attribute names and values are arrays of attribute values- See Also:
-
setExclusions
Sets a list whose values are arrays of attribute values which denote records to exclude from rendering; used to prepopulate the filter menus that appear on double-click.Applies only when
showUI=true.- Parameters:
property- a property for which set exclusionsexclusions- a map whose keys are attribute names and values are arrays of attribute values- See Also:
-
addExclusions
Adds property values to a given property which denote records to exclude from rendering; used to prepopulate the filter menus that appear on double-click.Applies only when
showUI=true.- Parameters:
property- a property for which set exclusionsexclusions- a map whose keys are attribute names and values are arrays of attribute values- See Also:
-
getDerivedProperties
- Returns:
- an object that represents derived properties
-
setDerivedProperties
Original property name:derivedAttributes.Sets an object that represents derived properties (see documentation).
- Parameters:
derivedProperties- an object that represents derived properties
-
getEmptyDataMessage
- Returns:
- string with an empty data message
-
setEmptyDataMessage
If component doesn't have data to aggregate, the message will be displayed- Parameters:
emptyDataMessage- string with an empty data message
-
isShowUI
- Returns:
- whether to show UI
-
setShowUI
Shows or hides UI- Parameters:
showUI- show UI option
-
isShowRowTotals
- Returns:
- whether to show row totals
-
setShowRowTotals
Shows or hides row totals.trueby default.- Parameters:
showRowTotals- row totals option
-
isShowColumnTotals
- Returns:
- whether to show col totals is shown
-
setShowColumnTotals
Shows or hides col totals.trueby default.- Parameters:
showColumnTotals- column total options
-
getLocaleCode
- Returns:
- a locale code
-
setLocaleCode
Sets a locale code- Parameters:
localeCode- a locale code
-
getLocalizedStrings
-
setLocalizedStrings
-