Package com.independentsoft.office.odf
Class CoveredCell
java.lang.Object
com.independentsoft.office.odf.Cell
com.independentsoft.office.odf.CoveredCell
- All Implemented Interfaces:
IContentElement
Represents a cells that are covered by an object that spans multiple columns or rows.
-
Field Summary
Fields inherited from class com.independentsoft.office.odf.Cell
booleanValue, content, contentValidation, currency, dateValue, formula, isProtected, matrixColumnsSpannedCount, matrixRowsSpannedCount, numberOfRepeatedCells, numericValue, stringValue, style, timeValue, type -
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the CoveredCell class.CoveredCell(boolean value)Initializes a new instance of the CoveredCell class.CoveredCell(double value)Initializes a new instance of the CoveredCell class.CoveredCell(String value)Initializes a new instance of the CoveredCell class.CoveredCell(String value, CellValueType type)Initializes a new instance of the CoveredCell class.CoveredCell(Date value)Initializes a new instance of the CoveredCell class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the content.Specifies if a cell contains a validity check.Gets the formula for a table cell.intGets the number of columns spanned by a matrix.intGets the number of rows spanned by a matrix.intGets the number of successive columns in which a cell is repeated.getStyle()Gets the style of table cell.getType()Gets the value-type of a table cell, a text field, or a form property.getValue()Gets the currency, float or percentage value for a table cell, a text field, or a form property.voidsetContentValidation(String contentValidation)Specifies if a cell contains a validity check.voidsetFormula(String formula)Sets the formula for a table cell.voidsetMatrixColumnsSpannedCount(int matrixColumnsSpannedCount)Sets the number of columns spanned by a matrix.voidsetMatrixRowsSpannedCount(int matrixRowsSpannedCount)Sets the number of rows spanned by a matrix.voidsetNumberOfRepeatedCells(int numberOfRepeatedCells)Sets the number of successive columns in which a cell is repeated.voidSets the style of table cell.voidsetType(CellValueType type)Sets the value-type of a table cell, a text field, or a form property.voidSets the currency, float or percentage value for a table cell, a text field, or a form property.toString()Converts the value of the current CoveredCell object to its equivalent string representation.Methods inherited from class com.independentsoft.office.odf.Cell
getContentElements, getCurrency, getParent, getSpannedColumnsCount, getSpannedRowsCount, setCurrency, setParent, setSpannedColumnsCount, setSpannedRowsCount
-
Constructor Details
-
CoveredCell
public CoveredCell()Initializes a new instance of the CoveredCell class. -
CoveredCell
Initializes a new instance of the CoveredCell class.- Parameters:
value- the valuetype- the type
-
CoveredCell
Initializes a new instance of the CoveredCell class.- Parameters:
value- the value
-
CoveredCell
public CoveredCell(double value)Initializes a new instance of the CoveredCell class.- Parameters:
value- the value
-
CoveredCell
public CoveredCell(boolean value)Initializes a new instance of the CoveredCell class.- Parameters:
value- the value
-
CoveredCell
Initializes a new instance of the CoveredCell class.- Parameters:
value- the value
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Overrides:
clonein classCell- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current CoveredCell object to its equivalent string representation. -
getContent
Description copied from class:CellGets the content.- Overrides:
getContentin classCell- Returns:
- the content
-
getNumberOfRepeatedCells
public int getNumberOfRepeatedCells()Gets the number of successive columns in which a cell is repeated. It may be used to describe two or more adjoining cells with a single cell element, if they meet the following conditions: - The cells contain the same content and style. - The cells are not merged horizontally or vertically.- Overrides:
getNumberOfRepeatedCellsin classCell- Returns:
- the number of repeated cells
-
setNumberOfRepeatedCells
public void setNumberOfRepeatedCells(int numberOfRepeatedCells)Sets the number of successive columns in which a cell is repeated. It may be used to describe two or more adjoining cells with a single cell element, if they meet the following conditions: - The cells contain the same content and style. - The cells are not merged horizontally or vertically.- Overrides:
setNumberOfRepeatedCellsin classCell- Parameters:
numberOfRepeatedCells- the new number of repeated cells
-
getMatrixColumnsSpannedCount
public int getMatrixColumnsSpannedCount()Gets the number of columns spanned by a matrix.- Overrides:
getMatrixColumnsSpannedCountin classCell- Returns:
- the matrix columns spanned count
-
setMatrixColumnsSpannedCount
public void setMatrixColumnsSpannedCount(int matrixColumnsSpannedCount)Sets the number of columns spanned by a matrix.- Overrides:
setMatrixColumnsSpannedCountin classCell- Parameters:
matrixColumnsSpannedCount- the new matrix columns spanned count
-
getMatrixRowsSpannedCount
public int getMatrixRowsSpannedCount()Gets the number of rows spanned by a matrix.- Overrides:
getMatrixRowsSpannedCountin classCell- Returns:
- the matrix rows spanned count
-
setMatrixRowsSpannedCount
public void setMatrixRowsSpannedCount(int matrixRowsSpannedCount)Sets the number of rows spanned by a matrix.- Overrides:
setMatrixRowsSpannedCountin classCell- Parameters:
matrixRowsSpannedCount- the new matrix rows spanned count
-
getFormula
Gets the formula for a table cell.- Overrides:
getFormulain classCell- Returns:
- the formula
-
setFormula
Sets the formula for a table cell.- Overrides:
setFormulain classCell- Parameters:
formula- the new formula
-
getStyle
Gets the style of table cell. -
setStyle
Sets the style of table cell. -
getContentValidation
Specifies if a cell contains a validity check. The value of this attribute is a name found in the name attribute of a ContentValidation. If this attribute is not present, a cell may have arbitrary content.- Overrides:
getContentValidationin classCell- Returns:
- the content validation
-
setContentValidation
Specifies if a cell contains a validity check. The value of this attribute is a name found in the name attribute of a ContentValidation. If this attribute is not present, a cell may have arbitrary content.- Overrides:
setContentValidationin classCell- Parameters:
contentValidation- the new content validation
-
getType
Gets the value-type of a table cell, a text field, or a form property. -
setType
Sets the value-type of a table cell, a text field, or a form property. -
getValue
Gets the currency, float or percentage value for a table cell, a text field, or a form property. -
setValue
Sets the currency, float or percentage value for a table cell, a text field, or a form property.
-