类 ExcelExportBase

java.lang.Object
org.jeecgframework.poi.excel.export.base.ExportBase
org.jeecgframework.poi.excel.export.base.ExcelExportBase
直接已知子类:
ExcelExportOfTemplateUtil, ExcelExportServer

public abstract class ExcelExportBase extends ExportBase
提供POI基础操作服务
作者:
JEECG
  • 字段详细资料

  • 构造器详细资料

    • ExcelExportBase

      public ExcelExportBase()
  • 方法详细资料

    • createCells

      public int createCells(org.apache.poi.ss.usermodel.Drawing patriarch, int index, Object t, List<ExcelExportEntity> excelParams, org.apache.poi.ss.usermodel.Sheet sheet, org.apache.poi.ss.usermodel.Workbook workbook, short rowHeight) throws Exception
      创建 最主要的 Cells
      参数:
      styles -
      rowHeight -
      抛出:
      Exception
    • createImageCell

      public void createImageCell(org.apache.poi.ss.usermodel.Drawing patriarch, ExcelExportEntity entity, org.apache.poi.ss.usermodel.Row row, int i, String imagePath, Object obj) throws Exception
      图片类型的Cell
      参数:
      patriarch -
      entity -
      row -
      i -
      imagePath -
      obj -
      抛出:
      Exception
    • createListCells

      public void createListCells(org.apache.poi.ss.usermodel.Drawing patriarch, int index, int cellNum, Object obj, List<ExcelExportEntity> excelParams, org.apache.poi.ss.usermodel.Sheet sheet, org.apache.poi.ss.usermodel.Workbook workbook) throws Exception
      创建List之后的各个Cells
      参数:
      patriarch -
      index -
      cellNum -
      obj -
      excelParams -
      sheet -
      workbook -
      抛出:
      Exception
    • createNumericCell

      public void createNumericCell(org.apache.poi.ss.usermodel.Row row, int index, String text, org.apache.poi.ss.usermodel.CellStyle style, ExcelExportEntity entity)
    • createStringCell

      public void createStringCell(org.apache.poi.ss.usermodel.Row row, int index, String text, org.apache.poi.ss.usermodel.CellStyle style, ExcelExportEntity entity)
      创建文本类型的Cell
      参数:
      row -
      index -
      text -
      style -
      entity -
    • addStatisticsRow

      public void addStatisticsRow(org.apache.poi.ss.usermodel.CellStyle styles, org.apache.poi.ss.usermodel.Sheet sheet)
      创建统计行
      参数:
      styles -
      sheet -
    • getFieldWidth

      public int getFieldWidth(List<ExcelExportEntity> excelParams)
      获取导出报表的字段总长度
      参数:
      excelParams -
      返回:
    • getImageType

      public int getImageType(byte[] value)
      获取图片类型,设置图片插入类型
      参数:
      value -
      返回:
    • getStyles

      public org.apache.poi.ss.usermodel.CellStyle getStyles(boolean needOne, ExcelExportEntity entity)
      获取样式
      参数:
      entity -
      needOne -
      返回:
    • mergeCells

      public void mergeCells(org.apache.poi.ss.usermodel.Sheet sheet, List<ExcelExportEntity> excelParams, int titleHeight)
      合并单元格
      参数:
      sheet -
      excelParams -
      titleHeight -
    • setCellWith

      public void setCellWith(List<ExcelExportEntity> excelParams, org.apache.poi.ss.usermodel.Sheet sheet)
    • setColumnHidden

      public void setColumnHidden(List<ExcelExportEntity> excelParams, org.apache.poi.ss.usermodel.Sheet sheet)
      设置隐藏列
      参数:
      excelParams -
      sheet -
    • setCurrentIndex

      public void setCurrentIndex(int currentIndex)
    • setExcelExportStyler

      public void setExcelExportStyler(IExcelExportStyler excelExportStyler)
    • getExcelExportStyler

      public IExcelExportStyler getExcelExportStyler()
    • createCells

      public int[] createCells(org.apache.poi.ss.usermodel.Drawing patriarch, int index, Object t, List<ExcelExportEntity> excelParams, org.apache.poi.ss.usermodel.Sheet sheet, org.apache.poi.ss.usermodel.Workbook workbook, short rowHeight, int cellNum)
      创建单元格,返回最大高度和单元格数
      参数:
      patriarch -
      index -
      t -
      excelParams -
      sheet -
      workbook -
      rowHeight - 行高
      cellNum - 格数
      返回:
    • getListCellSize

      protected int getListCellSize(List<ExcelExportEntity> list)
      获取集合的宽度
      参数:
      list -
      返回: