Examples of Loc


Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

    }
    public void onCacheHit(int sheetIndex, int rowIndex, int columnIndex, ValueEval result) {
      log("hit", rowIndex, columnIndex, result);
    }
    public void onReadPlainValue(int sheetIndex, int rowIndex, int columnIndex, ICacheEntry entry) {
      Loc loc = new Loc(0, sheetIndex, rowIndex, columnIndex);
      _plainCellLocsByCacheEntry.put(entry, loc);
      log("value", rowIndex, columnIndex, entry.getValue());
    }
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

    public void onClearCachedValue(ICacheEntry entry) {
      int rowIndex;
      int columnIndex;
      EvaluationCell cell = _formulaCellsByCacheEntry.get(entry);
      if (cell == null) {
        Loc loc = _plainCellLocsByCacheEntry.get(entry);
        if (loc == null) {
          throw new IllegalStateException("can't find cell or location");
        }
        rowIndex = loc.getRowIndex();
        columnIndex = loc.getColumnIndex();
      } else {
        rowIndex = cell.getRowIndex();
        columnIndex = cell.getColumnIndex();
      }
      log("clear", rowIndex, columnIndex, entry.getValue());
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

      log("changeFromBlank", rowIndex, columnIndex, entry.getValue());
      if (entry.getValue() == null) { // hack to tell the difference between formula and plain value
        // perhaps the API could be improved: onChangeFromBlankToValue, onChangeFromBlankToFormula
        _formulaCellsByCacheEntry.put(entry, cell);
      } else {
        Loc loc = new Loc(0, sheetIndex, rowIndex, columnIndex);
        _plainCellLocsByCacheEntry.put(entry, loc);
      }
    }
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

  public void notifyUpdateCell(int bookIndex, int sheetIndex, EvaluationCell cell) {
    FormulaCellCacheEntry fcce = _formulaCellCache.get(cell);

    int rowIndex = cell.getRowIndex();
    int columnIndex = cell.getColumnIndex();
    Loc loc = new Loc(bookIndex, sheetIndex, rowIndex, columnIndex);
    PlainValueCellCacheEntry pcce = _plainCellCache.get(loc);

    if (cell.getCellType() == Cell.CELL_TYPE_FORMULA) {
      if (fcce == null) {
        fcce = new FormulaCellCacheEntry();
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

  }

  public PlainValueCellCacheEntry getPlainValueEntry(int bookIndex, int sheetIndex,
      int rowIndex, int columnIndex, ValueEval value) {

    Loc loc = new Loc(bookIndex, sheetIndex, rowIndex, columnIndex);
    PlainValueCellCacheEntry result = _plainCellCache.get(loc);
    if (result == null) {
      result = new PlainValueCellCacheEntry(value);
      _plainCellCache.put(loc, result);
      if (_evaluationListener != null) {
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

      } else {
        fcce.setSensitiveInputCells(null);
        fcce.recurseClearCachedFormulaResults(_evaluationListener);
      }
    } else {
      Loc loc = new Loc(bookIndex, sheetIndex, cell.getRowIndex(), cell.getColumnIndex());
      PlainValueCellCacheEntry pcce = _plainCellCache.get(loc);

      if (pcce == null) {
        // cache entry doesn't exist. nothing to do
      } else {
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

    }
    public void onCacheHit(int sheetIndex, int rowIndex, int columnIndex, ValueEval result) {
      log("hit", rowIndex, columnIndex, result);
    }
    public void onReadPlainValue(int sheetIndex, int rowIndex, int columnIndex, ICacheEntry entry) {
      Loc loc = new Loc(0, sheetIndex, rowIndex, columnIndex);
      _plainCellLocsByCacheEntry.put(entry, loc);
      log("value", rowIndex, columnIndex, entry.getValue());
    }
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

    public void onClearCachedValue(ICacheEntry entry) {
      int rowIndex;
      int columnIndex;
      EvaluationCell cell = _formulaCellsByCacheEntry.get(entry);
      if (cell == null) {
        Loc loc = _plainCellLocsByCacheEntry.get(entry);
        if (loc == null) {
          throw new IllegalStateException("can't find cell or location");
        }
        rowIndex = loc.getRowIndex();
        columnIndex = loc.getColumnIndex();
      } else {
        rowIndex = cell.getRowIndex();
        columnIndex = cell.getColumnIndex();
      }
      log("clear", rowIndex, columnIndex, entry.getValue());
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

      log("changeFromBlank", rowIndex, columnIndex, entry.getValue());
      if (entry.getValue() == null) { // hack to tell the difference between formula and plain value
        // perhaps the API could be improved: onChangeFromBlankToValue, onChangeFromBlankToFormula
        _formulaCellsByCacheEntry.put(entry, cell);
      } else {
        Loc loc = new Loc(0, sheetIndex, rowIndex, columnIndex);
        _plainCellLocsByCacheEntry.put(entry, loc);
      }
    }
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

    }
    public void onCacheHit(int sheetIndex, int rowIndex, int columnIndex, ValueEval result) {
      log("hit", rowIndex, columnIndex, result);
    }
    public void onReadPlainValue(int sheetIndex, int rowIndex, int columnIndex, ICacheEntry entry) {
      Loc loc = new Loc(0, sheetIndex, rowIndex, columnIndex);
      _plainCellLocsByCacheEntry.put(entry, loc);
      log("value", rowIndex, columnIndex, entry.getValue());
    }
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.