Package org.zkoss.zss.ui.sys

Examples of org.zkoss.zss.ui.sys.SpreadsheetInCtrl


    int left = Integer.parseInt(data[2]);
    int top = Integer.parseInt(data[3]);
    int right = Integer.parseInt(data[4]);
    int bottom = Integer.parseInt(data[5]);
   
    SpreadsheetInCtrl ctrl = ((SpreadsheetInCtrl)((Spreadsheet)comp).getExtraCtrl());
    ctrl.setSelectionRect(left,top,right,bottom);   
   
    Events.postEvent(new CellSelectionEvent(org.zkoss.zss.ui.event.Events.ON_CELL_SELECTION, comp, sheet,action,left,top,right,bottom));
  }
View Full Code Here


    Sheet sheet = ((Spreadsheet)comp).getSelectedSheet();
    if(!Utils.getId(sheet).equals(sheetId)){
      return;
    }
   
    SpreadsheetInCtrl ctrl = ((SpreadsheetInCtrl)((Spreadsheet)comp).getExtraCtrl());
    //ctrl.setSelectedCellBlock(col,row,col,row); only control foucs only
    ctrl.setFocusRect(col,row,col,row);   
   
    Events.postEvent(new CellEvent(org.zkoss.zss.ui.event.Events.ON_CELL_FOUCSED, comp, sheet,row,col));
  }
View Full Code Here

    int orgileft = Integer.parseInt(data[6]);
    int orgitop = Integer.parseInt(data[7]);
    int orgiright = Integer.parseInt(data[8]);
    int orgibottom = Integer.parseInt(data[9]);
   
    SpreadsheetInCtrl ctrl = ((SpreadsheetInCtrl)((Spreadsheet)comp).getExtraCtrl());
    ctrl.setSelectionRect(left,top,right,bottom);   
   
    Events.postEvent(new SelectionChangeEvent(org.zkoss.zss.ui.event.Events.ON_SELECTION_CHANGE
        , comp, sheet,action,left,top,right,bottom,orgileft,orgitop,orgiright,orgibottom));
  }
View Full Code Here

    if (data == null || data.length != 17)
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA,
        new Object[] {Objects.toString(data), this});
   
    Spreadsheet spreadsheet = ((Spreadsheet)comp);
    SpreadsheetInCtrl ctrl = ((SpreadsheetInCtrl)spreadsheet.getExtraCtrl());
   
    String sheetId = data[0];
   
    int dpWidth = Integer.parseInt(data[1]);//pixel value of data panel width
    int dpHeight = Integer.parseInt(data[2]);//pixel value of data panel height
    int viewWidth = Integer.parseInt(data[3]);//pixel value of view width(scrollpanel.clientWidth)
    int viewHeight = Integer.parseInt(data[4]);//pixel value of value height
   
    int blockLeft = Integer.parseInt(data[5]);
    int blockTop = Integer.parseInt(data[6]);
    int blockRight = Integer.parseInt(data[7]);// + blockLeft - 1;
    int blockBottom = Integer.parseInt(data[8]);// + blockTop - 1;;
   
    int fetchLeft = Integer.parseInt(data[9]);
    int fetchTop = Integer.parseInt(data[10]);
    int fetchWidth = Integer.parseInt(data[11]);
    int fetchHeight = Integer.parseInt(data[12]);
   
    int rangeLeft = Integer.parseInt(data[13]);//visible range
    int rangeTop = Integer.parseInt(data[14]);
    int rangeRight = Integer.parseInt(data[15]);
    int rangeBottom = Integer.parseInt(data[16]);
   
    if(false){
      System.out.println(">>>>>>>>>>>>>>>>>BlockSyncCommand:sheetId:"+sheetId);
      System.out.println("data panel size >>>>w:"+dpWidth+",h:"+dpHeight);
      System.out.println("view size >>>>w:"+viewWidth+",h:"+viewHeight);
      System.out.println("block range >>>>left:"+blockLeft+",top:"+blockTop+",right:"+blockRight+",b:"+blockBottom);
      System.out.println("fetch size >>>>left:"+fetchLeft+",top:"+fetchTop+",w:"+fetchWidth+",h:"+fetchHeight);
      System.out.println("visible range >>>>left:"+rangeLeft+",top:"+rangeTop+",right:"+rangeRight+",bottom:"+rangeBottom);
      System.out.println("<<<<<<<<<<<<<<<<<");
    }
    ctrl.setLoadedRect(blockLeft,blockTop,blockRight,blockBottom);
   
  }
