Package com.independentsoft.office.word
Class FieldCode
java.lang.Object
com.independentsoft.office.word.FieldCode
- All Implemented Interfaces:
IContentElement,IRunContent
The Class FieldCode.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanGets the preserve space.getValue()Gets the value.voidsetPreserveSpace(boolean preserveSpace)Sets the preserve space.voidSets the value.toString()
-
Constructor Details
-
FieldCode
public FieldCode()Instantiates a new field code. -
FieldCode
Instantiates a new field code.- Parameters:
text- the text
-
FieldCode
Instantiates a new field code.- Parameters:
field- the field
-
FieldCode
Instantiates a new field code.- Parameters:
text- the textpreserveSpace- the preserve space
-
-
Method Details
-
getContentElements
- Specified by:
getContentElementsin interfaceIContentElement
-
clone
- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIRunContent- Overrides:
clonein classObject
-
toString
-
getValue
Gets the value.- Returns:
- the value
-
setValue
Sets the value.- Parameters:
text- the new value
-
getPreserveSpace
public boolean getPreserveSpace()Gets the preserve space.- Returns:
- the preserve space
-
setPreserveSpace
public void setPreserveSpace(boolean preserveSpace)Sets the preserve space.- Parameters:
preserveSpace- the new preserve space
-