Class Expression
java.lang.Object
com.independentsoft.office.odf.fields.Field
com.independentsoft.office.odf.fields.Expression
- All Implemented Interfaces:
IContentElement,IParagraphContent
Represents expressions that are evaluated and the resulting value displayed.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the Expression class.Expression(InternalXMLStreamReader reader)Instantiates a new expression. -
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 type of the field.Gets the formula or expression used to compute the value of a field.Returns the parent content element.getStyle()Gets the data style to format a field value.getType()Gets the value-type of a table cell,a text field, or a form property.getValue()Gets the current date value contained by a cell.voidsetDisplayType(DisplayType displayType)Sets the display type of the field.voidsetFormula(String formula)Sets the formula or expression used to compute the value of a field.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the data style to format a field value.voidsetType(VariableValueType type)Sets the value-type of a table cell,a text field, or a form property.voidSets the current date value contained by a cell.toString()Converts the value of the current Expression object to its equivalent string representation.
-
Constructor Details
-
Expression
public Expression()Initializes a new instance of the Expression class. -
Expression
Instantiates a new expression.- 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 Expression object to its equivalent string representation. -
getType
Gets the value-type of a table cell,a text field, or a form property.- Returns:
- the type
-
setType
Sets the value-type of a table cell,a text field, or a form property.- Parameters:
type- the new type
-
getDisplayType
Gets the display type of the field.- Returns:
- the display type
-
setDisplayType
Sets the display type of the field.- Parameters:
displayType- the new display type
-
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
-
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 current date value contained by a cell.- Returns:
- the value
-
setValue
Sets the current date value contained by a cell.- Parameters:
value- the new value
-