public abstract class AbstractProductCustomColumn extends AbstractSimpleCustomColumnConfiguration<Object,ItemModel>
AbstractSimpleCustomColumnConfiguration.SimpleCustomColumnValueHandlereditable, editor, name, selectable, sortable, visible| Constructor and Description |
|---|
AbstractProductCustomColumn() |
| Modifier and Type | Method and Description |
|---|---|
protected ProductModel |
getBaseProduct(ProductModel product) |
protected CsPromotionService |
getCsPromotionService() |
protected ProductModel |
getFindProduct(ItemModel item)
Given an item find the product.
|
Object |
getItemValue(ItemModel item,
Locale locale)
Override this method to lookup the value for this column.
|
protected abstract String |
getProductValue(ProductModel product,
Locale locale)
Override to get the value for this column for the product specified.
|
getCellEditor, getCellRenderer, getColumnDescriptor, getValueHandlergetAllLabels, getLabel, getLabel, getName, setAllLabels, setCellEditor, setLanguagesgetEditor, getLanguages, getParameter, getParameters, getPosition, getWidth, isEditable, isLocalized, isSelectable, isSortable, isVisible, setCellRenderer, setEditable, setEditor, setName, setParameter, setParameters, setPosition, setSelectable, setSortable, setVisible, setWidthpublic Object getItemValue(ItemModel item, Locale locale) throws ValueHandlerException
AbstractSimpleCustomColumnConfigurationgetItemValue in class AbstractSimpleCustomColumnConfiguration<Object,ItemModel>item - The item that this column is looked up onlocale - the display localValueHandlerException - thrown or errorprotected ProductModel getFindProduct(ItemModel item)
item - the itemprotected abstract String getProductValue(ProductModel product, Locale locale)
product - the productlocale - the display localeprotected ProductModel getBaseProduct(ProductModel product)
protected CsPromotionService getCsPromotionService()
Copyright © 2017 SAP SE. All Rights Reserved.