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 CellEditor
    Modifier and Type
    Method
    Description
    static Object
    CellKit.getCellValue(org.apache.poi.ss.usermodel.Cell cell, CellEditor cellEditor)
    获取单元格值
    static Object
    CellKit.getCellValue(org.apache.poi.ss.usermodel.Cell cell, org.apache.poi.ss.usermodel.CellType cellType, CellEditor cellEditor)
    获取单元格值 如果单元格值为数字格式,则判断其格式中是否有小数部分,无则返回Long类型,否则返回Double类型
    static List<Object>
    RowKit.readRow(org.apache.poi.ss.usermodel.Row row, int startCellNumInclude, int endCellNumInclude, CellEditor cellEditor)
    读取一行
    static List<Object>
    RowKit.readRow(org.apache.poi.ss.usermodel.Row row, CellEditor cellEditor)
    读取一行
    ExcelReader.setCellEditor(CellEditor cellEditor)
    设置单元格值处理逻辑 当Excel中的值并不能满足我们的读取要求时,通过传入一个编辑接口,可以对单元格值自定义,例如对数字和日期类型值转换为字符串等
    ExcelWriter.setCellEditor(CellEditor cellEditor)
    设置单元格值处理逻辑
    当Excel中的值并不能满足我们的读取要求时,通过传入一个编辑接口,可以对单元格值自定义,例如对数字和日期类型值转换为字符串等
    static void
    CellKit.setCellValue(org.apache.poi.ss.usermodel.Cell cell, Object value, CellEditor cellEditor)
    设置单元格值 根据传入的styleSet自动匹配样式 当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置
    static void
    CellKit.setCellValue(org.apache.poi.ss.usermodel.Cell cell, Object value, StyleSet styleSet, boolean isHeader, CellEditor cellEditor)
    设置单元格值 根据传入的styleSet自动匹配样式 当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置
    static void
    CellKit.setCellValue(org.apache.poi.ss.usermodel.Cell cell, Object value, org.apache.poi.ss.usermodel.CellStyle style, CellEditor cellEditor)
    设置单元格值 根据传入的styleSet自动匹配样式 当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置
    static void
    RowKit.writeRow(org.apache.poi.ss.usermodel.Row row, Iterable<?> rowData, CellEditor cellEditor)
    写一行数据,无样式,非标题
    static void
    RowKit.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

    Modifier and Type
    Class
    Description
    class 
    POI中NUMRIC类型的值默认返回的是Double类型,此编辑器用于转换其为int型
    class 
    去除String类型的单元格值两边的空格
  • Uses of CellEditor in org.aoju.bus.office.excel.reader

    Modifier and Type
    Field
    Description
    protected CellEditor
    AbstractSheetReader.cellEditor
    单元格值处理接口
    Methods in org.aoju.bus.office.excel.reader with parameters of type CellEditor
    Modifier and Type
    Method
    Description
    void
    AbstractSheetReader.setCellEditor(CellEditor cellEditor)
    设置单元格值处理逻辑 当Excel中的值并不能满足我们的读取要求时,通过传入一个编辑接口,可以对单元格值自定义,例如对数字和日期类型值转换为字符串等
    void
    BeanSheetReader.setCellEditor(CellEditor cellEditor)
    设置单元格值处理逻辑 当Excel中的值并不能满足我们的读取要求时,通过传入一个编辑接口,可以对单元格值自定义,例如对数字和日期类型值转换为字符串等