Interface MoneyColumn<C extends MoneyColumn<C>>
- All Superinterfaces:
Column<C>,Comparable<C>,Component<C>,Copyable<C>,CustomCssComponent<C>,Serializable
- All Known Implementing Classes:
DefaultMoneyColumn
Represents the metadata for a column that displays a monetary amount. It is expected that this
field targets a money object, and not a big decimal, for example:
{
"defaultPrice": {
"amount": 10,
"currency": "USD"
}
}
- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
Column.ColumnAttributes -
Field Summary
Fields inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
CSS_ATTRIBUTE -
Method Summary
Modifier and TypeMethodDescriptiondefault CSets the value ofMoneyColumn.Attributes.SIMPLE_VALUEto false.default CcurrencyCodeField(String currencyCodeField) Sets the name of the property with the currency that should be used when formatting the amount.default CSets the value ofMoneyColumn.Attributes.SIMPLE_VALUEto true.default CsimpleValue(boolean isSimpleValue) Sets the value ofMoneyColumn.Attributes.SIMPLE_VALUE.Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
addCellCssClass, addCellCssClass, addCellCssClass, addHeaderCssClass, addHeaderCssClass, addHeaderCssClass, align, alignCenter, alignLeft, alignRight, clearCellCssClasses, clearHeaderCssClasses, colSpan, colSpan, filterAndSortAlias, getAlign, getColSpan, getDataCellCssClasses, getHeaderCssClasses, getName, getWidth, isSortable, name, notSortable, removeCellCssClass, removeCellCssClass, removeCellCssClass, removeHeaderCssClass, removeHeaderCssClass, removeHeaderCssClass, setAlign, setColSpan, setName, setSortable, setWidth, sortable, sortable, widthMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, typeMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
addCssClass, addCssClass, addCssClass, clearCssClasses, getCssClasses, removeCssClass, removeCssClass, removeCssClass
-
Method Details
-
currencyCodeField
Sets the name of the property with the currency that should be used when formatting the amount. If no currency code field is defined, then this component will look at the `currency` on the money object.- Parameters:
currencyCodeField- the currency code field- Returns:
- this
-
simpleValue
Sets the value ofMoneyColumn.Attributes.SIMPLE_VALUE.- Parameters:
isSimpleValue- The value to set- Returns:
this- Since:
- 2.x.x
-
simpleValue
Sets the value ofMoneyColumn.Attributes.SIMPLE_VALUEto true.- Returns:
this- Since:
- 2.x.x
-
complexValue
Sets the value ofMoneyColumn.Attributes.SIMPLE_VALUEto false.- Returns:
this- Since:
- 2.x.x
-