public abstract class FieldChar extends SpecialChar
A complete field in a Microsoft Word document is a complex structure consisting of a field start character, field code, field separator character, field result and field end character. Some fields only have field start, field code and field end.
To easily insert a new field into a document, use the DocumentBuilder.insertField(java.lang.String) method.
FieldStart,
FieldSeparator,
FieldEnd| Constructor and Description |
|---|
FieldChar() |
| Modifier and Type | Method and Description |
|---|---|
Field |
getField()
Returns a field for the field char.
|
int |
getFieldType()
Returns the type of the field.
|
boolean |
isDirty()
Gets whether the current result of the field is no longer correct (stale) due to other modifications made to the document.
|
void |
isDirty(boolean value)
Sets whether the current result of the field is no longer correct (stale) due to other modifications made to the document.
|
boolean |
isLocked()
Gets whether the parent field is locked (should not recalculate its result).
|
void |
isLocked(boolean value)
Sets whether the parent field is locked (should not recalculate its result).
|
accept, getNodeType, getTextclearRunAttrs, fetchInheritedRunAttr, getDirectRunAttr, getDocument_IInline, getFont, getParentParagraph_IInline, getParentParagraph, isDeleteRevision, isFormatRevision, isInsertRevision, isMoveFromRevision, isMoveToRevision, removeMoveRevisions, removeRunAttr, setRunAttrdd, deepClone, getAncestor, getAncestor, getCustomNodeId, getDocument, getNextSibling, getParentNode, getPreviousSibling, getRange, isComposite, memberwiseClone, nextPreOrder, nodeTypeToString, previousPreOrder, remove, setCustomNodeId, toString, toString, toString, visitorActionToBoolpublic Field getField()
Field object is created each time the method is called.public int getFieldType()
FieldType constants.public boolean isLocked()
public void isLocked(boolean value)
value - Whether the parent field is locked (should not recalculate its result).public boolean isDirty()
public void isDirty(boolean value)
value - Whether the current result of the field is no longer correct (stale) due to other modifications made to the document.