类 TableTools
java.lang.Object
com.deepoove.poi.util.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 voidstatic 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) 已过时。
-
构造器详细资料
-
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
-
styleTableRow
-
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) 已过时。
-