Class SimpleVariableGetField
java.lang.Object
com.independentsoft.office.odf.fields.Field
com.independentsoft.office.odf.fields.SimpleVariableGetField
- All Implemented Interfaces:
IContentElement,IParagraphContent
Sets the display of the value of a simple variable.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the SimpleVariableGetField class.Instantiates a new simple variable get 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 display of a variable get field.getName()Gets the variable name.Returns the parent content element.getStyle()Gets the data style to format a field value.getValue()Gets the variable field.voidsetDisplayType(DisplayType displayType)Sets the display of a variable get field.voidSets the variable name.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the data style to format a field value.voidSets the variable field.toString()Converts the value of the current SimpleVariableGetField object to its equivalent string representation.
-
Constructor Details
-
SimpleVariableGetField
public SimpleVariableGetField()Initializes a new instance of the SimpleVariableGetField class. -
SimpleVariableGetField
Instantiates a new simple variable get 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 SimpleVariableGetField object to its equivalent string representation. -
getName
Gets the variable name.- Returns:
- the name
-
setName
Sets the variable name.- Parameters:
name- the new name
-
getDisplayType
Gets the display of a variable get field.- Returns:
- the display type
-
setDisplayType
Sets the display of a variable get field.- Parameters:
displayType- the new display type
-
getStyle
Gets the data style to format a field value.- Returns:
- the style
-
setStyle
Sets the data style to format a field value.- Parameters:
style- the new style
-
getValue
Gets the variable field.- Returns:
- the value
-
setValue
Sets the variable field.- Parameters:
value- the new value
-