程序包 com.sh.util

类 ExcelRow

java.lang.Object
com.sh.util.ExcelRow
所有已实现的接口:
Serializable, Cloneable

public class ExcelRow extends Object implements Serializable, Cloneable
Description: Excel 2003-Sheet页中的每一行 Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
另请参阅:
  • 构造器详细资料

  • 方法详细资料

    • rowNum

      public long rowNum()
      返回记录行数
      返回:
      int
    • colCount

      public int colCount()
      获取列数
      返回:
      int
    • getCellType

      public int getCellType(int col)
      单元格类型
      参数:
      col - int 从0开始
      返回:
      int
    • getCell

      public org.apache.poi.ss.usermodel.Cell getCell(int col)
      获取单格
      参数:
      col - 列号 从0 开始
      返回:
      单元格
    • getItemString

      public String getItemString(String colStr)
      获取单元格的值
      参数:
      colStr - 列名
      返回:
    • getItemString

      public String getItemString(int col)
      获取字符单元格
      参数:
      col - int 从0开始
      返回:
      String
    • getItemDouble

      public double getItemDouble(int col)
      获取数值型单元格
      参数:
      col - int 从0开始
      返回:
      double
    • getItemDate

      public Date getItemDate(int col)
      获取日期型单格
      参数:
      col - int 从0开始
      返回:
      Date
    • getItemDateStr

      public String getItemDateStr(int col)
      获取时间字符串
      参数:
      col - int 从0开始
      返回:
      String
    • getItemDateStr

      public String getItemDateStr(int col, String pattern)
      获取日期型单格
      参数:
      col - int 从0开始
      pattern - String
      返回:
      String
    • getPicData

      public ExcelPictureInfo getPicData(int col)
      获取图片数据
      参数:
      col - 列号 从0开始
    • getItemBoolean

      public boolean getItemBoolean(int col)
      获取布尔型单元格
      参数:
      col - 列号 行号
      返回:
      boolean
    • getItemValue

      public String getItemValue(String colStr)
      获取单元格的值
      参数:
      colStr - 列名
      返回:
    • getItemValue

      public String getItemValue(int col, boolean trim)
    • getItemValue

      public String getItemValue(int col)
      获取单元格的值
      参数:
      col - 列号 从0开始
      返回:
      String
    • setItemValue

      public void setItemValue(int col, Object cellValue)
      设置单元格的值
      参数:
      col - int
      cellValue - Object
    • setItemString

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

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

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

      public ExcelSheet getSheet()
    • isValid

      public boolean isValid()
      判断行是否有效
      返回:
      如果当前行全部为null或空,则判断为无效
    • convertStrToColIndex

      public int convertStrToColIndex(String column)
      将Excel中的ABCD列转换成具体的数据
      参数:
      column - ABCD列名称
      返回:
      将字母列名称转换成数字
    • getCurRowNo

      public int getCurRowNo()
    • setCurRowNo

      public void setCurRowNo(int curRowNo)
    • getSheetNum

      public int getSheetNum()
    • getExcelFile

      public ExcelFile getExcelFile()