模块 excel.io

接口 TableDefinition<ENTITY>


public interface TableDefinition<ENTITY>
表定义
作者:
qiushui on 2019-05-18.
  • 方法详细资料

    • tableInfo

      default TableInfo tableInfo()
      表格信息
    • preparedTableDataHandler

      default PreparedTableDataHandler<?> preparedTableDataHandler()
      数据预处理器
    • columnDefinitions

      ColumnDefinition<ENTITY>[] columnDefinitions(org.apache.poi.ss.usermodel.Workbook workbook, ColumnDefinitionBuilder<ENTITY> builder)
      列定义
    • each

      default void each(ENTITY entity)
      每个处理
    • customCellStyles

      default Map<String,org.apache.poi.ss.usermodel.CellStyle> customCellStyles(org.apache.poi.ss.usermodel.Workbook workbook)
      自定义单元格样式
    • globalCellStylesHandle

      default BiConsumer<org.apache.poi.ss.usermodel.Workbook,org.apache.poi.ss.usermodel.CellStyle> globalCellStylesHandle()
      全局样式处理
    • sheetExtraHandler

      default SheetExtraHandler<?> sheetExtraHandler()
      工作表扩展处理
    • createTableTitle

      default void createTableTitle(org.apache.poi.ss.usermodel.Sheet sheet, CellStyleManager cellStyleManager, int rowIndex, int startColumnIndex, String title, int columnSize)
      创建表标题
      参数:
      sheet - 工作表
      cellStyleManager - 单元格样式管理器
      rowIndex - 行索引
      startColumnIndex - 开始列索引
      title - 标题
      columnSize - 列数量
    • createTableColumnHeader

      default int createTableColumnHeader(org.apache.poi.ss.usermodel.Sheet sheet, CellStyleManager cellStyleManager, int rowIndex, int startColumnIndex, ColumnDefinition<ENTITY>[] columnDefinitions)
      创建列头
      参数:
      sheet - 工作表
      cellStyleManager - 单元格样式管理器
      rowIndex - 列索引
      startColumnIndex - 开始列索引
      columnDefinitions - 列定义数组
      返回:
      rowIndex 最终的行号
    • createTableBody

      default void createTableBody(org.apache.poi.ss.usermodel.Workbook workbook, org.apache.poi.ss.usermodel.Sheet sheet, CellStyleManager cellStyleManager, int rowIndex, int startColumnIndex, ColumnDefinition<ENTITY>[] columnDefinitions, List<ENTITY> list)
      创建表内容
      参数:
      sheet - 工作表
      rowIndex - 行索引
      startColumnIndex - 开始列索引
      columnDefinitions - 列定义数组
      list - 实体列表