public class ComputedDecimal extends Property<ComputedDecimal> implements FormulaDefinitionElement
Property.PropertyElementDisplayDefinition
FIELDDIPLSAY_TITLE_MOD, FIELDDISPLAY_BOTTOMNOTES, FIELDDISPLAY_NONE, FIELDDISPLAY_NORMAL, FIELDDISPLAY_NORMAL_MOD, FIELDDISPLAY_TITLE, parent
Constructor and Description |
---|
ComputedDecimal(java.lang.String name,
java.lang.String fieldlabel,
int precision,
int scale,
FormulaDefinitionElement formula)
creates a computed decimal field without a formatter
|
ComputedDecimal(java.lang.String name,
java.lang.String fieldlabel,
int precision,
int scale,
FormulaDefinitionElement formula,
DecimalFormatter decimalformatter)
creates a computed decimal field with a formatter
|
Modifier and Type | Method and Description |
---|---|
void |
controlAfterParentDefinition()
to be implemented if controls have to be performed after parent is added.
|
java.lang.String |
generateFormulaElement() |
CalculatedFieldTriggerPath[] |
getAllTriggerPaths() |
java.util.ArrayList<DataObjectDefinition> |
getExternalObjectDependence() |
java.lang.String |
getJavaType() |
DataObjectDefinition |
getOwnerObject() |
java.lang.String[] |
getPropertyDeepCopyStatement()
Returns the required deepcopy statement for the property, sends back null if
nothing is required.
|
java.lang.String[] |
getPropertyExtractMethod()
This method should return non null value only if
setCreationDataInputForUpdate() is set
|
java.lang.String[] |
getPropertyInitMethod()
this method uses the context data for creation and the data-input for
standard creation.
|
void |
setFinalSettings()
an abstract method to be implemented by properties for finalizations to be
performed after all data objects have been created.
|
void |
setTriggersOnSourceFields(CalculatedFieldTriggerPath triggerpath)
sets the triggers on the origin fields of the formula so that formula
calculation is triggered when the field value changes.
|
void |
writeDependentClass(SourceGenerator sg,
Module module)
only send here classes that are NOT data objects.
|
addBusinessRule, addChoiceCategoryHelper, addContextForDataCreation, addDataAccessMethod, addDataInput, addDependentProperty, addDisplayProfileForProperty, addElement, addElement, addElementasSearchElement, addExternalObjectProperty, addFieldOverrides, addMethodAdditionalProcessing, addObjectToAuthorityMapper, addPropertyGenerics, addStringHelper, generatePropertyHelperToFile, getBusinessRule, getBusinessRuleByName, getBusinessRuleNumber, getChoiceCategoryByKey, getChoiceCategoryKeyNumber, getChoiceCategoryNumber, getContextDataForCreation, getContextDataForCreationSize, getDataAccessMethod, getDataAccessMethod, getDataAccessMethodnumber, getDataInputForCreation, getDataInputSize, getDataObjectConstructorAttributes, getDataObjectFieldName, getDependentProperties, getDisplayDefinitionForElement, getDisplayProfileForProperty, getDisplayProfileForPropertyNumber, getExternalObject, getExternalObjectProperty, getExternalObjectPropertySize, getFieldOverridesat, getFieldOverridesNumber, getInstancename, getJavaClassType, getMethodAdditionalProcessing, getMethodAdditionalProcessingnumber, getParent, getPropertyclassname, getPropertyGenerics, getPropertyGenericsSize, getPropertyGenericsString, getPropertyHelperName, hasDynamicDefinitionHelper, hasInterface, hasStaticQuery, hideDataInputForCreation, isDatainputatbottom, isDataInputHiddenForCreation, isDataInputUsedForUpdate, isLegacy, isPropertyHelperTransient, setAsLegacy, setDatainputatbottom, setDataInputForUpdate, setDynamicDefinitionHelper, setExtraAttributes, writeAdditionalDefinition
AddElementWithSearch, addIndex, getDisplayname, getElements, getIndex, getSearchWidgetList, getTooltip
changeName, cleanName, equals, getName
public ComputedDecimal(java.lang.String name, java.lang.String fieldlabel, int precision, int scale, FormulaDefinitionElement formula, DecimalFormatter decimalformatter)
name
- name of the field (should be valid java attribute
name)fieldlabel
- label in default languageprecision
- (digits to the right of decimal point (e.g. 533.33
has precision on 2)scale
- total number of digits of the number (e.g. 533.33 is
5 digits)formula
- formula to calculate the field valuedecimalformatter
- formatter for the field (if graphical display is
expected)public ComputedDecimal(java.lang.String name, java.lang.String fieldlabel, int precision, int scale, FormulaDefinitionElement formula)
name
- name of the field (should be valid java attribute
name)fieldlabel
- label in default languageprecision
- (digits to the right of decimal point (e.g. 533.33
has precision on 2)scale
- total number of digits of the number (e.g. 533.33 is
5 digits)formula
- formula to calculate the field valuepublic void controlAfterParentDefinition()
Property
controlAfterParentDefinition
in class Property<ComputedDecimal>
public java.lang.String[] getPropertyInitMethod()
Property
getPropertyInitMethod
in class Property<ComputedDecimal>
public java.lang.String[] getPropertyExtractMethod()
Property
getPropertyExtractMethod
in class Property<ComputedDecimal>
public java.util.ArrayList<DataObjectDefinition> getExternalObjectDependence()
getExternalObjectDependence
in class Property<ComputedDecimal>
public void setFinalSettings()
Property
setFinalSettings
in class Property<ComputedDecimal>
public java.lang.String getJavaType()
getJavaType
in class ObjectElement
public void writeDependentClass(SourceGenerator sg, Module module) throws java.io.IOException
ObjectElement
writeDependentClass
in class ObjectElement
java.io.IOException
public DataObjectDefinition getOwnerObject()
getOwnerObject
in interface FormulaDefinitionElement
public java.lang.String generateFormulaElement()
generateFormulaElement
in interface FormulaDefinitionElement
public void setTriggersOnSourceFields(CalculatedFieldTriggerPath triggerpath)
FormulaDefinitionElement
setTriggersOnSourceFields
in interface FormulaDefinitionElement
public CalculatedFieldTriggerPath[] getAllTriggerPaths()
getAllTriggerPaths
in interface FormulaDefinitionElement
public java.lang.String[] getPropertyDeepCopyStatement()
Property
getPropertyDeepCopyStatement
in class Property<ComputedDecimal>