类 TableTools


  • public final class TableTools
    extends Object
    • 构造器详细资料

      • 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)
      • 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)
        已过时。