Package org.zkoss.zss.engine.xel

Examples of org.zkoss.zss.engine.xel.SSExpression


    _expression = expression;
  }
 
  public Expression parse(XelContext ctx) {
    if (_expression == null) {
      _expression = new SSExpression(_formula, ctx);
    }
    return _expression;
  }
View Full Code Here


      }
    }
  }
 
  private void copyFormula(Formula formula, Cell cell) {
    final SSExpression expr = (SSExpression) formula.parse(newXelContext());
    final List ranges = expr.getRanges();
    if (ranges.isEmpty()) { //no reference formula, reuse the original formula
      cell.setValue(formula);
    } else {
      final int coloff = cell.getColumn() - getColumn();
      final int rowoff = cell.getRow() - getRow();
      final SSExpression clone = expr.clone(cell.getSheet(), rowoff, coloff);
      cell.setValue(new FormulaImpl(clone));
    }
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zss.engine.xel.SSExpression

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.