Class DerivedProperties

java.lang.Object
io.jmix.pivottableflowui.kit.component.model.PivotTableOptionsObservable
io.jmix.pivottableflowui.kit.component.model.DerivedProperties
All Implemented Interfaces:
Serializable

public class DerivedProperties extends PivotTableOptionsObservable
Defines derived properties (see documentation).
See Also:
  • Field Details

  • Constructor Details

    • DerivedProperties

      public DerivedProperties()
  • Method Details

    • getProperties

      public Map<String,JsFunction> getProperties()
      Returns:
      a map of derived properties
    • setProperties

      public void setProperties(Map<String,JsFunction> derivedProperties)
      Sets a map of derived properties.
      Parameters:
      derivedProperties - a map of derived properties
    • addAttributes

      public void addAttributes(Map<String,JsFunction> derivedProperties)
      Adds a map of derived properties.
      Parameters:
      derivedProperties - a map of derived properties
    • addAttribute

      public void addAttribute(String caption, JsFunction function)
      Adds a function that calculated a derived property to the given localized attribute name.
      Parameters:
      caption - a localized attribute name
      function - a function that calculated a derived property