Package org.zkoss.zss.model

Examples of org.zkoss.zss.model.Formula


    }
    return _mapper;
  }

  public void addFormulaListener(FormulaListener listener) {
    final Formula formula = new FormulaImpl(listener.getFormula());
    final Reference ref = new RefFormula(listener, formula);
    ((SSVariableResolver)getVariableResolver()).set("zkoss.ss.Ref", ref);
    getAbacus().parseFormula(formula, this);
    _formulaListeners.put(listener, ref);
  }
View Full Code Here


  public void setFormula(String formula) {
    if (formula != null && formula.startsWith("=")) {
      formula = formula.substring(1);
    }
    Formula val = new FormulaImpl(formula);
    setValue(val);
  }
View Full Code Here

   * Process a particular cell-zkCell
   */
  private WritableCell exportCell(Cell zkCell, int row, int col) {
    WritableCell wCell = null;
    try {
      Formula formula = zkCell.getFormula();
      if (formula != null) {
        String f = formula.toString();
        wCell = new jxl.write.Formula(col, row, f.substring(1,
            f.length()));
      } else {
        Object result = zkCell.getResult();
        WritableCellFormat wcf = exportCellFormat(result, zkCell.getFormat());
View Full Code Here

TOP

Related Classes of org.zkoss.zss.model.Formula

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.