Class DerivedProperties
java.lang.Object
io.jmix.pivottableflowui.kit.component.model.PivotTableOptionsObservable
io.jmix.pivottableflowui.kit.component.model.DerivedProperties
- All Implemented Interfaces:
Serializable
Defines derived properties
(see documentation).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.pivottableflowui.kit.component.model.PivotTableOptionsObservable
PivotTableOptionsObservable.ObjectChangeEvent
-
Field Summary
Fields inherited from class io.jmix.pivottableflowui.kit.component.model.PivotTableOptionsObservable
changedFromClient, listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String caption, JsFunction function) Adds a function that calculated a derived property to the given localized attribute name.void
addAttributes
(Map<String, JsFunction> derivedProperties) Adds a map of derived properties.void
setProperties
(Map<String, JsFunction> derivedProperties) Sets a map of derived properties.Methods inherited from class io.jmix.pivottableflowui.kit.component.model.PivotTableOptionsObservable
fireChangeEvent, markAsChanged, setChangedFromClient, setPivotTableObjectChangeListener
-
Field Details
-
properties
-
-
Constructor Details
-
DerivedProperties
public DerivedProperties()
-
-
Method Details
-
getProperties
- Returns:
- a map of derived properties
-
setProperties
Sets a map of derived properties.- Parameters:
derivedProperties
- a map of derived properties
-
addAttributes
Adds a map of derived properties.- Parameters:
derivedProperties
- a map of derived properties
-
addAttribute
Adds a function that calculated a derived property to the given localized attribute name.- Parameters:
caption
- a localized attribute namefunction
- a function that calculated a derived property
-