Examples of FormulaRecordAggregate


Examples of org.apache.poi.hssf.record.aggregates.FormulaRecordAggregate

        short styleIndex = _record.getXFIndex();
        setCellType(CELL_TYPE_FORMULA, false, row, col, styleIndex);

        // Billet for formula in rec
        Ptg[] ptgsForCell = {new ExpPtg(range.getFirstRow(), range.getFirstColumn())};
        FormulaRecordAggregate agg = (FormulaRecordAggregate) _record;
        agg.setParsedExpression(ptgsForCell);
    }
View Full Code Here

Examples of org.zkoss.poi.hssf.record.aggregates.FormulaRecordAggregate

  }
  private static void setHSSFCellPtgs(HSSFCell cell, Ptg[] ptgs) {
      //tricky! must be after the dummyCell construction or the under aggregate record will not
      //be consistent in sheet and cell
        cell.setCellType(Cell.CELL_TYPE_FORMULA);
      FormulaRecordAggregate agg = (FormulaRecordAggregate) new HSSFCellHelper((HSSFCell)cell).getCellValueRecord();
      FormulaRecord frec = agg.getFormulaRecord();
      frec.setOptions((short) 2);
      frec.setValue(0);

      //only set to default if there is no extended format index already set
      if (agg.getXFIndex() == (short)0) {
        agg.setXFIndex((short) 0x0f);
      }
      agg.setParsedExpression(ptgs);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.