Class RowImpl

    • Method Detail

      • getSheet

        public SSheet getSheet()
      • getIndex

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

        public boolean isNull()
      • 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)
      • 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​(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
      • resetUpdates

        public void resetUpdates()
      • getCellIterator

        public Iterator<SCell> getCellIterator​(boolean reverse)
      • 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.