类 TableTools
- java.lang.Object
-
- com.deepoove.poi.util.TableTools
-
public final class TableTools extends Object
-
-
构造器概要
构造器 构造器 说明 TableTools()
-
方法概要
所有方法 静态方法 具体方法 已过时的方法 修饰符和类型 方法 说明 static voidborderTable(org.apache.poi.xwpf.usermodel.XWPFTable table, int size)static voidborderTable(org.apache.poi.xwpf.usermodel.XWPFTable table, BorderStyle borderStyle)static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblGridgetTblGrid(org.apache.poi.xwpf.usermodel.XWPFTable table)static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblLayoutTypegetTblLayout(org.apache.poi.xwpf.usermodel.XWPFTable table)static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcPrgetTcPr(org.apache.poi.xwpf.usermodel.XWPFTableCell cell)static voidinitBasicTable(org.apache.poi.xwpf.usermodel.XWPFTable table, int col, float width, TableStyle style)static booleanisInsideTable(org.apache.poi.xwpf.usermodel.XWPFRun run)static voidmergeCellsHorizonal(org.apache.poi.xwpf.usermodel.XWPFTable table, int row, int fromCol, int toCol)static voidmergeCellsHorizontalWithoutRemove(org.apache.poi.xwpf.usermodel.XWPFTable table, int row, int fromCol, int toCol)static voidmergeCellsVertically(org.apache.poi.xwpf.usermodel.XWPFTable table, int col, int fromRow, int toRow)static intobtainColumnSize(org.apache.poi.xwpf.usermodel.XWPFTable table)static intobtainRowSize(org.apache.poi.xwpf.usermodel.XWPFTable table)static voidsetBorder(FourthConsumer<org.apache.poi.xwpf.usermodel.XWPFTable.XWPFBorderType,Integer,Integer,String> consumer, BorderStyle border)static voidsetWidth(org.apache.poi.xwpf.usermodel.XWPFTable table, String width, int[] colWidths)static voidstyleTable(org.apache.poi.xwpf.usermodel.XWPFTable table, TableStyle style)static voidstyleTableCell(org.apache.poi.xwpf.usermodel.XWPFTableCell cell, CellStyle cellStyle)static voidstyleTableRow(org.apache.poi.xwpf.usermodel.XWPFTableRow row, RowStyle rowStyle)static voidwidthTable(org.apache.poi.xwpf.usermodel.XWPFTable table, float[] colWidths)已过时。static voidwidthTable(org.apache.poi.xwpf.usermodel.XWPFTable table, float widthCM, int cols)已过时。
-
-
-
方法详细资料
-
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)
已过时。
-
-