Package org.zkoss.zss.engine

Examples of org.zkoss.zss.engine.RefBook


    _rCol = col;
  }

  @Override
  public boolean isWholeColumn() {
    final RefBook book = getOwnerSheet().getOwnerBook();
    return getTopRow() <= 0 && _bRow >= book.getMaxrow();
  }
View Full Code Here


    return getTopRow() <= 0 && _bRow >= book.getMaxrow();
  }

  @Override
  public boolean isWholeRow() {
    final RefBook book = getOwnerSheet().getOwnerBook();
    return getLeftCol() <= 0 && _rCol >= book.getMaxcol();
  }
View Full Code Here

  public void delete(int shift) {
    synchronized(_sheet) {
      if (_refs != null && !_refs.isEmpty()) {
        final Ref ref = _refs.iterator().next();
        final RefSheet refSheet = ref.getOwnerSheet();
        final RefBook refBook = refSheet.getOwnerBook();
        final Worksheet sheet = BookHelper.getSheet(_sheet, refSheet);
        if (!((SheetCtrl)sheet).isEvalAll()) {
          ((SheetCtrl)sheet).evalAll();
        }
        switch(shift) {
View Full Code Here

  public void insert(int shift, int copyOrigin) {
    synchronized(_sheet) {
      if (_refs != null && !_refs.isEmpty()) {
        final Ref ref = _refs.iterator().next();
        final RefSheet refSheet = ref.getOwnerSheet();
        final RefBook refBook = refSheet.getOwnerBook();
        final Worksheet sheet = BookHelper.getSheet(_sheet, refSheet);
        if (!((SheetCtrl)sheet).isEvalAll()) {
          ((SheetCtrl)sheet).evalAll();
        }
        switch(shift) {
View Full Code Here

        final int tRow = ref.getTopRow();
        final int lCol = ref.getLeftCol();
        final int bRow = ref.getBottomRow();
        final int rCol = ref.getRightCol();
        final Worksheet sheet = BookHelper.getSheet(_sheet, ref.getOwnerSheet());
        final RefBook refBook = ref.getOwnerSheet().getOwnerBook();
        ChangeInfo info = BookHelper.sort(sheet, tRow, lCol, bRow, rCol,
                  key1, desc1, key2, type, desc2, key3, desc3, header,
                  orderCustom, matchCase, sortByRows, sortMethod, dataOption1, dataOption2, dataOption3);
        if (info == null) {
          info = new ChangeInfo(new HashSet<Ref>(0), new HashSet<Ref>(), new ArrayList<MergeChange>(0));
View Full Code Here

  public void merge(boolean across) {
    synchronized (_sheet) {
      if (_refs != null && !_refs.isEmpty()) {
        final Ref ref = _refs.iterator().next();
        final RefSheet refSheet = ref.getOwnerSheet();
        final RefBook refBook = refSheet.getOwnerBook();
        final int tRow = ref.getTopRow();
        final int lCol = ref.getLeftCol();
        final int bRow = ref.getBottomRow();
        final int rCol = ref.getRightCol();
        final Worksheet sheet = BookHelper.getSheet(_sheet, refSheet);
View Full Code Here

  public void unMerge() {
    synchronized (_sheet) {
      if (_refs != null && !_refs.isEmpty()) {
        final Ref ref = _refs.iterator().next();
        final RefSheet refSheet = ref.getOwnerSheet();
        final RefBook refBook = refSheet.getOwnerBook();
        final int tRow = ref.getTopRow();
        final int lCol = ref.getLeftCol();
        final int bRow = ref.getBottomRow();
        final int rCol = ref.getRightCol();
        final Worksheet sheet = BookHelper.getSheet(_sheet, refSheet);
View Full Code Here

  public void move(int nRow, int nCol) {
    synchronized (_sheet) {
      if (_refs != null && !_refs.isEmpty()) {
        final Ref ref = _refs.iterator().next();
        final RefSheet refSheet = ref.getOwnerSheet();
        final RefBook refBook = refSheet.getOwnerBook();
        final int tRow = ref.getTopRow();
        final int lCol = ref.getLeftCol();
        final int bRow = ref.getBottomRow();
        final int rCol = ref.getRightCol();
        final Worksheet sheet = BookHelper.getSheet(_sheet, refSheet);
View Full Code Here

    return _defaultCharWidth;
  }
 
  @Override
  public void notifyChange(String[] variables) {
    final RefBook refBook = getOrCreateRefBook();
    final Set<Ref> all = new HashSet<Ref>();
    final Set<Ref> last = new HashSet<Ref>();
    for(String name : variables) {
      final Set<Ref>[] refs = refBook.getBothDependents(name);
      if (refs != null) {
        last.addAll(refs[0]);
        all.addAll(refs[1]);
      }
    }
View Full Code Here

    //TODO: recalic _defaultCharWidth
  }
 
  @Override
  public void notifyChange(String[] variables) {
    final RefBook refBook = getOrCreateRefBook();
    final Set<Ref> all = new HashSet<Ref>();
    final Set<Ref> last = new HashSet<Ref>();
    for(String name : variables) {
      final Set<Ref>[] refs = refBook.getBothDependents(name);
      if (refs != null) {
        last.addAll(refs[0]);
        all.addAll(refs[1]);
      }
    }
View Full Code Here

TOP

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

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.