Examples of BookImpl


Examples of org.zkoss.zss.model.impl.BookImpl

    super(name);
  }

  protected void setUp() throws Exception {
    super.setUp();
    final Book book = new BookImpl("Mybook");
    _sheet = new SheetImpl(book, "Sheet1", 256, 64*1024);
  }
 
View Full Code Here

Examples of org.zkoss.zss.model.impl.BookImpl

  public void evalRef(Reference ref) {
    evalDependent(ref, new HashSet(), true);
  }
  public Collection getIntersectRefs(Sheet sheet, int row, int col) {
    final Collection lst = new HashSet();
    final BookImpl book = (BookImpl) sheet.getBook();
    ((SheetImpl)sheet).getMatrix().getIntersectRefs(row, col, -1, lst); //2d ranges
    return book.getMatrix().getIntersectRefs(row, col, book.getSheetIndex(sheet), lst); //3d ranges
  }
View Full Code Here

Examples of org.zkoss.zss.model.impl.BookImpl

  /* (non-Javadoc)
   * @see junit.framework.TestCase#setUp()
   */
  protected void setUp() throws Exception {
    super.setUp();
    final Book book = new BookImpl("Mybook");
    _sheet = new SheetImpl(book, "Sheet1", 256, 64*1024);
    _im = ((SheetImpl)_sheet).getMatrix();
   
    _ref1 = (Ref2d)_im.addRef(_sheet, null, 1, 2, 2, 4); //B3:C5
    _ref2 = (Ref2d)_im.addRef(_sheet, null, 3, 7, 4, 10); //D8:E11
View Full Code Here

Examples of org.zkoss.zss.model.impl.BookImpl

  /* (non-Javadoc)
   * @see junit.framework.TestCase#setUp()
   */
  protected void setUp() throws Exception {
    super.setUp();
    _book = new BookImpl("Mybook");
  }
View Full Code Here

Examples of org.zkoss.zss.model.impl.BookImpl

    final Iterator it = getCells().iterator();
    final Cell cell = it.hasNext() ? (Cell) it.next() : null;
    if (cell != null) {
      ((CellImpl)cell).reset();
      final Sheet sheet = cell.getSheet();
      final BookImpl book = (BookImpl) sheet.getBook();
      book.fireSSDataEvent(this, SSDataEvent.CONTENTS_CHANGE, 0);
    }
  }
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.