public class DerivedProperties extends AbstractPivotObject
Constructor and Description |
---|
DerivedProperties() |
Modifier and Type | Method and Description |
---|---|
DerivedProperties |
addAttribute(java.lang.String caption,
JsFunction function)
Adds a function that calculated a derived property to the given localized attribute name.
|
DerivedProperties |
addAttributes(java.util.Map<java.lang.String,JsFunction> derivedProperties)
Adds a map of derived properties.
|
java.util.Map<java.lang.String,JsFunction> |
getProperties() |
DerivedProperties |
setProperties(java.util.Map<java.lang.String,JsFunction> derivedProperties)
Sets a map of derived properties.
|
createGsonBuilder, getSharedGson, toString
public java.util.Map<java.lang.String,JsFunction> getProperties()
public DerivedProperties setProperties(java.util.Map<java.lang.String,JsFunction> derivedProperties)
derivedProperties
- a map of derived propertiespublic DerivedProperties addAttributes(java.util.Map<java.lang.String,JsFunction> derivedProperties)
derivedProperties
- a map of derived propertiespublic DerivedProperties addAttribute(java.lang.String caption, JsFunction function)
caption
- a localized attribute namefunction
- a function that calculated a derived property