Class DerivedProperties

java.lang.Object
io.jmix.pivottable.model.AbstractPivotObject
io.jmix.pivottable.model.DerivedProperties
All Implemented Interfaces:
Serializable

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

    • DerivedProperties

      public DerivedProperties()
  • Method Details

    • getProperties

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

      public DerivedProperties setProperties(Map<String,JsFunction> derivedProperties)
      Sets a map of derived properties.
      Parameters:
      derivedProperties - a map of derived properties
      Returns:
      a reference to this object
    • addAttributes

      public DerivedProperties addAttributes(Map<String,JsFunction> derivedProperties)
      Adds a map of derived properties.
      Parameters:
      derivedProperties - a map of derived properties
      Returns:
      a reference to this object
    • addAttribute

      public DerivedProperties 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
      Returns:
      a reference to this object