程序包 com.sh.util

类 ExcelSheet2003

java.lang.Object
com.sh.util.ExcelSheet2003
所有已实现的接口:
ExcelSheet

public class ExcelSheet2003 extends Object implements ExcelSheet
Description: Excel 2003-Sheet页 Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
  • 构造器详细资料

    • ExcelSheet2003

      public ExcelSheet2003(org.apache.poi.ss.usermodel.Sheet sheet, ExcelFile excelFile)
  • 方法详细资料

    • rowCount

      public int rowCount()
      返回记录行数
      指定者:
      rowCount 在接口中 ExcelSheet
      返回:
      int
    • colCount

      public int colCount()
      获取列数
      指定者:
      colCount 在接口中 ExcelSheet
      返回:
      int
    • getCellType

      public int getCellType(int row, int col)
      单元格类型
      指定者:
      getCellType 在接口中 ExcelSheet
      参数:
      row - int
      col - int
      返回:
      int
    • getCell

      public org.apache.poi.ss.usermodel.Cell getCell(int row, int col)
      获取单格
      指定者:
      getCell 在接口中 ExcelSheet
      参数:
      row - 行号 从0 开始
      col - 列号 从0 开始
      返回:
      单元格
    • getItemString

      public String getItemString(int row, String colStr)
      获取单元格的值
      指定者:
      getItemString 在接口中 ExcelSheet
      参数:
      row - int 从0 开始
      colStr - 列名
      返回:
    • getItemString

      public String getItemString(int row, int col)
      获取字符单元格
      指定者:
      getItemString 在接口中 ExcelSheet
      参数:
      row - int
      col - int
      返回:
      String
    • getItemDouble

      public double getItemDouble(int row, int col)
      获取数值型单元格
      指定者:
      getItemDouble 在接口中 ExcelSheet
      参数:
      row - int
      col - int
      返回:
      double
    • getItemDate

      public Date getItemDate(int row, int col)
      获取日期型单格
      指定者:
      getItemDate 在接口中 ExcelSheet
      参数:
      row - int
      col - int
      返回:
      Date
    • getItemDateStr

      public String getItemDateStr(int row, int col)
      获取时间字符串
      指定者:
      getItemDateStr 在接口中 ExcelSheet
      参数:
      row - int
      col - int
      返回:
      String
    • getItemDateStr

      public String getItemDateStr(int row, int col, String pattern)
      获取日期型单格
      指定者:
      getItemDateStr 在接口中 ExcelSheet
      参数:
      row - int
      col - int
      pattern - String
      返回:
      String
    • getPicData

      public ExcelPictureInfo getPicData(int row, int col)
      获取图片数据
      指定者:
      getPicData 在接口中 ExcelSheet
      参数:
      row - 行号
      col - 列号
      返回:
      ExcelPictureInfo
    • getPictureList

      public List<ExcelPictureInfo> getPictureList()
      指定者:
      getPictureList 在接口中 ExcelSheet
    • getItemBoolean

      public boolean getItemBoolean(int row, int col)
      获取布尔型单元格
      指定者:
      getItemBoolean 在接口中 ExcelSheet
      参数:
      row - 行号
      col - 列号
      返回:
      boolean
    • getItemValue

      public String getItemValue(int row, String colStr)
      获取单元格的值
      指定者:
      getItemValue 在接口中 ExcelSheet
      参数:
      row - int 从0 开始
      colStr - 列名
      返回:
    • getItemValue

      public String getItemValue(int row, int col)
      获取单元格的值
      指定者:
      getItemValue 在接口中 ExcelSheet
      参数:
      row - 行号
      col - 列号
      返回:
      String
    • setItemValue

      public void setItemValue(int row, int col, Object cellValue)
      设置单元格的值
      指定者:
      setItemValue 在接口中 ExcelSheet
      参数:
      row - int
      col - int
      cellValue - Object
    • setItemString

      public void setItemString(int row, int col, String cellValue)
    • setItemString

      public void setItemString(int row, int col, double cellValue)
    • setItemDate

      public void setItemDate(int row, int col, Date cellValue)
    • getSheet

      public org.apache.poi.ss.usermodel.Sheet getSheet()
      指定者:
      getSheet 在接口中 ExcelSheet
    • removeRow

      public void removeRow(int rowIndex)
      删除行
      指定者:
      removeRow 在接口中 ExcelSheet
      参数:
      rowIndex - 行号 从0开始
    • removeColumn

      public void removeColumn(int columnIndex)
      删除列 目前只有2003的才能删除列
      指定者:
      removeColumn 在接口中 ExcelSheet
      参数:
      columnIndex - 列号 从0开始
    • setDateFormat

      public void setDateFormat(String pattern)
      指定者:
      setDateFormat 在接口中 ExcelSheet
    • setNumberFormat

      public void setNumberFormat(String pattern)
      指定者:
      setNumberFormat 在接口中 ExcelSheet
    • isValid

      public boolean isValid(int rowIndex)
      判断行是否有效
      指定者:
      isValid 在接口中 ExcelSheet
      参数:
      rowIndex - 行号 从0开始
      返回:
      如果当前行全部为null或空,则判断为无效
    • getExcelShape

      public ExcelShape getExcelShape()
      从接口复制的说明: ExcelSheet
      读取Sheet中的形状
      指定者:
      getExcelShape 在接口中 ExcelSheet
      返回:
      ExcelShape
    • getSheetNum

      public int getSheetNum()
      指定者:
      getSheetNum 在接口中 ExcelSheet
    • getNumberFormat

      public DecimalFormat getNumberFormat()
      指定者:
      getNumberFormat 在接口中 ExcelSheet
    • getDateFormat

      public SimpleDateFormat getDateFormat()
      指定者:
      getDateFormat 在接口中 ExcelSheet
    • setForEachBreak

      public void setForEachBreak(boolean forEachBreak)
      设置foreach循环时是否退出
      指定者:
      setForEachBreak 在接口中 ExcelSheet
      参数:
      forEachBreak -
    • forEach

      public void forEach(Consumer<? super ExcelRow> action)
      指定者:
      forEach 在接口中 ExcelSheet