public class RefundAmountRenderer
extends DefaultEditorAreaPanelRenderer
| Constructor and Description |
|---|
RefundAmountRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected Editor |
createEditor(DataAttribute genericAttribute,
WidgetModel model,
String referencedModelProperty)
Creates the actual
Editor object which gets populated later. |
protected Editor |
createEditor(DataType genericType,
WidgetInstanceManager widgetInstanceManager,
Attribute attribute,
Object object)
Render method executes this overriden method
|
protected BigDecimal |
getOrderRefundAmount(ReturnRequestModel returnRequest)
Sums up all the refund amount for all entries and then adds the delivery cost if it is to be refunded
|
protected BigDecimal |
getRefundEntryAmount(ReturnEntryModel returnEntryModel)
Calculates the refund amount for this entry considering the number which was returned
|
protected TypeFacade |
getTypeFacade() |
protected boolean |
isReferenceEditor(DataAttribute genericAttribute) |
void |
render(Component component,
AbstractPanel abstractPanelConfiguration,
Object object,
DataType dataType,
WidgetInstanceManager widgetInstanceManager)
Renders the refund amount of the order into a textbox.
|
void |
setTypeFacade(TypeFacade typeFacade) |
public void render(Component component,
AbstractPanel abstractPanelConfiguration,
Object object,
DataType dataType,
WidgetInstanceManager widgetInstanceManager)
component - abstractPanelConfiguration - as CustomPanelobject - as ReturnRequestModeldataType - widgetInstanceManager - protected Editor createEditor(DataType genericType,
WidgetInstanceManager widgetInstanceManager,
Attribute attribute,
Object object)
genericType - widgetInstanceManager - attribute - object - Editorprotected Editor createEditor(DataAttribute genericAttribute,
WidgetModel model,
String referencedModelProperty)
Editor object which gets populated later.genericAttribute - model - referencedModelProperty - protected BigDecimal getOrderRefundAmount(ReturnRequestModel returnRequest)
returnRequest - the model containing the list of ReturnEntryModelprotected BigDecimal getRefundEntryAmount(ReturnEntryModel returnEntryModel)
returnEntryModel - protected boolean isReferenceEditor(DataAttribute genericAttribute)
protected TypeFacade getTypeFacade()
public void setTypeFacade(TypeFacade typeFacade)
Copyright © 2017 SAP SE. All Rights Reserved.