Uses of Interface
org.aoju.bus.office.excel.cell.CellEditor
Packages that use CellEditor
Package
Description
POI中对Excel读写的封装
单元格值编辑器
数据读取接口及实现,此包中定义了SheetReader,通过实现此接口,实现sheet中的数据读取为不同类型。
-
Uses of CellEditor in org.aoju.bus.office.excel
Methods in org.aoju.bus.office.excel with parameters of type CellEditorModifier and TypeMethodDescriptionstatic ObjectCellKit.getCellValue(org.apache.poi.ss.usermodel.Cell cell, CellEditor cellEditor) 获取单元格值static ObjectCellKit.getCellValue(org.apache.poi.ss.usermodel.Cell cell, org.apache.poi.ss.usermodel.CellType cellType, CellEditor cellEditor) 获取单元格值 如果单元格值为数字格式,则判断其格式中是否有小数部分,无则返回Long类型,否则返回Double类型RowKit.readRow(org.apache.poi.ss.usermodel.Row row, int startCellNumInclude, int endCellNumInclude, CellEditor cellEditor) 读取一行RowKit.readRow(org.apache.poi.ss.usermodel.Row row, CellEditor cellEditor) 读取一行ExcelReader.setCellEditor(CellEditor cellEditor) 设置单元格值处理逻辑 当Excel中的值并不能满足我们的读取要求时,通过传入一个编辑接口,可以对单元格值自定义,例如对数字和日期类型值转换为字符串等ExcelWriter.setCellEditor(CellEditor cellEditor) 设置单元格值处理逻辑
当Excel中的值并不能满足我们的读取要求时,通过传入一个编辑接口,可以对单元格值自定义,例如对数字和日期类型值转换为字符串等static voidCellKit.setCellValue(org.apache.poi.ss.usermodel.Cell cell, Object value, CellEditor cellEditor) 设置单元格值 根据传入的styleSet自动匹配样式 当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置static voidCellKit.setCellValue(org.apache.poi.ss.usermodel.Cell cell, Object value, StyleSet styleSet, boolean isHeader, CellEditor cellEditor) 设置单元格值 根据传入的styleSet自动匹配样式 当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置static voidCellKit.setCellValue(org.apache.poi.ss.usermodel.Cell cell, Object value, org.apache.poi.ss.usermodel.CellStyle style, CellEditor cellEditor) 设置单元格值 根据传入的styleSet自动匹配样式 当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置static voidRowKit.writeRow(org.apache.poi.ss.usermodel.Row row, Iterable<?> rowData, CellEditor cellEditor) 写一行数据,无样式,非标题static voidRowKit.writeRow(org.apache.poi.ss.usermodel.Row row, Iterable<?> rowData, StyleSet styleSet, boolean isHeader, CellEditor cellEditor) 写一行数据 -
Uses of CellEditor in org.aoju.bus.office.excel.cell.editors
Classes in org.aoju.bus.office.excel.cell.editors that implement CellEditorModifier and TypeClassDescriptionclassPOI中NUMRIC类型的值默认返回的是Double类型,此编辑器用于转换其为int型class去除String类型的单元格值两边的空格 -
Uses of CellEditor in org.aoju.bus.office.excel.reader
Fields in org.aoju.bus.office.excel.reader declared as CellEditorMethods in org.aoju.bus.office.excel.reader with parameters of type CellEditorModifier and TypeMethodDescriptionvoidAbstractSheetReader.setCellEditor(CellEditor cellEditor) 设置单元格值处理逻辑 当Excel中的值并不能满足我们的读取要求时,通过传入一个编辑接口,可以对单元格值自定义,例如对数字和日期类型值转换为字符串等voidBeanSheetReader.setCellEditor(CellEditor cellEditor) 设置单元格值处理逻辑 当Excel中的值并不能满足我们的读取要求时,通过传入一个编辑接口,可以对单元格值自定义,例如对数字和日期类型值转换为字符串等