Package org.zkoss.zss.engine

Examples of org.zkoss.zss.engine.Reference


  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


    final TokenType type = operand.getType();
    final TokenSubtype subtype = operand.getSubtype();

    if (type == TokenType.OPERAND && subtype == TokenSubtype.RANGE) {
      //prepare the original Reference
      final Reference orgref = ctx != null ?
        (Reference) ctx.getVariableResolver().resolveVariable("zkoss.ss.Ref") : null;
      final SheetImpl sheet =  orgref != null ?
        (SheetImpl) orgref.getSheet() : null;
      final Book book = sheet != null ?
        sheet.getBook() : (ctx instanceof Book) ? (Book) ctx : null;

      final String[] range = parseRange(value);
      final String sheetnm1 = range[0];
View Full Code Here

  }

  //detach all precedent references
  private void detachAllPrecedents(List lst) {
    for(final Iterator it = _precedents.iterator();it.hasNext();) {
      final Reference ref = (Reference) it.next();
      it.remove();
      ref.removeDependent(this);
      lst.add(ref);
    }
  }
View Full Code Here

 
  public void remove() {
    final List rmlst = new LinkedList();
    detachAllPrecedents(rmlst); //detach precedents and collect in rmlist
    for(final Iterator it = rmlst.iterator(); it.hasNext();) {
      final Reference ref = (Reference) it.next();
      if (ref.isEmpty() && !ref.isLonglive()) {
        ref.remove(); //recursive
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zss.engine.Reference

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.