org.odftoolkit.odfdom.doc.table
org.odftoolkit.simple.table.Row
in Simple API.public class OdfTableRow extends Object
OdfTableRow provides methods to get table cells that belong to this table row.
Modifier and Type | Method and Description |
---|---|
OdfTableCell |
getCellByIndex(int index)
Deprecated.
Get a cell with a specific index.
|
int |
getCellCount()
Deprecated.
Return the count of real cells in this row.
|
OdfStyle |
getDefaultCellStyle()
Deprecated.
Get the default cell style of this row.
|
long |
getHeight()
Deprecated.
Return the height of the row (in Millimeter).
|
static OdfTableRow |
getInstance(TableTableRowElement rowElement)
Deprecated.
Get the
OdfTableRow instance from the TableTableRowElement instance. |
OdfTableRow |
getNextRow()
Deprecated.
Return the next row of the current row.
|
TableTableRowElement |
getOdfElement()
Deprecated.
Return an instance of
TableTableRowElement which represents this feature. |
OdfTableRow |
getPreviousRow()
Deprecated.
Return the previous row of the current row.
|
int |
getRowIndex()
Deprecated.
Return the index of this row in the owner table.
|
OdfTable |
getTable()
Deprecated.
Get owner table of the current row.
|
boolean |
isOptimalHeight()
Deprecated.
Return if the row always keeps its optimal height.
|
void |
setDefaultCellStyle(OdfStyle style)
Deprecated.
Set the default cell style to this row.
|
void |
setHeight(long height,
boolean isMinHeight)
Deprecated.
Set the height/minimal height of the row (in Millimeter) according to the second parameter.
|
void |
setUseOptimalHeight(boolean isUseOptimalHeight)
Deprecated.
Set if the row always keeps its optimal height.
|
public static OdfTableRow getInstance(TableTableRowElement rowElement)
OdfTableRow
instance from the TableTableRowElement
instance.
Each TableTableRowElement
instance has a one-to-one relationship to a OdfTableRow
instance.
rowElement
- the row element that need to get the corresponding OdfTableRow
instanceOdfTableRow
instance represent the specified row elementpublic OdfTable getTable()
public long getHeight()
Return the minimal height, if the row height is not set,
public void setHeight(long height, boolean isMinHeight)
height
- the height/minimal height that will be set to the row (in Millimeter).isMinHeight
- if it is true, the row can fit the height to the text, vice versa.public boolean isOptimalHeight()
public void setUseOptimalHeight(boolean isUseOptimalHeight)
isUseOptimalHeight
- the flag that indicate row should keep its optimal height or notpublic TableTableRowElement getOdfElement()
TableTableRowElement
which represents this feature.TableTableRowElement
public OdfTableCell getCellByIndex(int index)
index
- the cell index in this rowpublic int getCellCount()
Please note it might not equal to the column count of the owner table, because some of them are the covered cells.
public OdfTableRow getPreviousRow()
public OdfTableRow getNextRow()
public void setDefaultCellStyle(OdfStyle style)
The style should already exist in this document.
style
- the cell style of the documentpublic OdfStyle getDefaultCellStyle()
public int getRowIndex()
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.