Class CellImpl

    • Constructor Detail

    • Method Detail

      • isNull

        public boolean isNull()
        Description copied from interface: SCell
        Because you always get a not-null cell object, use this method to judge the cell is really null or not.
        Returns:
        TRUE if this cell is really null which means it have not been created.
      • getRowIndex

        public int getRowIndex()
      • getColumnIndex

        public int getColumnIndex()
      • getReferenceString

        public String getReferenceString()
        Returns:
        cell reference like A1
      • checkOrphan

        public void checkOrphan()
      • getSheet

        public SSheet getSheet()
      • 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
      • evalFormula

        protected void evalFormula()
      • clearValue

        public void clearValue()
        Description copied from interface: SCell
        clear cell value , reset it to blank
      • setFormulaValue

        public void setFormulaValue​(String formula)
        Description copied from interface: SCell
        set formula with string without '=', e.g. SUM(A1:B2)
      • clearFormulaResultCache

        public void clearFormulaResultCache()
        Description copied from interface: FormulaContent
        Clear the formula result cache if there is evaluation result
      • isFormulaParsingError

        public boolean isFormulaParsingError()
        Returns:
        returns TRUE if it has parsing error, FALSE if no error found or not a formula content
      • getValue

        public Object getValue​(boolean evaluatedVal)
      • setValue

        public void setValue​(Object newVal)
      • setHyperlink

        public void setHyperlink​(SHyperlink hyperlink)
        Description copied from interface: SCell
        Set or clear a hyperlink
        Parameters:
        hyperlink - hyperlink to set, or null to clear
      • getComment

        public SComment getComment()
      • setComment

        public void setComment​(SComment comment)
      • deleteComment

        public void deleteComment()
        Description copied from interface: SCell
        Delete the comment associated with this cell.
      • getRef

        protected Ref getRef()
      • getArrayFormulaRegion

        public CellRegion getArrayFormulaRegion()
        Description copied from interface: SCell
        Only valid for array formula cells
        Returns:
        the region of the array formula group that the cell belongs to.
      • isPartOfArrayFormulaGroup

        public boolean isPartOfArrayFormulaGroup()
        Returns:
        true if this cell is part of group of cells having a common array formula.