View Full Code Here

    int left = (Integer) data.get("left");
    int top = (Integer) data.get("top");
    int right = action == CellSelectionEvent.SELECT_ROW ? maxcol : (Integer) data.get("right");
    int bottom = action == CellSelectionEvent.SELECT_COLUMN ? maxrow : (Integer) data.get("bottom");
   
    SpreadsheetInCtrl ctrl = ((SpreadsheetInCtrl)((Spreadsheet)comp).getExtraCtrl());
    ctrl.setSelectionRect(left, top, right, bottom)
   
    Events.postEvent(new CellSelectionEvent(org.zkoss.zss.ui.event.Events.ON_CELL_SELECTION, comp, sheet,action,left,top,right,bottom));
  }
View Full Code Here

    final Map data = (Map) request.getData();
    if (data == null || data.size() != 17)
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA, new Object[] {Objects.toString(data), BlockSyncCommand.class });

    Spreadsheet spreadsheet = ((Spreadsheet) comp);
    SpreadsheetInCtrl ctrl = ((SpreadsheetInCtrl) spreadsheet.getExtraCtrl());

    String sheetId = (String) data.get("sheetId");
    int dpWidth = (Integer) data.get("dpWidth");// pixel value of data panel width
    int dpHeight = (Integer) data.get("dpHeight");// pixel value of data panel height
    int viewWidth = (Integer) data.get("viewWidth");// pixel value of view width(scrollpanel.clientWidth)
    int viewHeight = (Integer) data.get("viewHeight");// pixel value of value height

    int blockLeft = (Integer) data.get("blockLeft");
    int blockTop = (Integer) data.get("blockTop");
    int blockRight = (Integer) data.get("blockRight");// + blockLeft - 1;
    int blockBottom = (Integer) data.get("blockBottom");// + blockTop - 1;;

    int fetchLeft = (Integer) data.get("fetchLeft");
    int fetchTop = (Integer) data.get("fetchTop");
    int fetchWidth = (Integer) data.get("fetchWidth");
    int fetchHeight = (Integer) data.get("fetchHeight");

    int rangeLeft = (Integer) data.get("rangeLeft");// active range
    int rangeTop = (Integer) data.get("rangeTop");
    int rangeRight = (Integer) data.get("rangeRight");
    int rangeBottom = (Integer) data.get("rangeBottom");
   
    ctrl.setLoadedRect(rangeLeft, rangeTop, rangeRight, rangeBottom)
    ctrl.setVisibleRect(blockLeft, blockTop, blockRight, blockBottom);
  }
View Full Code Here

   
    Worksheet sheet = ((Spreadsheet) comp).getSelectedSheet();
    if (!Utils.getSheetUuid(sheet).equals(sheetId))
      return;

    SpreadsheetInCtrl ctrl = ((SpreadsheetInCtrl) ((Spreadsheet) comp).getExtraCtrl());
    // ctrl.setSelectedCellBlock(col,row,col,row); only control foucs only
    ctrl.setFocusRect(col, row, col, row);
   
    Events.postEvent(new CellEvent(org.zkoss.zss.ui.event.Events.ON_CELL_FOUCSED, comp, sheet, row, col));
  }
View Full Code Here

          Utils.fillCells(sheet, orgitop, orgileft, orgibottom, orgiright, top, left, bottom, right);
          break;
        }
      } 
    }
    SpreadsheetInCtrl ctrl = ((SpreadsheetInCtrl)((Spreadsheet)comp).getExtraCtrl());
    ctrl.setSelectionRect(left, top, right, bottom)
   
    Events.postEvent(evt);
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zss.ui.sys.SpreadsheetInCtrl

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.