类 TableTools

java.lang.Object
com.deepoove.poi.util.TableTools

public final class TableTools extends Object
  • 构造器概要

    构造器
    构造器
    说明
  • 方法概要

    修饰符和类型
    方法
    说明
    static void
    borderTable(org.apache.poi.xwpf.usermodel.XWPFTable table, int size)
    static void
    borderTable(org.apache.poi.xwpf.usermodel.XWPFTable table, BorderStyle borderStyle)
    static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblGrid
    getTblGrid(org.apache.poi.xwpf.usermodel.XWPFTable table)
    static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblLayoutType
    getTblLayout(org.apache.poi.xwpf.usermodel.XWPFTable table)
    static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcPr
    getTcPr(org.apache.poi.xwpf.usermodel.XWPFTableCell cell)
    static void
    initBasicTable(org.apache.poi.xwpf.usermodel.XWPFTable table, int col, float width, TableStyle style)
    static boolean
    isInsideTable(org.apache.poi.xwpf.usermodel.XWPFRun run)
    static void
    mergeCellsHorizonal(org.apache.poi.xwpf.usermodel.XWPFTable table, int row, int fromCol, int toCol)
    static void
    mergeCellsHorizontalWithoutRemove(org.apache.poi.xwpf.usermodel.XWPFTable table, int row, int fromCol, int toCol)
    static void
    mergeCellsVertically(org.apache.poi.xwpf.usermodel.XWPFTable table, int col, int fromRow, int toRow)
    static int
    obtainColumnSize(org.apache.poi.xwpf.usermodel.XWPFTable table)
    static int
    obtainRowSize(org.apache.poi.xwpf.usermodel.XWPFTable table)
    static void
    setBorder(FourthConsumer<org.apache.poi.xwpf.usermodel.XWPFTable.XWPFBorderType,Integer,Integer,String> consumer, BorderStyle border)
    static void
    setWidth(org.apache.poi.xwpf.usermodel.XWPFTable table, String width, int[] colWidths)
    static void
    styleTable(org.apache.poi.xwpf.usermodel.XWPFTable table, TableStyle style)
    static void
    styleTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell, CellStyle cellStyle)
    static void
    styleTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row, RowStyle rowStyle)
    static void
    widthTable(org.apache.poi.xwpf.usermodel.XWPFTable table, float[] colWidths)
    已过时。
    static void
    widthTable(org.apache.poi.xwpf.usermodel.XWPFTable table, float widthCM, int cols)
    已过时。

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • TableTools

      public TableTools()
  • 方法详细资料

    • mergeCellsHorizonal

      public static void mergeCellsHorizonal(org.apache.poi.xwpf.usermodel.XWPFTable table, int row, int fromCol, int toCol)
    • mergeCellsHorizontalWithoutRemove

      public static void mergeCellsHorizontalWithoutRemove(org.apache.poi.xwpf.usermodel.XWPFTable table, int row, int fromCol, int toCol)
    • mergeCellsVertically

      public static void mergeCellsVertically(org.apache.poi.xwpf.usermodel.XWPFTable table, int col, int fromRow, int toRow)
    • setWidth

      public static void setWidth(org.apache.poi.xwpf.usermodel.XWPFTable table, String width, int[] colWidths)
    • borderTable

      public static void borderTable(org.apache.poi.xwpf.usermodel.XWPFTable table, BorderStyle borderStyle)
    • borderTable

      public static void borderTable(org.apache.poi.xwpf.usermodel.XWPFTable table, int size)
    • setBorder

      public static void setBorder(FourthConsumer<org.apache.poi.xwpf.usermodel.XWPFTable.XWPFBorderType,Integer,Integer,String> consumer, BorderStyle border)
    • initBasicTable

      public static void initBasicTable(org.apache.poi.xwpf.usermodel.XWPFTable table, int col, float width, TableStyle style)
    • isInsideTable

      public static boolean isInsideTable(org.apache.poi.xwpf.usermodel.XWPFRun run)
    • styleTable

      public static void styleTable(org.apache.poi.xwpf.usermodel.XWPFTable table, TableStyle style)
    • styleTableRow

      public static void styleTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row, RowStyle rowStyle)
    • styleTableCell

      public static void styleTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell, CellStyle cellStyle)
    • obtainRowSize

      public static int obtainRowSize(org.apache.poi.xwpf.usermodel.XWPFTable table)
    • obtainColumnSize

      public static int obtainColumnSize(org.apache.poi.xwpf.usermodel.XWPFTable table)
    • getTblGrid

      public static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblGrid getTblGrid(org.apache.poi.xwpf.usermodel.XWPFTable table)
    • getTblLayout

      public static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblLayoutType getTblLayout(org.apache.poi.xwpf.usermodel.XWPFTable table)
    • getTcPr

      public static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcPr getTcPr(org.apache.poi.xwpf.usermodel.XWPFTableCell cell)
    • widthTable

      @Deprecated public static void widthTable(org.apache.poi.xwpf.usermodel.XWPFTable table, float[] colWidths)
      已过时。
    • widthTable

      @Deprecated public static void widthTable(org.apache.poi.xwpf.usermodel.XWPFTable table, float widthCM, int cols)
      已过时。