Interface SRow

All Superinterfaces:
CellStyleHolder
All Known Implementing Classes:
AbstractRowAdv, RowImpl

public interface SRow extends CellStyleHolder
A row of a sheet.
Since:
3.5.0
Author:
dennis
  • Method Details

    • getSheet

      SSheet getSheet()
    • getIndex

      int getIndex()
      Returns:
      0-based row index
    • isNull

      boolean isNull()
    • getHeight

      int getHeight()
      Returns:
      height in pixels
    • isHidden

      boolean isHidden()
    • isCustomHeight

      boolean isCustomHeight()
    • setHeight

      void setHeight(int height)
    • setHidden

      void setHidden(boolean hidden)
    • setCustomHeight

      void setCustomHeight(boolean custom)
      Parameters:
      custom - TRUE, if the height is set by users and is not calculated by system automatically
    • getCellIterator

      Iterator<SCell> getCellIterator()
      Returns:
      Since:
      3.7.0
    • getCellIterator

      Iterator<SCell> getCellIterator(int start, int end)
      Returns:
      Since:
      5.0.0
    • setOutlineLevel

      void setOutlineLevel(int outlineLevel)
      Set row groupings (like groupRow) in a stream-friendly manner

      groupRows requires all rows in the group to be in the current window. This is not always practical. Instead use setOutlineLevel to explicitly set the group level. Level 1 is the top level group, followed by 2, etc. It is up to the user to ensure that level 2 groups are correctly nested under level 1, etc.

      Note: The maximum outlines are up to eight levels.

      Parameters:
      outlineLevel - outline level (greater than 0)
      Since:
      6.0.0
    • getOutlineLevel

      int getOutlineLevel()
      Returns the row groupings
      Since:
      6.0.0
    • isCollapsed

      boolean isCollapsed()
      Returns true if it has "collapsed" attribute
      Since:
      6.0.0
    • setCollapsed

      void setCollapsed(boolean collapsed)
      Sets the "collapsed" attribute
      Since:
      6.0.0
    • getHeightDirectly

      default Integer getHeightDirectly()
      Get height directly. Internal used only.
      Since:
      6.0.0