程序包 com.sh.util
类 ExcelSheet2003
java.lang.Object
com.sh.util.ExcelSheet2003
- 所有已实现的接口:
ExcelSheet
Description: Excel 2003-Sheet页
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intcolCount()获取列数voidorg.apache.poi.ss.usermodel.CellgetCell(int row, int col) 获取单格intgetCellType(int row, int col) 单元格类型读取Sheet中的形状booleangetItemBoolean(int row, int col) 获取布尔型单元格getItemDate(int row, int col) 获取日期型单格getItemDateStr(int row, int col) 获取时间字符串getItemDateStr(int row, int col, String pattern) 获取日期型单格doublegetItemDouble(int row, int col) 获取数值型单元格getItemString(int row, int col) 获取字符单元格getItemString(int row, String colStr) 获取单元格的值getItemValue(int row, int col) 获取单元格的值getItemValue(int row, String colStr) 获取单元格的值getPicData(int row, int col) 获取图片数据org.apache.poi.ss.usermodel.SheetgetSheet()intbooleanisValid(int rowIndex) 判断行是否有效voidremoveColumn(int columnIndex) 删除列 目前只有2003的才能删除列voidremoveRow(int rowIndex) 删除行introwCount()返回记录行数voidsetDateFormat(String pattern) voidsetForEachBreak(boolean forEachBreak) 设置foreach循环时是否退出voidsetItemDate(int row, int col, Date cellValue) voidsetItemString(int row, int col, double cellValue) voidsetItemString(int row, int col, String cellValue) voidsetItemValue(int row, int col, Object cellValue) 设置单元格的值voidsetNumberFormat(String pattern) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.sh.util.ExcelSheet
convertColIndexToStr, convertStrToColIndex
-
构造器详细资料
-
ExcelSheet2003
-
-
方法详细资料
-
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- intcol- int- 返回:
- int
-
getCell
public org.apache.poi.ss.usermodel.Cell getCell(int row, int col) 获取单格- 指定者:
getCell在接口中ExcelSheet- 参数:
row- 行号 从0 开始col- 列号 从0 开始- 返回:
- 单元格
-
getItemString
获取单元格的值- 指定者:
getItemString在接口中ExcelSheet- 参数:
row- int 从0 开始colStr- 列名- 返回:
-
getItemString
获取字符单元格- 指定者:
getItemString在接口中ExcelSheet- 参数:
row- intcol- int- 返回:
- String
-
getItemDouble
public double getItemDouble(int row, int col) 获取数值型单元格- 指定者:
getItemDouble在接口中ExcelSheet- 参数:
row- intcol- int- 返回:
- double
-
getItemDate
获取日期型单格- 指定者:
getItemDate在接口中ExcelSheet- 参数:
row- intcol- int- 返回:
- Date
-
getItemDateStr
获取时间字符串- 指定者:
getItemDateStr在接口中ExcelSheet- 参数:
row- intcol- int- 返回:
- String
-
getItemDateStr
获取日期型单格- 指定者:
getItemDateStr在接口中ExcelSheet- 参数:
row- intcol- intpattern- String- 返回:
- String
-
getPicData
获取图片数据- 指定者:
getPicData在接口中ExcelSheet- 参数:
row- 行号col- 列号- 返回:
- ExcelPictureInfo
-
getPictureList
- 指定者:
getPictureList在接口中ExcelSheet
-
getItemBoolean
public boolean getItemBoolean(int row, int col) 获取布尔型单元格- 指定者:
getItemBoolean在接口中ExcelSheet- 参数:
row- 行号col- 列号- 返回:
- boolean
-
getItemValue
获取单元格的值- 指定者:
getItemValue在接口中ExcelSheet- 参数:
row- int 从0 开始colStr- 列名- 返回:
-
getItemValue
获取单元格的值- 指定者:
getItemValue在接口中ExcelSheet- 参数:
row- 行号col- 列号- 返回:
- String
-
setItemValue
设置单元格的值- 指定者:
setItemValue在接口中ExcelSheet- 参数:
row- intcol- intcellValue- Object
-
setItemString
-
setItemString
public void setItemString(int row, int col, double cellValue) -
setItemDate
-
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
- 指定者:
setDateFormat在接口中ExcelSheet
-
setNumberFormat
- 指定者:
setNumberFormat在接口中ExcelSheet
-
isValid
public boolean isValid(int rowIndex) 判断行是否有效- 指定者:
isValid在接口中ExcelSheet- 参数:
rowIndex- 行号 从0开始- 返回:
- 如果当前行全部为null或空,则判断为无效
-
getExcelShape
从接口复制的说明:ExcelSheet读取Sheet中的形状- 指定者:
getExcelShape在接口中ExcelSheet- 返回:
- ExcelShape
-
getSheetNum
public int getSheetNum()- 指定者:
getSheetNum在接口中ExcelSheet
-
getNumberFormat
- 指定者:
getNumberFormat在接口中ExcelSheet
-
getDateFormat
- 指定者:
getDateFormat在接口中ExcelSheet
-
setForEachBreak
public void setForEachBreak(boolean forEachBreak) 设置foreach循环时是否退出- 指定者:
setForEachBreak在接口中ExcelSheet- 参数:
forEachBreak-
-
forEach
- 指定者:
forEach在接口中ExcelSheet
-