FieldBuilder
Overview
FieldBuilder is a class in Aspose.Words FOSS for Java.
Inherits from: IFieldBuildingBlock.
Builds a field from field code tokens (arguments and switches).
Edition status of its 4 listed members (a property and its accessor methods are listed separately, overloads once): 4 not yet exercised by a verified example.
This class declares 12 methods for FieldBuilder objects in Java programs.
Available methods include: FieldBuilder, addArgument, addSwitch, buildAndInsert.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Methods
| Signature | Description |
|---|---|
FieldBuilder(fieldType: int) | Initializes an instance of the FieldBuilder class. |
addArgument(argument: String) → FieldBuilder | Adds a field’s argument. |
addArgument(argument: int) → FieldBuilder | Adds a field’s argument. |
addArgument(argument: double) → FieldBuilder | Adds a field’s argument. |
addArgument(argument: FieldBuilder) → FieldBuilder | Adds a child field represented by another FieldBuilder to the field’s code. |
addArgument(argument: FieldArgumentBuilder) → FieldBuilder | Adds a field’s argument represented by FieldArgumentBuilder to the field’s code. |
addSwitch(switchName: String) → FieldBuilder | Adds a field’s switch. |
addSwitch(switchName: String, switchArgument: String) → FieldBuilder | Adds a field’s switch. |
addSwitch(switchName: String, switchArgument: int) → FieldBuilder | Adds a field’s switch. |
addSwitch(switchName: String, switchArgument: double) → FieldBuilder | Adds a field’s switch. |
buildAndInsert(refNode: Inline) → Field | Builds and inserts a field into the document before the specified inline node. |
buildAndInsert(refNode: Paragraph) → Field | Builds and inserts a field into the document to the end of the specified paragraph. |