Package com.independentsoft.office.odf
Class Row
java.lang.Object
com.independentsoft.office.odf.Row
- All Implemented Interfaces:
IContentElement
Represents a row in a table. It contains elements that specify the cells of the table row.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.get(int index)Gets the.getCells()Contains a collection of Cell objects.Returns all content elements.Gets the default cell style.intGets the number of rows to which a row description applies.Returns the parent content element.getStyle()Gets the style.Specifies whether a row is visible.booleanisHeader()Checks if is header.voidSets the.voidsetDefaultCellStyle(String defaultCellStyle)Sets the default cell style.voidsetHeader(boolean isHeader)Sets the header.voidsetNumberOfRepeatedRows(int numberOfRepeatedRows)Sets the number of rows to which a row description applies.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the style.voidsetVisibility(Visibility visibility)Specifies whether a row is visible.toString()Converts the value of the current Row object to its equivalent string representation.
-
Constructor Details
-
Row
public Row()Initializes a new instance of the Row class.
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current Row object to its equivalent string representation. -
getCells
Contains a collection of Cell objects.- Returns:
- the cells
-
get
Gets the.- Parameters:
index- the index- Returns:
- the cell
-
set
Sets the.- Parameters:
index- the indexcell- the cell
-
isHeader
public boolean isHeader()Checks if is header.- Returns:
- true, if is header
-
setHeader
public void setHeader(boolean isHeader)Sets the header.- Parameters:
isHeader- the new header
-
getStyle
Gets the style.- Returns:
- the style
-
setStyle
Sets the style.- Parameters:
style- the new style
-
getDefaultCellStyle
Gets the default cell style.- Returns:
- the default cell style
-
setDefaultCellStyle
Sets the default cell style.- Parameters:
defaultCellStyle- the new default cell style
-
getVisibility
Specifies whether a row is visible.- Returns:
- the visibility
-
setVisibility
Specifies whether a row is visible.- Parameters:
visibility- the new visibility
-
getNumberOfRepeatedRows
public int getNumberOfRepeatedRows()Gets the number of rows to which a row description applies.- Returns:
- the number of repeated rows
-
setNumberOfRepeatedRows
public void setNumberOfRepeatedRows(int numberOfRepeatedRows)Sets the number of rows to which a row description applies.- Parameters:
numberOfRepeatedRows- the new number of repeated rows
-