public class Row
Property Getters/Setters Summary | ||
---|---|---|
Cell | getFirstCell() | |
Gets the first cell object in the row.
|
||
Cell | getFirstDataCell() | |
Gets the first non-blank cell in the row.
|
||
byte | getGroupLevel() | |
Gets the group level of the row.
|
||
double | getHeight() | |
void | setHeight(doublevalue) | |
Gets and sets the row height in unit of Points. | ||
int | getIndex() | |
Gets the index of this row.
|
||
boolean | isBlank() | |
Indicates whether the row contains any data
|
||
boolean | isHeightMatched() | |
void | setHeightMatched(booleanvalue) | |
Indicates that row height and default font height matches | ||
boolean | isHidden() | |
void | setHidden(booleanvalue) | |
Indicates whether the row is hidden. | ||
Cell | getLastCell() | |
Gets the last cell object in the row.
|
||
Cell | getLastDataCell() | |
Gets the last non-blank cell in the row.
|
||
Style | getStyle() | |
Represents the style of this row.
|
||
Cell | get(int column) | |
Gets the cell.
|
Method Summary | ||
---|---|---|
void | applyStyle(Style style, StyleFlag flag) | |
Applies formats for a whole row.
|
||
void | copySettings(Row source, boolean checkStyle) | |
Copy settings of row, such as style, height, visibility, ...etc.
|
||
boolean | equals(Row row) | |
Checks whether this object refers to the same row with another row object.
|
||
boolean | equals(java.lang.Object obj) | |
Checks whether this object refers to the same row with another.
|
||
Cell | getCellByIndex(int index) | |
Get the cell by specific index in the list.
|
||
Cell | getCellOrNull(int column) | |
Gets the cell or null in the specific index.
|
||
java.util.Iterator | iterator() | |
Gets the cells enumerator
|
public boolean isBlank()
public double getHeight() / public void setHeight(double value)
public boolean isHidden() / public void setHidden(boolean value)
public int getIndex()
public byte getGroupLevel()
public boolean isHeightMatched() / public void setHeightMatched(boolean value)
public Style getStyle()
public Cell getFirstCell()
public Cell getFirstDataCell()
public Cell getLastCell()
public Cell getLastDataCell()
public Cell get(int column)
column
- The column indexpublic Cell getCellByIndex(int index)
index
- The position.public java.util.Iterator iterator()
public Cell getCellOrNull(int column)
column
- The column indexpublic void copySettings(Row source, boolean checkStyle)
source
- the source row whose settings will be copied to this onecheckStyle
- whether check and gather style.
Only takes effect and be needed when two row objects belong to different workbook and the styles of two workbooks are different.public void applyStyle(Style style, StyleFlag flag)
style
- The style object which will be applied.flag
- Flags which indicates applied formatting properties.public boolean equals(java.lang.Object obj)
obj
- another objectpublic boolean equals(Row row)
row
- another row object