Class SequenceVariableField
java.lang.Object
com.independentsoft.office.odf.fields.Field
com.independentsoft.office.odf.fields.SequenceVariableField
- All Implemented Interfaces:
IContentElement,IParagraphContent
Represents a sequence field. A sequence field changes the value of a sequence variable by a specified formula and displays the changed value of the sequence variable in a specified format.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the SequenceVariableField class.Instantiates a new sequence variable field. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Gets the formula or expression used to compute the value of a field.getName()Gets the unique name of a variable to display.Specifies the numbering sequence.Returns the parent content element.Gets the name that is used as a reference.getValue()Gets the sequence variable.booleanSpecifies whether letter synchronization shall take place.voidsetEnableLetterSynchronization(boolean enableLetterSynchronization)Specifies whether letter synchronization shall take place.voidsetFormula(String formula)Sets the formula or expression used to compute the value of a field.voidSets the unique name of a variable to display.voidsetNumberFormat(String numberFormat)Specifies the numbering sequence.voidsetParent(IContentElement parent)Sets the parent content element.voidsetReferenceName(String referenceName)Sets the name that is used as a reference.voidSets the sequence variable.toString()Converts the value of the current SequenceVariableField object to its equivalent string representation.
-
Constructor Details
-
SequenceVariableField
public SequenceVariableField()Initializes a new instance of the SequenceVariableField class. -
SequenceVariableField
Instantiates a new sequence variable field.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classField- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Overrides:
getParentin classField- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Overrides:
setParentin classField- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIParagraphContent- Specified by:
clonein classField- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current SequenceVariableField object to its equivalent string representation. -
getName
Gets the unique name of a variable to display.- Returns:
- the name
-
setName
Sets the unique name of a variable to display.- Parameters:
name- the new name
-
getFormula
Gets the formula or expression used to compute the value of a field.- Returns:
- the formula
-
setFormula
Sets the formula or expression used to compute the value of a field.- Parameters:
formula- the new formula
-
getNumberFormat
Specifies the numbering sequence. The defined values are: - 1: Hindu-Arabic number sequence starts with 1. - a: number sequence of lowercase Modern Latin basic alphabet characters starts with "a". - A: number sequence of uppercase Modern Latin basic alphabet characters starts with "A". - i: number sequence of lowercase Roman numerals starts with "i". - I: number sequence of uppercase Roman numerals start with "I".- Returns:
- the number format
-
setNumberFormat
Specifies the numbering sequence. The defined values are: - 1: Hindu-Arabic number sequence starts with 1. - a: number sequence of lowercase Modern Latin basic alphabet characters starts with "a". - A: number sequence of uppercase Modern Latin basic alphabet characters starts with "A". - i: number sequence of lowercase Roman numerals starts with "i". - I: number sequence of uppercase Roman numerals start with "I".- Parameters:
numberFormat- the new number format
-
isEnableLetterSynchronization
public boolean isEnableLetterSynchronization()Specifies whether letter synchronization shall take place. If letters are used in alphabetical order for numbering, there are two ways to process overflows within a digit, as follows: -false: A new digit is inserted that always has the same value as the following digit. The numbering sequence (for lower case numberings) in that case is a, b, c, ..., z, aa, bb, cc, ..., zz, aaa, ..., and so on. -true: A new digit is inserted. Its start value is �a� or �A�, and it is incremented every time an overflow occurs in the following digit. The numbering sequence (for lower case numberings) in that case is a,b,c, ..., z, aa, ab, ac, ...,az, ba, ..., and so on.- Returns:
- true, if is enable letter synchronization
-
setEnableLetterSynchronization
public void setEnableLetterSynchronization(boolean enableLetterSynchronization)Specifies whether letter synchronization shall take place. If letters are used in alphabetical order for numbering, there are two ways to process overflows within a digit, as follows: -false: A new digit is inserted that always has the same value as the following digit. The numbering sequence (for lower case numberings) in that case is a, b, c, ..., z, aa, bb, cc, ..., zz, aaa, ..., and so on. -true: A new digit is inserted. Its start value is �a� or �A�, and it is incremented every time an overflow occurs in the following digit. The numbering sequence (for lower case numberings) in that case is a,b,c, ..., z, aa, ab, ac, ...,az, ba, ..., and so on.- Parameters:
enableLetterSynchronization- the new enable letter synchronization
-
getReferenceName
Gets the name that is used as a reference.- Returns:
- the reference name
-
setReferenceName
Sets the name that is used as a reference.- Parameters:
referenceName- the new reference name
-
getValue
Gets the sequence variable.- Returns:
- the value
-
setValue
Sets the sequence variable.- Parameters:
value- the new value
-