Class AbstractCellAdv

java.lang.Object
io.keikai.model.impl.AbstractCellAdv
All Implemented Interfaces:
CellStyleHolder, FormulaContent, LinkedModelObject, SCell, Serializable
Direct Known Subclasses:
CellImpl

public abstract class AbstractCellAdv extends Object implements SCell, LinkedModelObject, Serializable
Since:
3.5.0
Author:
dennis
See Also:
  • Constructor Details

    • AbstractCellAdv

      public AbstractCellAdv()
  • Method Details

    • checkType

      protected void checkType(SCell.CellType... types)
    • checkFormulaResultType

      protected void checkFormulaResultType(SCell.CellType... types)
    • getValue

      public Object getValue()
      Specified by:
      getValue in interface SCell
      Returns:
      cell value.
    • setStringValue

      public void setStringValue(String value)
      Description copied from interface: SCell
      Set string value, if the value start with '=', then it sets as formula
      Specified by:
      setStringValue in interface SCell
    • getStringValue

      public String getStringValue()
      Specified by:
      getStringValue in interface SCell
    • getInitValue

      public Object getInitValue()
    • setNumberValue

      public void setNumberValue(Double number)
      Specified by:
      setNumberValue in interface SCell
    • getNumberValue

      public Double getNumberValue()
      Specified by:
      getNumberValue in interface SCell
    • setDateValue

      public void setDateValue(Date date)
      Description copied from interface: SCell
      Sets the number value a date instance, it will transfer the date to double value
      Specified by:
      setDateValue in interface SCell
    • getDateValue

      public Date getDateValue()
      Description copied from interface: SCell
      Gets the date value that is transfered by the double number value.
      Specified by:
      getDateValue in interface SCell
    • setBooleanValue

      public void setBooleanValue(Boolean date)
      Specified by:
      setBooleanValue in interface SCell
    • getBooleanValue

      public Boolean getBooleanValue()
      Description copied from interface: SCell
      Gets the boolean value
      Specified by:
      getBooleanValue in interface SCell
    • getErrorValue

      public ErrorValue getErrorValue()
      Specified by:
      getErrorValue in interface SCell
    • setErrorValue

      public void setErrorValue(ErrorValue errorValue)
      Specified by:
      setErrorValue in interface SCell
    • getFormulaValue

      public String getFormulaValue()
      Specified by:
      getFormulaValue in interface SCell
      Returns:
      returns formula string without '=', e.g. SUM(A1:B2)
    • setupRichTextValue

      public SRichText setupRichTextValue()
      Description copied from interface: SCell
      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.
      Specified by:
      setupRichTextValue in interface SCell
    • getRichTextValue

      public SRichText getRichTextValue()
      Description copied from interface: SCell
      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.
      Specified by:
      getRichTextValue in interface SCell
      Returns:
    • isRichTextValue

      public boolean isRichTextValue()
      Description copied from interface: SCell
      Check if this cell contains a rich-text value
      Specified by:
      isRichTextValue in interface SCell
    • setupHyperlink

      public SHyperlink setupHyperlink(SHyperlink.HyperlinkType type, String address, String label)
      Description copied from interface: SCell
      setup a hyperlink
      Specified by:
      setupHyperlink in interface SCell
    • setupComment

      public SComment setupComment()
      Specified by:
      setupComment in interface SCell
    • setFormulaValue

      public abstract void setFormulaValue(String formula, Locale locale)
    • setFormulaValue

      public abstract void setFormulaValue(String formula, Locale locale, FormulaType formulaType)
      Parameters:
      formula -
      locale -
      Since:
      6.0.0
    • setFormulaValue

      public abstract void setFormulaValue(String formula, FormulaType formulaType)
      Parameters:
      formula -
      Since:
      6.0.0
    • setFormulaResultValue

      public abstract void setFormulaResultValue(org.apache.poi.ss.formula.eval.ValueEval value)
    • setValue

      protected abstract void setValue(Object value, boolean aString)
    • getFormulaExpression

      public abstract FormulaExpression getFormulaExpression()
    • setTextHeight

      public abstract void setTextHeight(int height)
    • getTextHeight

      public abstract int getTextHeight()
    • setCalcAutoHeight

      public abstract void setCalcAutoHeight(boolean b)
    • isCalcAutoHeight

      public abstract boolean isCalcAutoHeight()
    • setTextWidth

      public abstract void setTextWidth(int width)
    • getTextWidth

      public abstract int getTextWidth()
    • getEvalCellValue

      public abstract CellValue getEvalCellValue(boolean evaluatedVal)