Class CustomFormCollectionBuilder
Object
ObjectIdentity
AbstractBuilder
public class CustomFormCollectionBuilder
extends CalculableLineItemCollectionBuilder<CustomFormCollectionBuilder>
CustomFormCollectionBuilder is the starting point of an interface that allows you to manipulate
a custom form object in a custom form header calculation logic.
The header calculation is executed twice: Once as 'pre phase' and once after that as 'post phase'.
Use
The custom form builder is available in the header logic by this call:
IMPORTANT: Please read super class notes on the sequence of execution!
The header calculation is executed twice: Once as 'pre phase' and once after that as 'post phase'.
Use
isPrePhase() and isPostPhase() methods to detect the current phase. The custom form builder is available in the header logic by this call:
def processor = customFormProcessor
IMPORTANT: Please read super class notes on the sequence of execution!
-
Field Summary
Fields inherited from class CalculableLineItemCollectionBuilder
METHOD_ADD_LINE_ITEM, METHOD_ADD_OR_UPDATE_INPUT, METHOD_ADD_OR_UPDATE_OUTPUT, METHOD_UPDATE_FIELD, phase, ROOT_LINE_IDFields inherited from class AbstractBuilder
METHOD_BUILDFields inherited from class ObjectIdentity
classId, idGenerator, instanceId, invocations, m, NONE, parentObjectIdentity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCustomFormBuilderResultbuild()Creates an instance ofCustomFormBuilderResultwith the invocations accumulated in this builder instanceGets a helper class that assists in manipulating the custom formMethods inherited from class CalculableLineItemCollectionBuilder
addLineItem, addLineItem, addLineItem, addOrUpdateInput, addOrUpdateInput, addOrUpdateOutput, addOrUpdateOutput, clearRenderInfo, deleteItem, isPostPhase, isPrePhase, moveItem, renameFolder, setRenderInfo, updateField, updateFieldMethods inherited from class ObjectIdentity
addInvocation, addInvocation
-
Constructor Details
-
CustomFormCollectionBuilder
-
-
Method Details
-
build
public CustomFormBuilderResult build()Creates an instance ofCustomFormBuilderResultwith the invocations accumulated in this builder instance- Specified by:
buildin classAbstractBuilder- Returns:
- a
CustomFormBuilderResultinstance
-
getHelper
Gets a helper class that assists in manipulating the custom form- Returns:
- The helper object
-