E
- the data object of the computed decimalpublic class Computeddecimal<E extends DataObject<E>> extends DataObjectProperty<E> implements CalculatedField<E>
updatedfieldingui
definition, field, parentpayload
Constructor and Description |
---|
Computeddecimal(ComputeddecimalDefinition<E> definition,
DataObjectPayload parentpayload)
creates a computed decimal property
|
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getComputeddecimal()
gets the value of the computed decimal
|
CalculatedFieldTrigger<E,E> |
getFieldTrigger()
gets the trigger for the field calculation
|
NamedList<DataUpdateTrigger<E>> |
UpdateValueWithCalculationResult(java.math.BigDecimal value)
when this method is triggered, a calculated field will update its own value,
and trigger calculation of other fields
|
generateSimpleDataEltFromObject, getDisplayDataElt, getDynamicDataElt, getFieldBufferForGUI
getAllTriggersForRefresh, getFieldFromName, getFieldNumber, getStoredField, getTriggersForThisUpdate, initFromDB, postTreatmentAfterInitFromDB
changeName, cleanName, equals, getName
public Computeddecimal(ComputeddecimalDefinition<E> definition, DataObjectPayload parentpayload)
definition
- definition of the propertyparentpayload
- payload of the parent data objectpublic java.math.BigDecimal getComputeddecimal()
public NamedList<DataUpdateTrigger<E>> UpdateValueWithCalculationResult(java.math.BigDecimal value)
CalculatedField
UpdateValueWithCalculationResult
in interface CalculatedField<E extends DataObject<E>>
value
- the new valuepublic CalculatedFieldTrigger<E,E> getFieldTrigger()