return _height!=-1;
}
+ @Override
public int getOutlineLevel(){
return _outlineLevel;
}
this._collapsed = collapsed;
}
//begin of interface implementation
+ @Override
public Iterator<Cell> iterator()
{
return new FilledCellIterator();
* @throws IllegalArgumentException if columnIndex < 0 or greater than the maximum number of supported columns
* (255 for *.xls, 1048576 for *.xlsx)
*/
+ @Override
public SXSSFCell createCell(int column)
{
return createCell(column,Cell.CELL_TYPE_BLANK);
* @throws IllegalArgumentException if columnIndex < 0 or greate than a maximum number of supported columns
* (255 for *.xls, 1048576 for *.xlsx)
*/
+ @Override
public SXSSFCell createCell(int column, int type)
{
checkBounds(column);
*
* @param cell the cell to remove
*/
+ @Override
public void removeCell(Cell cell)
{
int index=getCellIndex(cell);
* @param rowNum the row number (0-based)
* @throws IllegalArgumentException if rowNum < 0
*/
+ @Override
public void setRowNum(int rowNum)
{
_sheet.changeRowNum(this,rowNum);
*
* @return the row number (0 based)
*/
+ @Override
public int getRowNum()
{
return _sheet.getRowNum(this);
* @return Cell representing that column or null if undefined.
* @see #getCell(int, org.apache.poi.ss.usermodel.Row.MissingCellPolicy)
*/
+ @Override
public SXSSFCell getCell(int cellnum) {
if(cellnum < 0) throw new IllegalArgumentException("Cell index must be >= 0");
* @see Row#RETURN_BLANK_AS_NULL
* @see Row#CREATE_NULL_AS_BLANK
*/
+ @Override
public Cell getCell(int cellnum, MissingCellPolicy policy)
{
Cell cell = getCell(cellnum);
* @return short representing the first logical cell in the row,
* or -1 if the row does not contain any cells.
*/
+ @Override
public short getFirstCellNum()
{
for(int i=0;i<=_maxColumn;i++)
* @return short representing the last logical cell in the row <b>PLUS ONE</b>,
* or -1 if the row does not contain any cells.
*/
+ @Override
public short getLastCellNum()
{
return _maxColumn == -1 ? -1 : (short)(_maxColumn+1);
*
* @return int representing the number of defined cells in the row.
*/
+ @Override
public int getPhysicalNumberOfCells()
{
int count=0;
*
* @param height rowheight or 0xff for undefined (use sheet default)
*/
+ @Override
public void setHeight(short height)
{
_height=height;
*
* @param zHeight height is zero or not.
*/
+ @Override
public void setZeroHeight(boolean zHeight)
{
_zHeight=zHeight;
*
* @return - zHeight height is zero or not.
*/
+ @Override
public boolean getZeroHeight()
{
return _zHeight;
*
* @param height the height in points. <code>-1</code> resets to the default height
*/
+ @Override
public void setHeightInPoints(float height)
{
if(height==-1)
*
* @return row height measured in twips (1/20th of a point)
*/
+ @Override
public short getHeight()
{
return (short)(_height==-1?getSheet().getDefaultRowHeightInPoints()*20:_height);
* @return row height measured in point size
* @see Sheet#getDefaultRowHeightInPoints()
*/
+ @Override
public float getHeightInPoints()
{
return (float)(_height==-1?getSheet().getDefaultRowHeightInPoints():_height/20.0);
* do have whole-row styles. For those that do, you
* can get the formatting from {@link #getRowStyle()}
*/
+ @Override
public boolean isFormatted() {
return _style > -1;
}
* have one of these, so will return null. Call
* {@link #isFormatted()} to check first.
*/
+ @Override
public CellStyle getRowStyle() {
if(!isFormatted()) return null;
* Applies a whole-row cell styling to the row.
* The row style can be cleared by passing in <code>null</code>.
*/
+ @Override
public void setRowStyle(CellStyle style) {
if(style == null) {
_style = -1;
* @return Cell iterator of the physically defined cells. Note element 4 may
* actually be row cell depending on how many are defined!
*/
+ @Override
public Iterator<Cell> cellIterator()
{
return iterator();
*
* @return the Sheet that owns this row
*/
+ @Override
public SXSSFSheet getSheet()
{
return _sheet;