Class PivotTableImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractComponent<JmixPivotTable>
io.jmix.pivottable.component.impl.PivotTableImpl
- All Implemented Interfaces:
PivotTable
,AttachNotifier
,Component
,Component.BelongToFrame
,Component.Editable
,Component.HasCaption
,Component.HasDescription
,Component.HasIcon
,Component.HasXmlDescriptor
,Component.Wrapper
,HasContextHelp
,HasDebugId
,HasHtmlCaption
,HasHtmlDescription
,HasHtmlSanitizer
,org.springframework.beans.factory.InitializingBean
public class PivotTableImpl
extends AbstractComponent<JmixPivotTable>
implements PivotTable, org.springframework.beans.factory.InitializingBean
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
Nested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent
Nested classes/interfaces inherited from interface io.jmix.pivottable.component.PivotTable
PivotTable.CellClickEvent, PivotTable.RefreshEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected CellClickListener
protected CurrentAuthentication
protected Messages
protected MessageTools
protected PivotTableLocaleHelper
protected RefreshListener
Fields inherited from class io.jmix.ui.component.impl.AbstractComponent
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Fields inherited from interface io.jmix.pivottable.component.PivotTable
NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAggregationProperties
(String... aggregationProperties) Adds an array of properties names to prepopulate in vals area (gets passed to aggregator generating function).Adds a listener to the pivot table cell click events.void
addColumns
(String... cols) Adds an array of property names to use as columns.void
Adds a data item to data provider.void
addExclusions
(String property, String... exclusions) Adds a values to given key of exclusions map.void
addHiddenFromAggregations
(String... hiddenFromAggregations) Adds an array of properties names to omit from the aggregation arguments dropdowns.void
addHiddenFromDragDrop
(String... hiddenFromDragDrop) Adds an array of properties names to omit from the drag'n'drop portion of the UI.void
addHiddenProperties
(String... hiddenProperties) Adds an array of properties names to omit from the UI.void
addInclusions
(String property, String... inclusions) Adds a values to given key of inclusions map.void
addProperties
(Map<String, String> properties) Adds a map whose keys areDataItem
property names to use as pivot table data and values they localized names.void
addProperty
(String property, String value) Add a property with its localized valueaddRefreshListener
(Consumer<PivotTable.RefreshEvent> refreshListener) Adds a listener to the pivot table refresh events.void
Adds an array of properties names to use as rows.void
protected JmixPivotTable
protected PivotTableSerializer
getRows()
protected void
boolean
isShowUI()
protected void
protected void
void
repaint()
Resend all items and properties to client and repaint pivot table.void
setAggregation
(Aggregation aggregation) Sets the aggregation object.void
setAggregationProperties
(List<String> aggregationProperties) Sets the list of properties names to prepopulate in vals area (gets passed to aggregator generating function).void
setAggregations
(Aggregations aggregations) Sets the aggregations object which defines the collection of aggregations to use in pivot table and additional settings for them.void
setAutoSortUnusedProperties
(Boolean autoSortUnusedProperties) Controls whether or not unused properties are kept sorted in the UI.void
setColumnOrder
(ColumnOrder columnOrder) Set the order in which column data is provided to the renderer.void
setColumns
(List<String> cols) Sets the list of property names to use as columns.void
setCurrentAuthentication
(CurrentAuthentication currentAuthentication) void
setDataProvider
(DataProvider dataProvider) Sets data provider for PivotTable.void
setDerivedProperties
(DerivedProperties derivedProperties) Sets object to define derived properties.void
setEditable
(boolean editable) void
setEmptyDataMessage
(String emptyDataMessage) Sets the message that will be displayed in case of empty data.void
setExclusions
(String property, List<String> exclusions) Sets the value of exclusions map.void
setExclusions
(Map<String, List<String>> exclusions) Sets map whose keys are properties names and values are lists of properties values which denote records to exclude from rendering; used to prepopulate the filter menus that appear on double-click.void
setFilterFunction
(JsFunction filter) Sets theJsFunction
which defines a javascript code called on each record, returnsfalse
if the record is to be excluded from the input before rendering ortrue
otherwisevoid
setHiddenFromAggregations
(List<String> hiddenFromAggregations) Sets the list of properties names to omit from the aggregation arguments dropdowns.void
setHiddenFromDragDrop
(List<String> hiddenFromDragDrop) Sets the list of properties names to omit from the drag'n'drop portion of the UI.void
setHiddenProperties
(List<String> hiddenProperties) Sets the list of properties names to omit from the UI.void
setInclusions
(String property, List<String> inclusions) Sets the value of inclusions map.void
setInclusions
(Map<String, List<String>> inclusions) Sets map whose keys are properties names and values are lists of properties values which denote records to include in rendering; used to prepopulate the filter menus that appear on double-click (overridesexclusions
).void
setMenuLimit
(Integer menuLimit) Sets maximum number of values to list in the double-click menu.void
setMessages
(Messages messages) void
setMessageTools
(MessageTools messageTools) void
setNativeJson
(String json) Set additional JSON configuration as a string.void
void
setProperties
(Map<String, String> properties) Sets the map whose keys areDataItem
property names to use as pivot table data and values they localized names.void
setRenderer
(Renderer renderer) Sets the renderer object.void
setRendererOptions
(RendererOptions rendererOptions) Sets object passed through to renderer as options.void
setRenderers
(Renderers renderers) Sets the renderers object which defines the collection of renderers to use in pivot table and additional settings for them.void
setRowOrder
(RowOrder rowOrder) Sets the order in which row data is provided to the renderer.void
Sets the list of properties names to use as rows.void
setShowColTotals
(Boolean showColTotals) Setfalse
if col totals shouldn't be shown andtrue
otherwise.void
setShowRowTotals
(Boolean showRowTotals) Setfalse
if row totals shouldn't be shown andtrue
otherwise.void
Hides or shows UI elements in the editable pivot table.void
setSortersFunction
(JsFunction sorters) Sets theJsFunction
which defines a javascript code called with an property name and can return a function which can be used as an argument toArray.sort
for output purposes.void
setUnusedPropertiesVertical
(UnusedPropertiesVertical unusedPropertiesVertical) Controls whether or not unused properties are shown vertically instead of the default which is horizontally.Methods inherited from class io.jmix.ui.component.impl.AbstractComponent
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
Methods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrame
Methods inherited from interface io.jmix.ui.component.Component.Editable
isEditableWithParent
Methods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaption
Methods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescription
-
Field Details
-
refreshHandler
-
cellClickHandler
-
messages
-
messageTools
-
currentAuthentication
-
pivotTableLocaleHelper
-
-
Constructor Details
-
PivotTableImpl
public PivotTableImpl()
-
-
Method Details
-
createComponent
-
createPivotTableSerializer
-
setMessages
-
setCurrentAuthentication
-
setMessageTools
-
setPivotTableLocaleHelper
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
initLocale
protected void initLocale() -
repaint
public void repaint()Description copied from interface:PivotTable
Resend all items and properties to client and repaint pivot table. Use this method if you change some property of already displayed pivot table.- Specified by:
repaint
in interfacePivotTable
-
isEditable
public boolean isEditable()- Specified by:
isEditable
in interfaceComponent.Editable
-
setEditable
public void setEditable(boolean editable) - Specified by:
setEditable
in interfaceComponent.Editable
-
getProperties
- Specified by:
getProperties
in interfacePivotTable
- Returns:
- the map whose keys are
DataItem
property names to use as pivot table data and values they localized names
-
setProperties
Description copied from interface:PivotTable
Sets the map whose keys areDataItem
property names to use as pivot table data and values they localized names.- Specified by:
setProperties
in interfacePivotTable
- Parameters:
properties
- a map of properties names with localized values
-
addProperties
Description copied from interface:PivotTable
Adds a map whose keys areDataItem
property names to use as pivot table data and values they localized names.- Specified by:
addProperties
in interfacePivotTable
- Parameters:
properties
- a map of properties names with localized values
-
addProperty
Description copied from interface:PivotTable
Add a property with its localized value- Specified by:
addProperty
in interfacePivotTable
- Parameters:
property
- property namevalue
- localized value
-
getRows
- Specified by:
getRows
in interfacePivotTable
- Returns:
- the list of properties names to use as rows.
-
setRows
Description copied from interface:PivotTable
Sets the list of properties names to use as rows.- Specified by:
setRows
in interfacePivotTable
- Parameters:
rows
- a list of properties names
-
addRows
Description copied from interface:PivotTable
Adds an array of properties names to use as rows.- Specified by:
addRows
in interfacePivotTable
- Parameters:
rows
- an array of properties names
-
getColumns
- Specified by:
getColumns
in interfacePivotTable
- Returns:
- the list of property names to use as columns.
-
setColumns
Description copied from interface:PivotTable
Sets the list of property names to use as columns.- Specified by:
setColumns
in interfacePivotTable
- Parameters:
cols
- a list of properties names
-
addColumns
Description copied from interface:PivotTable
Adds an array of property names to use as columns.- Specified by:
addColumns
in interfacePivotTable
- Parameters:
cols
- an array of properties names
-
getAggregation
- Specified by:
getAggregation
in interfacePivotTable
- Returns:
- the aggregation object which defines how pivot table will aggregate results per cell
-
setAggregation
Description copied from interface:PivotTable
Sets the aggregation object.Applies only when
editable=false
.- Specified by:
setAggregation
in interfacePivotTable
- Parameters:
aggregation
- an aggregation object
-
getRenderer
- Specified by:
getRenderer
in interfacePivotTable
- Returns:
- the renderer object which generates output from pivot data structure
-
setRenderer
Description copied from interface:PivotTable
Sets the renderer object.Applies only when
editable=false
.- Specified by:
setRenderer
in interfacePivotTable
- Parameters:
renderer
- a renderer object
-
getAggregationProperties
- Specified by:
getAggregationProperties
in interfacePivotTable
- Returns:
- the list of properties names to prepopulate in vals area (gets passed to aggregator generating function)
-
setAggregationProperties
Description copied from interface:PivotTable
Sets the list of properties names to prepopulate in vals area (gets passed to aggregator generating function).Applies only when
editable=true
.- Specified by:
setAggregationProperties
in interfacePivotTable
- Parameters:
aggregationProperties
- a list of properties names
-
addAggregationProperties
Description copied from interface:PivotTable
Adds an array of properties names to prepopulate in vals area (gets passed to aggregator generating function).Applies only when
editable=true
.- Specified by:
addAggregationProperties
in interfacePivotTable
- Parameters:
aggregationProperties
- an array of properties names
-
getAggregations
- Specified by:
getAggregations
in interfacePivotTable
- Returns:
- the aggregations object which defines the collection of aggregations to use in pivot table and additional settings for them.
-
setAggregations
Description copied from interface:PivotTable
Sets the aggregations object which defines the collection of aggregations to use in pivot table and additional settings for them.Applies only when
editable=true
.- Specified by:
setAggregations
in interfacePivotTable
- Parameters:
aggregations
- an aggregations object
-
getRenderers
- Specified by:
getRenderers
in interfacePivotTable
- Returns:
- the renderers object which defines the collection of renderers to use in pivot table and additional settings for them.
-
setRenderers
Description copied from interface:PivotTable
Sets the renderers object which defines the collection of renderers to use in pivot table and additional settings for them.Applies only when
editable=true
.- Specified by:
setRenderers
in interfacePivotTable
- Parameters:
renderers
- a renderers object
-
getHiddenProperties
- Specified by:
getHiddenProperties
in interfacePivotTable
- Returns:
- the list of properties names to omit from the UI
-
setHiddenProperties
Description copied from interface:PivotTable
Sets the list of properties names to omit from the UI.Applies only when
editable=true
.- Specified by:
setHiddenProperties
in interfacePivotTable
- Parameters:
hiddenProperties
- a list of properties names
-
addHiddenProperties
Description copied from interface:PivotTable
Adds an array of properties names to omit from the UI.Applies only when
editable=true
.- Specified by:
addHiddenProperties
in interfacePivotTable
- Parameters:
hiddenProperties
- an array of properties names
-
getHiddenFromAggregations
- Specified by:
getHiddenFromAggregations
in interfacePivotTable
- Returns:
- list of properties names to omit from the aggregation arguments dropdowns
-
setHiddenFromAggregations
Description copied from interface:PivotTable
Sets the list of properties names to omit from the aggregation arguments dropdowns.Applies only when
editable=true
.- Specified by:
setHiddenFromAggregations
in interfacePivotTable
- Parameters:
hiddenFromAggregations
- a list of properties names
-
addHiddenFromAggregations
Description copied from interface:PivotTable
Adds an array of properties names to omit from the aggregation arguments dropdowns.Applies only when
editable=true
.- Specified by:
addHiddenFromAggregations
in interfacePivotTable
- Parameters:
hiddenFromAggregations
- an array of properties names
-
getHiddenFromDragDrop
- Specified by:
getHiddenFromDragDrop
in interfacePivotTable
- Returns:
- list of properties names to omit from the drag'n'drop portion of the UI
-
setHiddenFromDragDrop
Description copied from interface:PivotTable
Sets the list of properties names to omit from the drag'n'drop portion of the UI.Applies only when
editable=true
.- Specified by:
setHiddenFromDragDrop
in interfacePivotTable
- Parameters:
hiddenFromDragDrop
- a list of properties names
-
addHiddenFromDragDrop
Description copied from interface:PivotTable
Adds an array of properties names to omit from the drag'n'drop portion of the UI.Applies only when
editable=true
.- Specified by:
addHiddenFromDragDrop
in interfacePivotTable
- Parameters:
hiddenFromDragDrop
- an array of properties names
-
getColumnOrder
- Specified by:
getColumnOrder
in interfacePivotTable
- Returns:
- the order in which column data is provided to the renderer
-
setColumnOrder
Description copied from interface:PivotTable
Set the order in which column data is provided to the renderer.Ordering by value orders by column total.
- Specified by:
setColumnOrder
in interfacePivotTable
- Parameters:
columnOrder
- the order in which column data is provided to the renderer
-
getRowOrder
- Specified by:
getRowOrder
in interfacePivotTable
- Returns:
- the order in which row data is provided to the renderer
-
setRowOrder
Description copied from interface:PivotTable
Sets the order in which row data is provided to the renderer.Ordering by value orders by row total.
- Specified by:
setRowOrder
in interfacePivotTable
- Parameters:
rowOrder
- the order in which row data is provided to the renderer
-
getMenuLimit
- Specified by:
getMenuLimit
in interfacePivotTable
- Returns:
- maximum number of values to list in the double-click menu
-
setMenuLimit
Description copied from interface:PivotTable
Sets maximum number of values to list in the double-click menu.Applies only when
editable=true
.- Specified by:
setMenuLimit
in interfacePivotTable
- Parameters:
menuLimit
- maximum number of values to list in the double-click menu
-
getAutoSortUnusedProperties
- Specified by:
getAutoSortUnusedProperties
in interfacePivotTable
- Returns:
true
if unused properties are kept sorted in the UI andfalse
otherwise
-
setAutoSortUnusedProperties
Description copied from interface:PivotTable
Controls whether or not unused properties are kept sorted in the UI.Applies only when
editable=true
.- Specified by:
setAutoSortUnusedProperties
in interfacePivotTable
- Parameters:
autoSortUnusedProperties
-true
if unused properties are kept sorted in the UI andfalse
otherwise
-
getUnusedPropertiesVertical
- Specified by:
getUnusedPropertiesVertical
in interfacePivotTable
- Returns:
true
if unused attributes are shown always vertical,false
if always horizontal. If set to a number (as is the default) then if the properties' names' combined length in characters exceeds the number then the properties will be shown vertically.
-
setUnusedPropertiesVertical
Description copied from interface:PivotTable
Controls whether or not unused properties are shown vertically instead of the default which is horizontally.true
means always vertical,false
means always horizontal. If set to a number (as is the default) then if the properties' names' combined length in characters exceeds the number then the properties will be shown vertically.Applies only when
editable=true
.- Specified by:
setUnusedPropertiesVertical
in interfacePivotTable
- Parameters:
unusedPropertiesVertical
- properties
-
getDataProvider
- Specified by:
getDataProvider
in interfacePivotTable
- Returns:
- data provider for PivotTable. Contains items which will be shown on PivotTable.
-
setDataProvider
Description copied from interface:PivotTable
Sets data provider for PivotTable. Contains items which will be shown on PivotTable.- Specified by:
setDataProvider
in interfacePivotTable
- Parameters:
dataProvider
- a data provider
-
addData
Description copied from interface:PivotTable
Adds a data item to data provider.- Specified by:
addData
in interfacePivotTable
- Parameters:
dataItems
- a data item to add
-
getFilterFunction
- Specified by:
getFilterFunction
in interfacePivotTable
- Returns:
- the
JsFunction
which defines a javascript code called on each record, returnsfalse
if the record is to be excluded from the input before rendering ortrue
otherwise
-
setFilterFunction
Description copied from interface:PivotTable
Sets theJsFunction
which defines a javascript code called on each record, returnsfalse
if the record is to be excluded from the input before rendering ortrue
otherwise- Specified by:
setFilterFunction
in interfacePivotTable
- Parameters:
filter
- aJsFunction
to use as a filter
-
getSortersFunction
- Specified by:
getSortersFunction
in interfacePivotTable
- Returns:
- the
JsFunction
which defines a javascript code called with an property name and can return a function which can be used as an argument toArray.sort
for 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
-
setSortersFunction
Description copied from interface:PivotTable
Sets theJsFunction
which defines a javascript code called with an property name and can return a function which can be used as an argument toArray.sort
for 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- Specified by:
setSortersFunction
in interfacePivotTable
- Parameters:
sorters
- aJsFunction
to use as a sorters
-
getRendererOptions
- Specified by:
getRendererOptions
in interfacePivotTable
- Returns:
- the object passed through to renderer as options
-
setRendererOptions
Description copied from interface:PivotTable
Sets object passed through to renderer as options.- Specified by:
setRendererOptions
in interfacePivotTable
- Parameters:
rendererOptions
- object defines renderer options
-
getInclusions
- Specified by:
getInclusions
in interfacePivotTable
- Returns:
- map whose keys are properties names and values are lists of properties values which denote records to include in rendering; used to prepopulate the filter menus that appear on double-click
-
setInclusions
Description copied from interface:PivotTable
Sets map whose keys are properties names and values are lists of properties values which denote records to include in rendering; used to prepopulate the filter menus that appear on double-click (overridesexclusions
).Applies only when
editable=true
.- Specified by:
setInclusions
in interfacePivotTable
- Parameters:
inclusions
- map with properties and values included in rendering- See Also:
-
setInclusions
Description copied from interface:PivotTable
Sets the value of inclusions map.- Specified by:
setInclusions
in interfacePivotTable
- Parameters:
property
- property nameinclusions
- a list of properties values- See Also:
-
addInclusions
Description copied from interface:PivotTable
Adds a values to given key of inclusions map.- Specified by:
addInclusions
in interfacePivotTable
- Parameters:
property
- a property nameinclusions
- an array of properties values- See Also:
-
getExclusions
- Specified by:
getExclusions
in interfacePivotTable
- Returns:
- map whose keys are properties names and values are lists of properties values which denote records to exclude from rendering; used to prepopulate the filter menus that appear on double-click
-
setExclusions
Description copied from interface:PivotTable
Sets map whose keys are properties names and values are lists of properties values which denote records to exclude from rendering; used to prepopulate the filter menus that appear on double-click.Applies only when
editable=true
.- Specified by:
setExclusions
in interfacePivotTable
- Parameters:
exclusions
- map with properties and values excluded from rendering- See Also:
-
setExclusions
Description copied from interface:PivotTable
Sets the value of exclusions map.- Specified by:
setExclusions
in interfacePivotTable
- Parameters:
property
- property nameexclusions
- a list of properties values- See Also:
-
addExclusions
Description copied from interface:PivotTable
Adds a values to given key of exclusions map.- Specified by:
addExclusions
in interfacePivotTable
- Parameters:
property
- a property nameexclusions
- an array of properties values- See Also:
-
getDerivedProperties
- Specified by:
getDerivedProperties
in interfacePivotTable
- Returns:
- object to define derived properties
-
setDerivedProperties
Description copied from interface:PivotTable
Sets object to define derived properties.- Specified by:
setDerivedProperties
in interfacePivotTable
- Parameters:
derivedProperties
- object to define derived properties
-
getNativeJson
- Specified by:
getNativeJson
in interfacePivotTable
- Returns:
- additional JSON configuration as a string.
-
setNativeJson
Description copied from interface:PivotTable
Set additional JSON configuration as a string. This JSON can override configuration loaded from XML and from Component API.- Specified by:
setNativeJson
in interfacePivotTable
- Parameters:
json
- additional JSON configuration
-
getEmptyDataMessage
- Specified by:
getEmptyDataMessage
in interfacePivotTable
- Returns:
- the message that will be displayed in case of empty data
-
setEmptyDataMessage
Description copied from interface:PivotTable
Sets the message that will be displayed in case of empty data.- Specified by:
setEmptyDataMessage
in interfacePivotTable
- Parameters:
emptyDataMessage
- the message that will be displayed in case of empty data
-
addRefreshListener
Description copied from interface:PivotTable
Adds a listener to the pivot table refresh events. Fired only for editable PivotTable.- Specified by:
addRefreshListener
in interfacePivotTable
- Parameters:
refreshListener
- a listener to add- Returns:
- subscription
-
onRefresh
-
addCellClickListener
Description copied from interface:PivotTable
Adds a listener to the pivot table cell click events. Fired only for table renderers (table, heatmap, table barchart, col heatmap, row heatmap).- Specified by:
addCellClickListener
in interfacePivotTable
- Parameters:
listener
- a listener to add- Returns:
- subscription
-
onCellClick
-
setShowUI
Description copied from interface:PivotTable
Hides or shows UI elements in the editable pivot table.true
by default.
Applies only wheneditable=true
.- Specified by:
setShowUI
in interfacePivotTable
- Parameters:
showUI
-true
if UI elements should be shown andfalse
otherwise
-
isShowUI
- Specified by:
isShowUI
in interfacePivotTable
- Returns:
true
ifpivotUI()
should be shown andfalse
otherwise
-
setShowRowTotals
Description copied from interface:PivotTable
Setfalse
if row totals shouldn't be shown andtrue
otherwise. Works only for table renderers.true
by default.- Specified by:
setShowRowTotals
in interfacePivotTable
- Parameters:
showRowTotals
-false
if row totals shouldn't be shown andtrue
otherwise
-
isRowTotalsShown
- Specified by:
isRowTotalsShown
in interfacePivotTable
- Returns:
false
if row totals shouldn't be shown andtrue
otherwise
-
setShowColTotals
Description copied from interface:PivotTable
Setfalse
if col totals shouldn't be shown andtrue
otherwise. Works only for table renderers.true
by default.- Specified by:
setShowColTotals
in interfacePivotTable
- Parameters:
showColTotals
-false
if col totals shouldn't be shown andtrue
otherwise
-
isColTotalsShown
- Specified by:
isColTotalsShown
in interfacePivotTable
- Returns:
false
if col totals shouldn't be shown andtrue
otherwise
-