Interface SCell

    • Method Detail

      • getValue

        Object getValue()
        Returns:
        cell value.
      • setValue

        void setValue​(Object value)
      • isNull

        boolean isNull()
        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

        int getRowIndex()
      • getColumnIndex

        int getColumnIndex()
      • getReferenceString

        String getReferenceString()
        Returns:
        cell reference like A1
      • setHyperlink

        void setHyperlink​(SHyperlink hyperlink)
        Set or clear a hyperlink
        Parameters:
        hyperlink - hyperlink to set, or null to clear
      • clearValue

        void clearValue()
        clear cell value , reset it to blank
      • setStringValue

        void setStringValue​(String value)
        Set string value, if the value start with '=', then it sets as formula
      • getStringValue

        String getStringValue()
      • setupRichTextValue

        SRichText setupRichTextValue()
        Setup a rich text value(Create a new one if the old value is not a rich-text) and return the instance which to be edited.
      • getRichTextValue

        SRichText getRichTextValue()
        Return the rich text value. if this cell is a simple string value, it will return a read-only rich-text which wraps string-value and current font.
        Returns:
      • isRichTextValue

        boolean isRichTextValue()
        Check if this cell contains a rich-text value
      • setFormulaValue

        void setFormulaValue​(String formula)
        set formula with string without '=', e.g. SUM(A1:B2)
        Parameters:
        formula -
      • getFormulaValue

        String getFormulaValue()
        Returns:
        returns formula string without '=', e.g. SUM(A1:B2)
      • setNumberValue

        void setNumberValue​(Double number)
      • getNumberValue

        Double getNumberValue()
      • setDateValue

        void setDateValue​(Date date)
        Sets the number value a date instance, it will transfer the date to double value
      • getDateValue

        Date getDateValue()
        Gets the date value that is transfered by the double number value.
      • setBooleanValue

        void setBooleanValue​(Boolean bool)
      • getBooleanValue

        Boolean getBooleanValue()
        Gets the boolean value
      • setErrorValue

        void setErrorValue​(ErrorValue errorValue)
      • setComment

        void setComment​(SComment comment)
      • deleteComment

        void deleteComment()
        Delete the comment associated with this cell.
        Since:
        3.7.0
      • getArrayFormulaRegion

        CellRegion getArrayFormulaRegion()
        Only valid for array formula cells
        Returns:
        the region of the array formula group that the cell belongs to.
        Since:
        6.0.0
      • isPartOfArrayFormulaGroup

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