Examples of SimpleResolver


Examples of org.zkoss.xel.util.SimpleResolver

    Cell cellC1 = _sheet1.setCellEditText(0, 2, "=account.acc3"); //C1
    Cell cellD1 = _sheet1.setCellEditText(0, 3, "=SUM(A1:C1)"); //D1
    Cell cellE1 = _sheet1.setCellEditText(0, 4, "=account.acc1 + account.acc2 + account.acc3"); //E1
   
    Map varmap = new HashMap();
    VariableResolver resolver = new SimpleResolver(varmap);
    _book.addVariableResolver(resolver);

    varmap.put("account", new MyAccount());
   
    assertValue(2d, ((Number)cellA1.getResult()).doubleValue(), 0d);
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.