Package org.zkoss.zss.model

Examples of org.zkoss.zss.model.Sheet


    public Media getMedia(String pathInfo) {
      return new AMedia("css", "css", "text/css;charset=UTF-8", getSheetDefaultRules());
    }

    public void setColumnSize(String sheetId, int column, int newsize, int id) {
      Sheet sheet;
      if(getSelectedSheetId().equals(sheetId)){
        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.setColumnWidth(column, newsize);
     
    }

    public void setRowSize(String sheetId, int row, int newsize, int id) {
      Sheet sheet;
      if(getSelectedSheetId().equals(sheetId)){
        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

      HeaderPositionHelper helper = Spreadsheet.this.getRowPositionHelper(sheet);
      helper.setCustomizedSize(row,newsize,id);
    }

    public HeaderPositionHelper getColumnPositionHelper(String sheetId) {
      Sheet sheet;
      if(getSelectedSheetId().equals(sheetId)){
        sheet = getSelectedSheet();
      }else{
        sheet = ((BookImpl)getBook()).lookupSheetById(sheetId);
      }
View Full Code Here

      HeaderPositionHelper helper = Spreadsheet.this.getColumnPositionHelper(sheet);
      return helper;
    }

    public HeaderPositionHelper getRowPositionHelper(String sheetId) {
      Sheet sheet;
      if(getSelectedSheetId().equals(sheetId)){
        sheet =getSelectedSheet();
      }else{
        sheet = ((BookImpl)getBook()).lookupSheetById(sheetId);
      }
View Full Code Here

    public WidgetHandler getWidgetHandler() {
      return Spreadsheet.this.getWidgetHandler();
    }
   
    public String getRowOuterAttrs(int row){
      Sheet sheet = getSelectedSheet();
      HeaderPositionHelper helper = Spreadsheet.this.getRowPositionHelper(sheet);
      StringBuffer sb = new StringBuffer();
      sb.append("class=\"zsrow");
      int[] meta = helper.getMeta(row);
      int zsh = -1;
View Full Code Here

      return sb.toString();
    }
   
   
    private StringBuffer appendMergeSClass(StringBuffer sb, int row, int col) {
      Sheet sheet = getSelectedSheet();
      MergeMatrixHelper mmhelper = getMergeMatrixHelper(sheet);
      //Cell cell = sheet.getCell(row,col);
      //if(cell!=null){
        boolean islefttop = mmhelper.isMergeRangeLeftTop(row, col);
        MergedRect block;
View Full Code Here

      return sb;
    }
   
    public String getCellOuterAttrs(int row,int col){
      StringBuffer sb = new StringBuffer();
      Sheet sheet = getSelectedSheet();
      MergeMatrixHelper matrix = getMergeMatrixHelper(sheet);
      HeaderPositionHelper rowHelper = Spreadsheet.this.getRowPositionHelper(sheet);
      HeaderPositionHelper colHelper = Spreadsheet.this.getColumnPositionHelper(sheet);
      Cell cell = sheet.getCell(row,col);
     
     
      //class="zscell zscw${cstatus.index} zsrhi${rstatus.index} ${s:getCellSClass(self,rstatus.index,cstatus.index)}"
      sb.append("class=\"zscell");
      int zsh = -1;
View Full Code Here

     
      return sb.toString();
    }
   
    public String getCellInnerAttrs(int row,int col){
      Sheet sheet = getSelectedSheet();
      Cell cell = sheet.getCell(row,col);
      StringBuffer sb = new StringBuffer();
      HeaderPositionHelper rowHelper = Spreadsheet.this.getRowPositionHelper(sheet);
      HeaderPositionHelper colHelper = Spreadsheet.this.getColumnPositionHelper(sheet);
     
      //class="zscelltxt zscwi${cstatus.index} zsrhi${rstatus.index}"
View Full Code Here

      }
      return sb.toString();
    }
   
    public String getTopHeaderOuterAttrs(int col){
      Sheet sheet = getSelectedSheet();
      HeaderPositionHelper colHelper = Spreadsheet.this.getColumnPositionHelper(sheet);
      StringBuffer sb = new StringBuffer();
     
      //class="zstopcell zscw${status.index}"  z.c="${status.index}"
      sb.append("class=\"zstopcell");
View Full Code Here

      }
     
      return sb.toString();
    }
    public String getTopHeaderInnerAttrs(int col){
      Sheet sheet = getSelectedSheet();
      HeaderPositionHelper colHelper = Spreadsheet.this.getColumnPositionHelper(sheet);
      StringBuffer sb = new StringBuffer();
     
      //class="zstopcelltxt zscw${status.index}"
      sb.append("class=\"zstopcelltxt");
View Full Code Here

TOP

Related Classes of org.zkoss.zss.model.Sheet

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.