Class OdsRow

java.lang.Object
org.spdx.spreadsheetstore.ods.OdsRow
All Implemented Interfaces:
Iterable<org.apache.poi.ss.usermodel.Cell>, org.apache.poi.ss.usermodel.Row

public class OdsRow extends Object implements org.apache.poi.ss.usermodel.Row
Adapter for Apache POI Row managing a specific row in a SODS Sheet.
  • Constructor Details

    • OdsRow

      public OdsRow(OdsSheet sheet, int rowNum)
      Creates an ODS row wrapper around a specific row index in a sheet.
      Parameters:
      sheet - Parent ODS sheet adapter.
      rowNum - Zero-based row index.
  • Method Details

    • clear

      public void clear()
      Clears all cells in this row, setting their SODS range values to null.
    • createCell

      public org.apache.poi.ss.usermodel.Cell createCell(int column)
      Specified by:
      createCell in interface org.apache.poi.ss.usermodel.Row
    • createCell

      public org.apache.poi.ss.usermodel.Cell createCell(int column, org.apache.poi.ss.usermodel.CellType type)
      Specified by:
      createCell in interface org.apache.poi.ss.usermodel.Row
    • getCell

      public org.apache.poi.ss.usermodel.Cell getCell(int cellnum)
      Specified by:
      getCell in interface org.apache.poi.ss.usermodel.Row
    • getFirstCellNum

      public short getFirstCellNum()
      Specified by:
      getFirstCellNum in interface org.apache.poi.ss.usermodel.Row
    • getLastCellNum

      public short getLastCellNum()
      Specified by:
      getLastCellNum in interface org.apache.poi.ss.usermodel.Row
    • getRowNum

      public int getRowNum()
      Specified by:
      getRowNum in interface org.apache.poi.ss.usermodel.Row
    • setHeightInPoints

      public void setHeightInPoints(float height)
      Specified by:
      setHeightInPoints in interface org.apache.poi.ss.usermodel.Row
    • setHeight

      public void setHeight(short height)
      Specified by:
      setHeight in interface org.apache.poi.ss.usermodel.Row
    • getHeightInPoints

      public float getHeightInPoints()
      Specified by:
      getHeightInPoints in interface org.apache.poi.ss.usermodel.Row
    • getHeight

      public short getHeight()
      Specified by:
      getHeight in interface org.apache.poi.ss.usermodel.Row
    • getSheet

      public org.apache.poi.ss.usermodel.Sheet getSheet()
      Specified by:
      getSheet in interface org.apache.poi.ss.usermodel.Row
    • cellIterator

      public Iterator<org.apache.poi.ss.usermodel.Cell> cellIterator()
      Specified by:
      cellIterator in interface org.apache.poi.ss.usermodel.Row
    • iterator

      public Iterator<org.apache.poi.ss.usermodel.Cell> iterator()
      Specified by:
      iterator in interface Iterable<org.apache.poi.ss.usermodel.Cell>
      Specified by:
      iterator in interface org.apache.poi.ss.usermodel.Row
    • removeCell

      public void removeCell(org.apache.poi.ss.usermodel.Cell cell)
      Specified by:
      removeCell in interface org.apache.poi.ss.usermodel.Row
    • setRowNum

      public void setRowNum(int rowNum)
      Specified by:
      setRowNum in interface org.apache.poi.ss.usermodel.Row
    • getPhysicalNumberOfCells

      public int getPhysicalNumberOfCells()
      Specified by:
      getPhysicalNumberOfCells in interface org.apache.poi.ss.usermodel.Row
    • isFormatted

      public boolean isFormatted()
      Specified by:
      isFormatted in interface org.apache.poi.ss.usermodel.Row
    • getRowStyle

      public org.apache.poi.ss.usermodel.CellStyle getRowStyle()
      Specified by:
      getRowStyle in interface org.apache.poi.ss.usermodel.Row
    • setRowStyle

      public void setRowStyle(org.apache.poi.ss.usermodel.CellStyle style)
      Specified by:
      setRowStyle in interface org.apache.poi.ss.usermodel.Row
    • shiftCellsLeft

      public void shiftCellsLeft(int firstShiftColumnIndex, int lastShiftColumnIndex, int step)
      Specified by:
      shiftCellsLeft in interface org.apache.poi.ss.usermodel.Row
    • shiftCellsRight

      public void shiftCellsRight(int firstShiftColumnIndex, int lastShiftColumnIndex, int step)
      Specified by:
      shiftCellsRight in interface org.apache.poi.ss.usermodel.Row
    • getOutlineLevel

      public int getOutlineLevel()
      Specified by:
      getOutlineLevel in interface org.apache.poi.ss.usermodel.Row
    • getZeroHeight

      public boolean getZeroHeight()
      Specified by:
      getZeroHeight in interface org.apache.poi.ss.usermodel.Row
    • setZeroHeight

      public void setZeroHeight(boolean zHeight)
      Specified by:
      setZeroHeight in interface org.apache.poi.ss.usermodel.Row
    • getCell

      public org.apache.poi.ss.usermodel.Cell getCell(int cellnum, org.apache.poi.ss.usermodel.Row.MissingCellPolicy policy)
      Specified by:
      getCell in interface org.apache.poi.ss.usermodel.Row