Package org.zkoss.zss.engine.xel

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


 
  private XelContext newXelContext() {
    final Book book = getSheet().getBook();
   
    //VariableResolver
    final SSMapResolver resolver = new SSMapResolver(((XelContext)book).getVariableResolver());
    final Reference ref = addRef(); //add it back whenever there is new formula
    ((Ref2d)ref).setUpdatable(true); //and of course a cell is an updatable reference
    ((Ref2d)ref).setLonglive(true); //cannot be cascade removed (ref to cell)
    resolver.set("zkoss.ss.Ref", ref);
   
    return new SimpleXelContext(resolver, ((XelContext)book).getFunctionMapper());
  }
View Full Code Here


 
  private XelContext newRemoveContext() {
    final Book book = getSheet().getBook();
   
    //VariableResolver
    final SSMapResolver resolver = new SSMapResolver(((XelContext)book).getVariableResolver());
    final Reference ref = getRef();
    resolver.set("zkoss.ss.Ref", ref);
    return new SimpleXelContext(resolver, null);
  }
View Full Code Here

TOP

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

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.