Package org.zkoss.zss.ui.impl

Examples of org.zkoss.zss.ui.impl.HeaderPositionHelper


      for(int i=col;i<=right;i++){
        extnm.add(getColumntitle(i));
      }
      result.setData("extnm", extnm);
     
      HeaderPositionHelper colHelper = Spreadsheet.this.getColumnPositionHelper(sheet);
     
      colHelper.shiftMeta(col,size);
      _maxColumns += size;
      int cf = getColumnfreeze();
      if(cf>=col){
        _colFreeze += size;
      }
View Full Code Here


      for(int i=row;i<=bottom;i++){
        extnm.add(getRowtitle(i));
      }
      result.setData("extnm", extnm);
     
      HeaderPositionHelper rowHelper = Spreadsheet.this.getRowPositionHelper(sheet);
      rowHelper.shiftMeta(row,size);
      _maxRows += size;
      int rf = getRowfreeze();
      if(rf>=row){
        _rowFreeze += size;
      }
View Full Code Here

      for(int i=col;i<=right;i++){
        extnm.add(getColumntitle(i));
      }
      result.setData("extnm", extnm);
     
      HeaderPositionHelper colHelper = Spreadsheet.this.getColumnPositionHelper(sheet);
      colHelper.unshiftMeta(col,size);
     
     
      _maxColumns -= size;
      int cf = getColumnfreeze();
      if(cf>-1 && col<=cf){
View Full Code Here

      for(int i=row;i<=bottom;i++){
        extnm.add(getRowtitle(i));
      }
      result.setData("extnm", extnm);
     
      HeaderPositionHelper rowHelper = Spreadsheet.this.getRowPositionHelper(sheet);
      rowHelper.unshiftMeta(row,size);
     
     
      _maxRows -= size;
      int rf = getRowfreeze();
      if(rf>-1 && row<=rf){
View Full Code Here

      result.setData("left", left);
      result.setData("top", top);
      result.setData("right", right);
      result.setData("bottom", bottom);
     
      HeaderPositionHelper helper = Spreadsheet.this.getColumnPositionHelper(sheet);
      int w = helper.getStartPixel(block.getRight()+1)-helper.getStartPixel(block.getLeft());
      result.setData("width",w);
     
      smartUpdateValues("merge_"+Utils.nextUpdateId(),new Object[]{"",Utils.getId(sheet),result.toString()});
    }
View Full Code Here

        ((ExtraCtrl)getExtraCtrl()).deleteMergeCell(sheet, oleft, otop, oright, obottom);
      }else if(SSDataEvent.SIZE_CHANGE == type){
        Size size = event.getSize();
        if(top==-1){
          int width = size.getWidth();
          HeaderPositionHelper posHelper = getColumnPositionHelper(sheet);
          int[] meta = posHelper.getMeta(left);
          if(meta==null || meta[1]!=width){
            int id = meta==null?_custColId.next():meta[2];
            posHelper.setCustomizedSize(left, width,id);
            ((ExtraCtrl)getExtraCtrl()).setColumnWidth(sheet,left,width,id);
          }
        }else if(left==-1){
          int height = size.getHeight();
          HeaderPositionHelper posHelper = getRowPositionHelper(sheet);
          int[] meta = posHelper.getMeta(top);
          if(meta==null || meta[1]!=height){
            int id =  meta==null?_custRowId.next():meta[2];
            posHelper.setCustomizedSize(top, height,id);
            ((ExtraCtrl)getExtraCtrl()).setRowHeight(sheet,top,height,id);
          }
        }else{
          log.error("unknow range when SIZE_CHANGE");
        }
View Full Code Here

        sheet = getSelectedSheet();
      }else{
        sheet = ((BookImpl)getBook()).lookupSheetById(sheetId);
      }
      //update helper size first before sheet.setColumnWidth, or it will fire a SSDataEvent
      HeaderPositionHelper helper = Spreadsheet.this.getColumnPositionHelper(sheet);
      helper.setCustomizedSize(column,newsize,id);
     
      sheet.setColumnWidth(column, newsize);
     
    }
View Full Code Here

        sheet = getSelectedSheet();
      }else{
        sheet = ((BookImpl)getBook()).lookupSheetById(sheetId);
      }
      sheet.setRowHeight(row,newsize);
      HeaderPositionHelper helper = Spreadsheet.this.getRowPositionHelper(sheet);
      helper.setCustomizedSize(row,newsize,id);
    }
View Full Code Here

      if(getSelectedSheetId().equals(sheetId)){
        sheet = getSelectedSheet();
      }else{
        sheet = ((BookImpl)getBook()).lookupSheetById(sheetId);
      }
      HeaderPositionHelper helper = Spreadsheet.this.getColumnPositionHelper(sheet);
      return helper;
    }
View Full Code Here

      if(getSelectedSheetId().equals(sheetId)){
        sheet =getSelectedSheet();
      }else{
        sheet = ((BookImpl)getBook()).lookupSheetById(sheetId);
      }
      HeaderPositionHelper helper = Spreadsheet.this.getRowPositionHelper(sheet);
      return helper;
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zss.ui.impl.HeaderPositionHelper

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.