Package io.jmix.pivottable.model
Class DerivedProperties
java.lang.Object
io.jmix.pivottable.model.AbstractPivotObject
io.jmix.pivottable.model.DerivedProperties
- All Implemented Interfaces:
Serializable
Defines derived properties
(see documentation).
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttribute
(String caption, JsFunction function) Adds a function that calculated a derived property to the given localized attribute name.addAttributes
(Map<String, JsFunction> derivedProperties) Adds a map of derived properties.setProperties
(Map<String, JsFunction> derivedProperties) Sets a map of derived 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- Returns:
- a reference to this object
-
addAttributes
Adds a map of derived properties.- Parameters:
derivedProperties
- a map of derived properties- Returns:
- a reference to this object
-
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- Returns:
- a reference to this object
-