public final class FieldOptions
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
IBarcodeGenerator |
getBarcodeGenerator()
Gets or set custom barcode generator.
|
java.lang.String[] |
getBuiltInTemplatesPaths()
Gets paths of MS Word built-in templates.
|
IComparisonExpressionEvaluator |
getComparisonExpressionEvaluator()
Gets the field comparison expressions evaluator.
|
UserInformation |
getCurrentUser()
Gets the current user information.
|
java.lang.String |
getCustomTocStyleSeparator()
Gets custom style separator for the \t switch in
FieldToc field. |
java.lang.String |
getDefaultDocumentAuthor()
Gets default document author's name.
|
IFieldDatabaseProvider |
getFieldDatabaseProvider()
Gets a provider that returns a query result for the
FieldDatabase field. |
int |
getFieldIndexFormat()
Gets a
getFieldIndexFormat() / setFieldIndexFormat(int) that represents the formatting for the FieldIndex fields in the document. |
IFieldUpdateCultureProvider |
getFieldUpdateCultureProvider()
Gets a provider that returns a culture object specific for each particular field.
|
int |
getFieldUpdateCultureSource()
Specifies what culture to use to format the field result.
|
IFieldUpdatingCallback |
getFieldUpdatingCallback()
Gets
IFieldUpdatingCallback implementation |
java.lang.String |
getFileName()
Gets the file name of the document.
|
boolean |
getLegacyNumberFormat()
Gets the value indicating whether legacy (early than AW 13.10) number format for fields is enabled or not.
|
CultureInfo |
getPreProcessCulture()
Gets the culture to preprocess field values.
|
IFieldResultFormatter |
getResultFormatter()
Allows to control how the field result is formatted.
|
java.lang.String |
getTemplateName()
Gets the file name of the template used by the document.
|
ToaCategories |
getToaCategories()
Gets the table of authorities categories.
|
boolean |
getUseInvariantCultureNumberFormat()
Gets the value indicating that number format is parsed using invariant culture or not
|
IFieldUserPromptRespondent |
getUserPromptRespondent()
Gets the respondent to user prompts during field update.
|
boolean |
isBidiTextSupportedOnUpdate()
Gets the value indicating whether bidirectional text is fully supported during field update or not.
|
void |
isBidiTextSupportedOnUpdate(boolean value)
Sets the value indicating whether bidirectional text is fully supported during field update or not.
|
void |
setBarcodeGenerator(IBarcodeGenerator value)
Gets or set custom barcode generator.
|
void |
setBuiltInTemplatesPaths(java.lang.String[] value)
Sets paths of MS Word built-in templates.
|
void |
setComparisonExpressionEvaluator(IComparisonExpressionEvaluator value)
Sets the field comparison expressions evaluator.
|
void |
setCurrentUser(UserInformation value)
Sets the current user information.
|
void |
setCustomTocStyleSeparator(java.lang.String value)
Sets custom style separator for the \t switch in
FieldToc field. |
void |
setDefaultDocumentAuthor(java.lang.String value)
Sets default document author's name.
|
void |
setFieldDatabaseProvider(IFieldDatabaseProvider value)
Sets a provider that returns a query result for the
FieldDatabase field. |
void |
setFieldIndexFormat(int value)
Sets a
getFieldIndexFormat() / setFieldIndexFormat(int) that represents the formatting for the FieldIndex fields in the document. |
void |
setFieldUpdateCultureProvider(IFieldUpdateCultureProvider value)
Sets a provider that returns a culture object specific for each particular field.
|
void |
setFieldUpdateCultureSource(int value)
Specifies what culture to use to format the field result.
|
void |
setFieldUpdatingCallback(IFieldUpdatingCallback value)
Sets
IFieldUpdatingCallback implementation |
void |
setFileName(java.lang.String value)
Sets the file name of the document.
|
void |
setLegacyNumberFormat(boolean value)
Sets the value indicating whether legacy (early than AW 13.10) number format for fields is enabled or not.
|
void |
setPreProcessCulture(CultureInfo value)
Sets the culture to preprocess field values.
|
void |
setResultFormatter(IFieldResultFormatter value)
Allows to control how the field result is formatted.
|
void |
setTemplateName(java.lang.String value)
Sets the file name of the template used by the document.
|
void |
setToaCategories(ToaCategories value)
Sets the table of authorities categories.
|
void |
setUseInvariantCultureNumberFormat(boolean value)
Sets the value indicating that number format is parsed using invariant culture or not
|
void |
setUserPromptRespondent(IFieldUserPromptRespondent value)
Sets the respondent to user prompts during field update.
|
public final int getFieldUpdateCultureSource()
By default, the culture of the current thread is used.
The setting affects only date/time fields with \\@ format switch.
int value. The returned value is one of FieldUpdateCultureSource constants.public final void setFieldUpdateCultureSource(int value)
By default, the culture of the current thread is used.
The setting affects only date/time fields with \\@ format switch.
value - The corresponding int value. The value must be one of FieldUpdateCultureSource constants.public final IFieldUpdateCultureProvider getFieldUpdateCultureProvider()
The provider is requested when the value of getFieldUpdateCultureSource() / setFieldUpdateCultureSource(int) is FieldUpdateCultureSource.FieldCode.
If the provider is present, then the culture object it returns is used for the field update. Otherwise, a system culture is used.
public final void setFieldUpdateCultureProvider(IFieldUpdateCultureProvider value)
The provider is requested when the value of getFieldUpdateCultureSource() / setFieldUpdateCultureSource(int) is FieldUpdateCultureSource.FieldCode.
If the provider is present, then the culture object it returns is used for the field update. Otherwise, a system culture is used.
value - A provider that returns a culture object specific for each particular field.public final boolean isBidiTextSupportedOnUpdate()
When this property is set to true, additional steps are performed to produce Right-To-Left language (i.e. Arabic or Hebrew) compatible field result during its update.
When this property is set to false and Right-To-Left language is used, correctness of field result after its update is not guaranteed.
The default value is false.
public final void isBidiTextSupportedOnUpdate(boolean value)
When this property is set to true, additional steps are performed to produce Right-To-Left language (i.e. Arabic or Hebrew) compatible field result during its update.
When this property is set to false and Right-To-Left language is used, correctness of field result after its update is not guaranteed.
The default value is false.
value - The value indicating whether bidirectional text is fully supported during field update or not.public final IFieldUserPromptRespondent getUserPromptRespondent()
If the value of this property is set to null, the fields that require user response on prompting (such as FieldAsk or FieldFillIn) are not updated.
The default value is null.
public final void setUserPromptRespondent(IFieldUserPromptRespondent value)
If the value of this property is set to null, the fields that require user response on prompting (such as FieldAsk or FieldFillIn) are not updated.
The default value is null.
value - The respondent to user prompts during field update.public final IComparisonExpressionEvaluator getComparisonExpressionEvaluator()
IComparisonExpressionEvaluatorpublic final void setComparisonExpressionEvaluator(IComparisonExpressionEvaluator value)
value - The field comparison expressions evaluator.IComparisonExpressionEvaluatorpublic final java.lang.String getDefaultDocumentAuthor()
public final void setDefaultDocumentAuthor(java.lang.String value)
value - Default document author's name.public final java.lang.String getCustomTocStyleSeparator()
FieldToc field.
By default, custom styles defined by the \t switch in the FieldToc field are separated by a delimiter taken from the current culture. This property overrides that behaviour by specifying a user defined delimiter.FieldToc field.public final void setCustomTocStyleSeparator(java.lang.String value)
FieldToc field.
By default, custom styles defined by the \t switch in the FieldToc field are separated by a delimiter taken from the current culture. This property overrides that behaviour by specifying a user defined delimiter.value - Custom style separator for the \t switch in FieldToc field.public final boolean getLegacyNumberFormat()
When this property is set to true, template symbol "#" worked as in .net: Replaces the pound sign with the corresponding digit if one is present; otherwise, no symbols appears in the result string.
When this property is set to false, template symbol "#" works as MS Word: This format item specifies the requisite numeric places to display in the result. If the result does not include a digit in that place, MS Word displays a space. For example, { = 9 + 6 \# $### } displays $ 15.
The default value is false.
public final void setLegacyNumberFormat(boolean value)
When this property is set to true, template symbol "#" worked as in .net: Replaces the pound sign with the corresponding digit if one is present; otherwise, no symbols appears in the result string.
When this property is set to false, template symbol "#" works as MS Word: This format item specifies the requisite numeric places to display in the result. If the result does not include a digit in that place, MS Word displays a space. For example, { = 9 + 6 \# $### } displays $ 15.
The default value is false.
value - The value indicating whether legacy (early than AW 13.10) number format for fields is enabled or not.public final boolean getUseInvariantCultureNumberFormat()
When this property is set to true, number format is taken from an invariant culture.
When this property is set to false, number format is taken from the current thread's culture.
The default value is false.
public final void setUseInvariantCultureNumberFormat(boolean value)
When this property is set to true, number format is taken from an invariant culture.
When this property is set to false, number format is taken from the current thread's culture.
The default value is false.
value - The value indicating that number format is parsed using invariant culture or notpublic final IBarcodeGenerator getBarcodeGenerator()
IBarcodeGenerator.public final void setBarcodeGenerator(IBarcodeGenerator value)
IBarcodeGenerator.value - Or set custom barcode generator.public final IFieldDatabaseProvider getFieldDatabaseProvider()
FieldDatabase field.FieldDatabase field.public final void setFieldDatabaseProvider(IFieldDatabaseProvider value)
FieldDatabase field.value - A provider that returns a query result for the FieldDatabase field.public final CultureInfo getPreProcessCulture()
Currently this property only affects value of the FieldDocProperty field.
The default value is null. When this property is set to null, the FieldDocProperty field's value is preprocessed with the culture controlled by the getFieldUpdateCultureSource() / setFieldUpdateCultureSource(int) property.
public final void setPreProcessCulture(CultureInfo value)
Currently this property only affects value of the FieldDocProperty field.
The default value is null. When this property is set to null, the FieldDocProperty field's value is preprocessed with the culture controlled by the getFieldUpdateCultureSource() / setFieldUpdateCultureSource(int) property.
value - The culture to preprocess field values.public final UserInformation getCurrentUser()
public final void setCurrentUser(UserInformation value)
value - The current user information.public final ToaCategories getToaCategories()
public final void setToaCategories(ToaCategories value)
value - The table of authorities categories.public final int getFieldIndexFormat()
getFieldIndexFormat() / setFieldIndexFormat(int) that represents the formatting for the FieldIndex fields in the document.getFieldIndexFormat() / setFieldIndexFormat(int) that represents the formatting for the FieldIndex fields in the document. The returned value is one of FieldIndexFormat constants.public final void setFieldIndexFormat(int value)
getFieldIndexFormat() / setFieldIndexFormat(int) that represents the formatting for the FieldIndex fields in the document.value - A getFieldIndexFormat() / setFieldIndexFormat(int) that represents the formatting for the FieldIndex fields in the document. The value must be one of FieldIndexFormat constants.public final java.lang.String getFileName()
This property is used by the FieldFileName field with higher priority than the Document.getOriginalFileName() property.
public final void setFileName(java.lang.String value)
This property is used by the FieldFileName field with higher priority than the Document.getOriginalFileName() property.
value - The file name of the document.public final java.lang.String getTemplateName()
This property is used by the FieldTemplate field if the Document.getAttachedTemplate() / Document.setAttachedTemplate(java.lang.String) property is empty.
If this property is empty, the default template file name Normal.dotm is used.
public final void setTemplateName(java.lang.String value)
This property is used by the FieldTemplate field if the Document.getAttachedTemplate() / Document.setAttachedTemplate(java.lang.String) property is empty.
If this property is empty, the default template file name Normal.dotm is used.
value - The file name of the template used by the document.public final IFieldResultFormatter getResultFormatter()
IFieldResultFormatter value.public final void setResultFormatter(IFieldResultFormatter value)
value - The corresponding IFieldResultFormatter value.public final java.lang.String[] getBuiltInTemplatesPaths()
This property is used by the FieldAutoText and FieldGlossary fields, if referenced auto text entry is not found in the Document.getAttachedTemplate() / Document.setAttachedTemplate(java.lang.String) template.
By default MS Word stores built-in templates in c:\Users\
public final void setBuiltInTemplatesPaths(java.lang.String[] value)
This property is used by the FieldAutoText and FieldGlossary fields, if referenced auto text entry is not found in the Document.getAttachedTemplate() / Document.setAttachedTemplate(java.lang.String) template.
By default MS Word stores built-in templates in c:\Users\
value - Paths of MS Word built-in templates.public final IFieldUpdatingCallback getFieldUpdatingCallback()
IFieldUpdatingCallback implementationIFieldUpdatingCallback implementationpublic final void setFieldUpdatingCallback(IFieldUpdatingCallback value)
IFieldUpdatingCallback implementationvalue - IFieldUpdatingCallback implementation