| Modifier and Type | Class and Description |
|---|---|
| public static enum | Row.
Used to specify the different possible policies if for the case of null and blank cells |
| Modifier and Type | Method and Description |
|---|---|
| public Iterator | Returns: Cell iterator of the physically defined cells. Note element 4 may actually be row cell depending on how many are defined!
|
| public Cell | Returns: Cell a high level representation of the created cell.- the column number this cell represents column)Use this to create new cells within the row and return it. |
| public Cell | Returns: Cell a high level representation of the created cell.- the column number this cell represents column, CellType - the cell's data type type)Use this to create new cells within the row and return it. |
| public Cell | Returns: Cell representing that column or null if undefined.0 based column number cellnum)Get the cell representing a given column (logical cell) 0-based. |
| public Cell | Returns: the cell at the given (0 based) indexReturns the cell at the given (0 based) index, with the specified |
| public short | Returns: short representing the first logical cell in the row, or -1 if the row does not contain any cells.Get the number of the first cell contained in this row. |
| public short | Returns: row height measured in twips (1/20th of a point)Get the row's height measured in twips (1/20th of a point). |
| public float | Returns: row height measured in point sizeReturns row height measured in point size. |
| public short | Returns: short representing the last logical cell in the row PLUS ONE, or -1 if the row does not contain any cells.Gets the index of the last cell contained in this row PLUS ONE. |
| public int | |
| public int | Returns: int representing the number of defined cells in the row.Gets the number of defined cells (NOT number of cells in the actual row!). |
| public int | |
| public CellStyle | |
| public Sheet | |
| public boolean | Returns: - zHeight height is zero or not.Get whether or not to display this row with 0 height |
| public boolean | |
| public default Iterator | Returns: an iterator over cells in this row.Implements java. Alias for
|
| public void | |
| public void | setHeight(short
rowheight or 0xff for undefined (use sheet default) height)Set the row's height or set to ff (-1) for undefined/default-height. |
| public void | setHeightInPoints(float
the height in points. height)-1 resets to the default heightSet the row's height in points. |
| public void | |
| public void | |
| public void | setZeroHeight(boolean
height is zero or not. zHeight)Set whether or not to display this row with 0 height |
| public void | |
| public void | |
| public default Spliterator | Returns: Cell spliterator of the physically defined cells. Note element 4 may actually be row cell depending on how many are defined!Overrides default java. Creates a |
| cellIterator | back to summary |
|---|---|
| public Iterator | |
| createCell | back to summary |
|---|---|
| public Cell createCell(int column) Use this to create new cells within the row and return it.
The cell that is returned is a
| |
| createCell | back to summary |
|---|---|
| public Cell createCell(int column, CellType type) Use this to create new cells within the row and return it. The cell that is returned will be of the requested type. The type can be changed either through calling setCellValue or setCellType, but there is a small overhead to doing this, so it is best to create of the required type up front.
| |
| getCell | back to summary |
|---|---|
| public Cell getCell(int cellnum) Get the cell representing a given column (logical cell) 0-based. If you ask for a cell that is not defined....you get a null.
| |
| getCell | back to summary |
|---|---|
| public Cell getCell(int cellnum, Row. Returns the cell at the given (0 based) index, with the specified
| |
| getFirstCellNum | back to summary |
|---|---|
| public short getFirstCellNum() Get the number of the first cell contained in this row. Note cells which had content before and were set to empty later might still be counted as cells by Excel and Apache POI, so the result of this method will include such rows and thus the returned value might be lower than expected!
| |
| getHeight | back to summary |
|---|---|
| public short getHeight() Get the row's height measured in twips (1/20th of a point). If the height is not set, the default worksheet value is returned,
See
| |
| getHeightInPoints | back to summary |
|---|---|
| public float getHeightInPoints() Returns row height measured in point size. If the height is not set, the default worksheet value is returned,
See
| |
| getLastCellNum | back to summary |
|---|---|
| public short getLastCellNum() Gets the index of the last cell contained in this row PLUS ONE. The result also happens to be the 1-based column number of the last cell. This value can be used as a standard upper bound when iterating over cells:
short minColIx = row.getFirstCellNum();
short maxColIx = row.getLastCellNum();
for(short colIx=minColIx; colIx<maxColIx; colIx++) {
Cell cell = row.getCell(colIx);
if(cell == null) {
continue;
}
//... do something with cell
}
Note: cells which had content before and were set to empty later might
still be counted as cells by Excel and Apache POI, so the result of this
method will include such rows and thus the returned value might be higher
than expected!
| |
| getOutlineLevel | back to summary |
|---|---|
| public int getOutlineLevel() Returns the rows outline level. Increased as you put it into more groups (outlines), reduced as you take it out of them. | |
| getPhysicalNumberOfCells | back to summary |
|---|---|
| public int getPhysicalNumberOfCells() Gets the number of defined cells (NOT number of cells in the actual row!). That is to say if only columns 0,4,5 have values then there would be 3.
| |
| getRowNum | back to summary |
|---|---|
| public int getRowNum() Get row number this row represents
| |
| getRowStyle | back to summary |
|---|---|
| public CellStyle getRowStyle() Returns the whole-row cell styles. Most rows won't
have one of these, so will return null. Call
| |
| getSheet | back to summary |
|---|---|
| public Sheet getSheet() Returns the Sheet this row belongs to
| |
| getZeroHeight | back to summary |
|---|---|
| public boolean getZeroHeight() Get whether or not to display this row with 0 height
| |
| isFormatted | back to summary |
|---|---|
| public boolean isFormatted() Is this row formatted? Most aren't, but some rows
do have whole-row styles. For those that do, you
can get the formatting from | |
| iterator | back to summary |
|---|---|
| public default Iterator Implements java. Alias for
| |
| removeCell | back to summary |
|---|---|
| public void removeCell(Cell cell) Remove the Cell from this row.
| |
| setHeight | back to summary |
|---|---|
| public void setHeight(short height) Set the row's height or set to ff (-1) for undefined/default-height. Set the height in "twips" or 1/20th of a point.
| |
| setHeightInPoints | back to summary |
|---|---|
| public void setHeightInPoints(float height) Set the row's height in points.
| |
| setRowNum | back to summary |
|---|---|
| public void setRowNum(int rowNum) Set the row number of this row.
| |
| setRowStyle | back to summary |
|---|---|
| public void setRowStyle(CellStyle style) Applies a whole-row cell styling to the row. | |
| setZeroHeight | back to summary |
|---|---|
| public void setZeroHeight(boolean zHeight) Set whether or not to display this row with 0 height
| |
| shiftCellsLeft | back to summary |
|---|---|
| public void shiftCellsLeft(int firstShiftColumnIndex, int lastShiftColumnIndex, int step) | |
| shiftCellsRight | back to summary |
|---|---|
| public void shiftCellsRight(int firstShiftColumnIndex, int lastShiftColumnIndex, int step) | |
| spliterator | back to summary |
|---|---|
| public default Spliterator Overrides default java. Doc from java. Creates a
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Row. | |
| public static final Row. | |
| public static final Row. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Row. | |
| public static Row. |
| CREATE_NULL_AS_BLANK | back to summary |
|---|---|
| public static final Row. | |
| RETURN_BLANK_AS_NULL | back to summary |
|---|---|
| public static final Row. | |
| RETURN_NULL_AND_BLANK | back to summary |
|---|---|
| public static final Row. | |
| MissingCellPolicy | back to summary |
|---|---|
| private MissingCellPolicy() | |
| valueOf | back to summary |
|---|---|
| public static Row. | |
| values | back to summary |
|---|---|
| public static Row. | |