亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sheetwriter.java

?? java開發(fā)文檔之excel:jexcelapi_2_6_3.tar
?? JAVA
?? 第 1 頁 / 共 3 頁
字號(hào):
          }
          else
          {
            borderFormats.add(cf1);
          }
          ( (WritableCell) topLeft).setCellFormat(cf1);

          // Handle the bottom left corner
          if (bottomRight.getRow() > topLeft.getRow())
          {
            // Handle the corner cell
            if (bottomRight.getColumn() != topLeft.getColumn())
            {
              CellXFRecord cf2 = new CellXFRecord(tlformat);
              cf2.setBorder(Border.ALL, BorderLineStyle.NONE, Colour.BLACK);
              cf2.setBorder(Border.LEFT, 
                            tlformat.getBorderLine(Border.LEFT),
                            tlformat.getBorderColour(Border.LEFT));
              cf2.setBorder(Border.BOTTOM,  
                            tlformat.getBorderLine(Border.BOTTOM),
                            tlformat.getBorderColour(Border.BOTTOM));
            
              index = borderFormats.indexOf(cf2);
              if (index != -1)
              {
                cf2 = (CellXFRecord) borderFormats.get(index);
              }
              else
              {
                borderFormats.add(cf2);
              }

              sheet.addCell(new Blank(topLeft.getColumn(), 
                                      bottomRight.getRow(), cf2));
            }

            // Handle the cells down the left hand side (and along the
            // right too, if necessary)
            for (int i = topLeft.getRow() + 1; i < bottomRight.getRow() ;i++)
            {
              CellXFRecord cf3 = new CellXFRecord(tlformat);
              cf3.setBorder(Border.ALL, BorderLineStyle.NONE, Colour.BLACK);
              cf3.setBorder(Border.LEFT, 
                            tlformat.getBorderLine(Border.LEFT),
                            tlformat.getBorderColour(Border.LEFT));

              if (topLeft.getColumn() == bottomRight.getColumn())
              {
                cf3.setBorder(Border.RIGHT, 
                              tlformat.getBorderLine(Border.RIGHT),
                              tlformat.getBorderColour(Border.RIGHT));
              }

              index = borderFormats.indexOf(cf3);
              if (index != -1)
              {
                cf3 = (CellXFRecord) borderFormats.get(index);
              }
              else
              {
                borderFormats.add(cf3);
              }

              sheet.addCell(new Blank(topLeft.getColumn(), i, cf3));
            }
          }

          // Handle the top right corner
          if (bottomRight.getColumn() > topLeft.getColumn())
          {
            if (bottomRight.getRow() != topLeft.getRow())
            {
              // Handle the corner cell
              CellXFRecord cf6 = new CellXFRecord(tlformat);
              cf6.setBorder(Border.ALL, BorderLineStyle.NONE, Colour.BLACK);
              cf6.setBorder(Border.RIGHT, 
                            tlformat.getBorderLine(Border.RIGHT),
                            tlformat.getBorderColour(Border.RIGHT));
              cf6.setBorder(Border.TOP,  
                            tlformat.getBorderLine(Border.TOP),
                            tlformat.getBorderColour(Border.TOP));
              index = borderFormats.indexOf(cf6);
              if (index != -1)
              {
                cf6 = (CellXFRecord) borderFormats.get(index);
              }
              else
              {
                borderFormats.add(cf6);
              }
              
              sheet.addCell(new Blank(bottomRight.getColumn(), 
                                      topLeft.getRow(), cf6));
            }

            // Handle the cells along the right
            for (int i = topLeft.getRow() + 1; 
                     i < bottomRight.getRow() ;i++)
            {
              CellXFRecord cf7 = new CellXFRecord(tlformat);
              cf7.setBorder(Border.ALL, BorderLineStyle.NONE, Colour.BLACK);
              cf7.setBorder(Border.RIGHT, 
                            tlformat.getBorderLine(Border.RIGHT),
                            tlformat.getBorderColour(Border.RIGHT));

              index = borderFormats.indexOf(cf7);
              if (index != -1)
              {
                cf7 = (CellXFRecord) borderFormats.get(index);
              }
              else
              {
                borderFormats.add(cf7);
              }
              
              sheet.addCell(new Blank(bottomRight.getColumn(), i, cf7));
            }

            // Handle the cells along the top, and along the bottom too
            for (int i = topLeft.getColumn() + 1; 
                     i < bottomRight.getColumn() ;i++)
            {
              CellXFRecord cf8 = new CellXFRecord(tlformat);
              cf8.setBorder(Border.ALL, BorderLineStyle.NONE, Colour.BLACK);
              cf8.setBorder(Border.TOP, 
                            tlformat.getBorderLine(Border.TOP),
                            tlformat.getBorderColour(Border.TOP));
              
              if (topLeft.getRow() == bottomRight.getRow())
              {
                cf8.setBorder(Border.BOTTOM, 
                              tlformat.getBorderLine(Border.BOTTOM),
                              tlformat.getBorderColour(Border.BOTTOM));
              }

              index = borderFormats.indexOf(cf8);
              if (index != -1)
              {
                cf8 = (CellXFRecord) borderFormats.get(index);
              }
              else
              {
                borderFormats.add(cf8);
              }
              
              sheet.addCell(new Blank(i, topLeft.getRow(), cf8));
            }
          }

          // Handle the bottom right corner
          if (bottomRight.getColumn() > topLeft.getColumn() ||
              bottomRight.getRow() > topLeft.getRow())
          {
            // Handle the corner cell
            CellXFRecord cf4 = new CellXFRecord(tlformat);
            cf4.setBorder(Border.ALL, BorderLineStyle.NONE, Colour.BLACK);
            cf4.setBorder(Border.RIGHT,  
                          tlformat.getBorderLine(Border.RIGHT),
                          tlformat.getBorderColour(Border.RIGHT));
            cf4.setBorder(Border.BOTTOM, 
                          tlformat.getBorderLine(Border.BOTTOM),
                          tlformat.getBorderColour(Border.BOTTOM));

            if (bottomRight.getRow() == topLeft.getRow())
            {
              cf4.setBorder(Border.TOP, 
                            tlformat.getBorderLine(Border.TOP),
                            tlformat.getBorderColour(Border.TOP));
            }

            if (bottomRight.getColumn() == topLeft.getColumn())
            {
              cf4.setBorder(Border.LEFT, 
                            tlformat.getBorderLine(Border.LEFT),
                            tlformat.getBorderColour(Border.LEFT));
            }

            index = borderFormats.indexOf(cf4);
            if (index != -1)
            {
              cf4 = (CellXFRecord) borderFormats.get(index);
            }
            else
            {
              borderFormats.add(cf4);
            }

            sheet.addCell(new Blank(bottomRight.getColumn(), 
                                    bottomRight.getRow(), cf4));

            // Handle the cells along the bottom (and along the top
            // as well, if appropriate)
            for (int i = topLeft.getColumn() + 1; 
                     i < bottomRight.getColumn() ;i++)
            {
              CellXFRecord cf5 = new CellXFRecord(tlformat);
              cf5.setBorder(Border.ALL, BorderLineStyle.NONE, Colour.BLACK);
              cf5.setBorder(Border.BOTTOM, 
                            tlformat.getBorderLine(Border.BOTTOM),
                            tlformat.getBorderColour(Border.BOTTOM));

              if (topLeft.getRow() == bottomRight.getRow())
              {
                cf5.setBorder(Border.TOP, 
                              tlformat.getBorderLine(Border.TOP),
                              tlformat.getBorderColour(Border.TOP));
              }

              index = borderFormats.indexOf(cf5);
              if (index != -1)
              {
                cf5 = (CellXFRecord) borderFormats.get(index);
              }
              else
              {
                borderFormats.add(cf5);
              }
              
              sheet.addCell(new Blank(i, bottomRight.getRow(), cf5));
            }
          }
        }
        catch (WriteException e)
        {
          // just log e.toString(), not the whole stack trace
          logger.warn(e.toString());  
        }
      }
    }
  }

  /**
   * Get the cells in the column.  Don't use the interface method
   * getColumn for this as this will create loads of empty cells,
   * and we could do without that overhead
   */
  private Cell[] getColumn(int col)
  {
    // Find the last non-null cell
    boolean found = false;
    int row = numRows - 1;

    while (row >= 0 && !found)
    {
      if (rows[row] != null &&
          rows[row].getCell(col) != null)
      {
        found = true;
      }
      else
      {
        row--;
      }
    }

    // Only create entries for non-empty cells
    Cell[] cells = new Cell[row+1];

    for (int i = 0; i <= row; i++)
    {
      cells[i] = rows[i] != null ? rows[i].getCell(col) : null;
    }

    return cells;
  }

  /**
   * Sets a flag to indicate that this sheet contains a chart only
   */
  void setChartOnly()
  {
    chartOnly = true;
  }

  /**
   * Sets the environment specific print record
   *
   * @param pls the print record
   */
  void setPLS(PLSRecord pls)
  {
    plsRecord = pls;
  }

  /**
   * Sets the button property set record
   *
   * @param bps the button property set
   */
  void setButtonPropertySet(ButtonPropertySetRecord bps)
  {
    buttonPropertySet = bps;
  }

  /**
   * Sets the data validations
   *
   * @param dv the read-in list of data validations
   * @param vc the api manipulated set of data validations
   */
  void setDataValidation(DataValidation dv, ArrayList vc)
  {
    dataValidation = dv;
    validatedCells = vc;
  }

  /**
   * Sets the conditional formats
   *
   * @param cf the conditonal formats
   */
  void setConditionalFormats(ArrayList cf)
  {
    conditionalFormats = cf;
  }

  /**
   * Sets the auto filter
   *
   * @param af the autofilter
   */
  void setAutoFilter(AutoFilter af)
  {
    autoFilter = af;
  }

  /**
   * Writes out the data validations
   */
  private void writeDataValidation() throws IOException
  {
    if (dataValidation != null && validatedCells.size() == 0)
    {
      // only data validations are those read in
      dataValidation.write(outputFile); 
      return;
    }

    if (dataValidation == null && validatedCells.size() > 0)
    {
      int comboBoxId = sheet.getComboBox() != null ? 
        sheet.getComboBox().getObjectId() : DataValidation.DEFAULT_OBJECT_ID;
      dataValidation = new DataValidation(comboBoxId,
                                          sheet.getWorkbook(),
                                          sheet.getWorkbook(),
                                          workbookSettings);

      for (Iterator i = validatedCells.iterator(); i.hasNext(); )
      {
        CellValue cv = (CellValue) i.next();
        CellFeatures cf = cv.getCellFeatures();
        DataValiditySettingsRecord dvsr = 
          new DataValiditySettingsRecord(cf.getDVParser());
        dataValidation.add(dvsr);
      }
      dataValidation.write(outputFile);
      return;
    }

    // Read and write validations
    for (Iterator i = validatedCells.iterator(); i.hasNext(); )
    {
      CellValue cv = (CellValue) i.next();
      CellFeatures cf = cv.getCellFeatures();
      DataValiditySettingsRecord dvsr = 
        new DataValiditySettingsRecord(cf.getDVParser());
      dataValidation.add(dvsr);
    }
    dataValidation.write(outputFile);
    return;
  }
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一区二区久久不卡| 国产亚洲综合色| 色综合视频一区二区三区高清| 国产综合久久久久久久久久久久| 美美哒免费高清在线观看视频一区二区| 亚洲国产中文字幕| 午夜精品一区二区三区三上悠亚 | 亚洲视频 欧洲视频| 国产精品美女久久久久久久久| 国产欧美一区二区精品性| 欧美精品一区二区久久婷婷| 欧美精品一区视频| 国产欧美精品一区二区三区四区| 国产性做久久久久久| 国产欧美综合在线观看第十页| 日本一区免费视频| 国产精品萝li| 亚洲一区在线免费观看| 视频一区欧美精品| 久久国产日韩欧美精品| 国产成人免费xxxxxxxx| 99国产精品久| 欧美日韩大陆一区二区| 欧美一区二区三区小说| 精品久久久久99| 国产日韩欧美精品电影三级在线| 国产精品伦理一区二区| 艳妇臀荡乳欲伦亚洲一区| 亚洲www啪成人一区二区麻豆 | 欧美性xxxxxxxx| 538在线一区二区精品国产| 日韩精品一区二区三区四区| 国产三区在线成人av| 中文字幕在线观看不卡视频| 亚洲第一激情av| 国产一区二区福利视频| 95精品视频在线| 欧美视频在线播放| 精品久久99ma| 自拍偷拍亚洲欧美日韩| 丝袜美腿亚洲色图| 国产高清亚洲一区| 91国偷自产一区二区使用方法| 欧美一区二区视频免费观看| 久久久久99精品一区| 一卡二卡欧美日韩| 久久99精品久久久久婷婷| 成人av网站在线| 制服丝袜中文字幕一区| 国产女主播一区| 三级精品在线观看| 成人av在线电影| 91精品国产综合久久精品app| 国产午夜亚洲精品午夜鲁丝片| 亚洲午夜免费福利视频| 国产一区二区三区免费看| 91国在线观看| 久久久久久久久久久99999| 亚洲与欧洲av电影| 国产精品白丝av| 777午夜精品免费视频| 国产精品免费aⅴ片在线观看| 天堂资源在线中文精品| 成人国产精品免费观看| 91精品欧美一区二区三区综合在| 国产精品视频在线看| 美日韩一级片在线观看| 99精品久久久久久| 久久先锋影音av| 亚洲国产精品一区二区www在线| 顶级嫩模精品视频在线看| 欧美精品乱人伦久久久久久| 国产精品久久久久一区| 久久成人羞羞网站| 欧美日韩激情在线| 亚洲视频一区二区在线| 国产不卡在线一区| 精品国产一区二区在线观看| 亚洲va欧美va人人爽午夜| 99久久精品情趣| 国产午夜精品久久| 另类中文字幕网| 91精品国产欧美一区二区成人| 一区二区三区精品视频| 成人免费视频视频在线观看免费 | 欧美日韩午夜精品| 亚洲男人天堂一区| 岛国一区二区在线观看| 欧美精品一区二区三区蜜桃视频 | 男女男精品网站| 欧美日本在线播放| 亚洲国产色一区| 一本色道久久综合精品竹菊| 日本一区二区三区国色天香| 国产精品影视网| 欧美成人一区二区三区片免费| 日韩福利视频网| 在线播放日韩导航| 午夜久久久久久电影| 欧美日韩免费一区二区三区 | 91国偷自产一区二区开放时间| 国产精品久久综合| 99re视频精品| 亚洲少妇30p| 欧美综合亚洲图片综合区| 一区二区三区四区视频精品免费 | 国产精品视频线看| 成人综合在线观看| 亚洲欧洲日韩女同| 91视频国产资源| 一区二区三区鲁丝不卡| 欧美色图12p| 秋霞午夜av一区二区三区| 欧美一区午夜精品| 麻豆精品一区二区综合av| 制服丝袜av成人在线看| 久久99国产精品麻豆| 精品卡一卡二卡三卡四在线| 韩国毛片一区二区三区| 亚洲国产精品精华液ab| 99精品桃花视频在线观看| 一区二区三区四区不卡视频| 欧美性xxxxxx少妇| 免费成人在线观看视频| 久久综合丝袜日本网| 成人丝袜视频网| 一区二区三区在线高清| 91麻豆精品国产91久久久久久久久 | 91香蕉视频在线| 亚洲午夜在线视频| 日韩精品一区二区三区在线播放| 国产成人综合亚洲网站| 亚洲欧美乱综合| 欧美一区二区三区四区五区| 韩国女主播一区| 日韩美女视频一区| 欧美欧美欧美欧美| 国产精品资源网站| 夜夜嗨av一区二区三区四季av| 欧美日韩国产一区| 国精产品一区一区三区mba桃花| 国产精品午夜在线观看| 欧洲精品中文字幕| 老司机午夜精品| 亚洲人成在线观看一区二区| 在线播放一区二区三区| 粉嫩aⅴ一区二区三区四区 | 成人亚洲一区二区一| 亚洲一区二区精品视频| 精品理论电影在线| 色婷婷av久久久久久久| 裸体在线国模精品偷拍| 亚洲欧美自拍偷拍色图| 日韩美女天天操| 91美女视频网站| 精品无码三级在线观看视频| 一区二区在线观看免费| 精品国产一区二区三区av性色| 91视频国产资源| 国产一区二区在线视频| 亚洲丰满少妇videoshd| 国产精品三级视频| 3atv一区二区三区| 91亚洲午夜精品久久久久久| 另类小说一区二区三区| 一区二区在线观看不卡| 久久人人超碰精品| 欧美日韩一级二级| 粉嫩绯色av一区二区在线观看| 日本91福利区| 一区二区欧美国产| 亚洲男人的天堂在线aⅴ视频| 日韩精品一区在线| 在线观看一区二区精品视频| 国产成人精品1024| 久久精品免费观看| 亚洲国产精品一区二区久久恐怖片 | 精品国产一区二区三区久久影院 | 国产精品福利一区二区三区| 日韩午夜在线观看视频| 在线观看91精品国产入口| 成人国产亚洲欧美成人综合网| 久久99精品国产麻豆婷婷洗澡| 午夜精品国产更新| 亚洲一级电影视频| 亚洲情趣在线观看| 国产精品色婷婷久久58| 久久久久国产精品麻豆| 欧美大白屁股肥臀xxxxxx| 欧美乱妇15p| 欧美日韩一区 二区 三区 久久精品| 91香蕉视频污在线| av成人老司机| 不卡一区中文字幕| 盗摄精品av一区二区三区| 国产不卡在线播放| 国产高清精品久久久久| 激情偷乱视频一区二区三区| 久久99久久久欧美国产| 久久精品国产免费|