Class RowImpl

All Implemented Interfaces:
CellStyleHolder, LinkedModelObject, SRow, Serializable

public class RowImpl extends AbstractRowAdv
Since:
3.5.0
Author:
dennis
See Also:
  • Constructor Details

  • Method Details

    • getSheet

      public SSheet getSheet()
    • getIndex

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

      public boolean isNull()
    • getCell

      public AbstractCellAdv getCell(int columnIdx, boolean proxy)
      Specified by:
      getCell in class AbstractRowAdv
    • getStartCellIndex

      public int getStartCellIndex()
    • getEndCellIndex

      public int getEndCellIndex()
    • clearCell

      public void clearCell(int start, int end)
    • insertCell

      public void insertCell(int cellIdx, int size)
    • deleteCell

      public void deleteCell(int cellIdx, int size)
    • getCell

      public SCell getCell(int cellIdx)
      Specified by:
      getCell in class AbstractRowAdv
    • checkOrphan

      public void checkOrphan()
    • destroy

      public void destroy()
      Description copied from interface: LinkedModelObject
      Destroy / release this model object, for example all the dependency, parent linking. this method has to be called before remove this linking from parent object
    • getCellStyle

      public SCellStyle getCellStyle()
      Description copied from interface: CellStyleHolder
      Get the style, if it doesn't has local style, it will possible look up it's parent's style
      See Also:
    • getCellStyle

      public SCellStyle getCellStyle(boolean local)
      Description copied from interface: CellStyleHolder
      Get the cell style locally or look up from the parent
      Parameters:
      local - true to get the local style only
    • setCellStyle

      public void setCellStyle(SCellStyle cellStyle)
      Description copied from interface: CellStyleHolder
      Set the local style
      Parameters:
      cellStyle - the style to set, null to clean local style
    • getHeight

      public int getHeight()
      Returns:
      height in pixels
    • isHidden

      public boolean isHidden()
    • setHeight

      public void setHeight(int height)
    • setHidden

      public void setHidden(boolean hidden)
    • isCustomHeight

      public boolean isCustomHeight()
    • setCustomHeight

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

      public Map<String,Object> getUpdates()
    • resetUpdates

      public void resetUpdates()
    • getCellIterator

      public Iterator<SCell> getCellIterator(boolean reverse)
    • getCellIterator

      public Iterator<SCell> getCellIterator(boolean reverse, int start, int end)
      Specified by:
      getCellIterator in class AbstractRowAdv
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getCellIterator

      public Iterator<SCell> getCellIterator()
      Returns:
    • getCellIterator

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

      public void setOutlineLevel(int outlineLevel)
      Description copied from interface: SRow
      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)
    • getOutlineLevel

      public int getOutlineLevel()
      Description copied from interface: SRow
      Returns the row groupings
    • isCollapsed

      public boolean isCollapsed()
      Description copied from interface: SRow
      Returns true if it has "collapsed" attribute
    • setCollapsed

      public void setCollapsed(boolean collapsed)
      Description copied from interface: SRow
      Sets the "collapsed" attribute
    • getHeightDirectly

      public Integer getHeightDirectly()
      Description copied from interface: SRow
      Get height directly. Internal used only.