public class XWPFTableUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
APPLY_FIRST_COLUMN_CONDITIONNAL_FORMATTING |
static int |
APPLY_FIRST_ROW_CONDITIONNAL_FORMATTING |
static int |
APPLY_LAST_COLUMN_CONDITIONNAL_FORMATTING |
static int |
APPLY_LAST_ROW_CONDITIONNAL_FORMATTING |
static int |
DEFAULT_TBLLOOK |
static int |
DO_NOT_APPLY_COLUMN_BANDING_CONDITIONNAL_FORMATTING |
static int |
DO_NOT_APPLY_ROW_BANDING_CONDITIONNAL_FORMATTING |
| Constructor and Description |
|---|
XWPFTableUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canApplyFirstCol(int tblLookVal) |
static boolean |
canApplyFirstRow(int tblLookVal) |
static boolean |
canApplyLastCol(int tblLookVal) |
static boolean |
canApplyLastRow(int tblLookVal) |
static float[] |
computeColWidths(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl table) |
static float[] |
computeColWidths(org.apache.poi.xwpf.usermodel.XWPFTable table)
Compute column widths of the XWPF table.
|
static Color |
getBorderColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBorder border) |
static org.apache.poi.xwpf.usermodel.XWPFTableRow |
getFirstRow(org.apache.poi.xwpf.usermodel.XWPFTable table) |
static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTDecimalNumber |
getGridSpan(org.apache.poi.xwpf.usermodel.XWPFTableCell cell) |
static int |
getNumberOfColumns(org.apache.poi.xwpf.usermodel.XWPFTableRow row)
Returns number of column if the XWPF table by using the declared cell (which can declare gridSpan) from the first
row.
|
static TableCellBorder |
getTableCellBorder(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBorder border,
boolean fromTableCell) |
static TableWidth |
getTableWidth(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth tblWidth) |
static TableWidth |
getTableWidth(org.apache.poi.xwpf.usermodel.XWPFTable table)
Returns table width of teh XWPF table.
|
static TableWidth |
getTableWidth(org.apache.poi.xwpf.usermodel.XWPFTableCell cell) |
static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblBorders |
getTblBorders(org.apache.poi.xwpf.usermodel.XWPFTable table) |
static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblCellMar |
getTblCellMar(org.apache.poi.xwpf.usermodel.XWPFTable table) |
static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShortHexNumber |
getTblLook(org.apache.poi.xwpf.usermodel.XWPFTable table) |
static int |
getTblLookVal(org.apache.poi.xwpf.usermodel.XWPFTable table) |
static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblPr |
getTblPr(org.apache.poi.xwpf.usermodel.XWPFTable table) |
static java.lang.Float |
getTblWidthW(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth tblWidth)
Returns the float value of
|
static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth |
getWidth(org.apache.poi.xwpf.usermodel.XWPFTableCell cell) |
public static final int DEFAULT_TBLLOOK
public static final int APPLY_FIRST_ROW_CONDITIONNAL_FORMATTING
public static final int APPLY_LAST_ROW_CONDITIONNAL_FORMATTING
public static final int APPLY_FIRST_COLUMN_CONDITIONNAL_FORMATTING
public static final int APPLY_LAST_COLUMN_CONDITIONNAL_FORMATTING
public static final int DO_NOT_APPLY_ROW_BANDING_CONDITIONNAL_FORMATTING
public static final int DO_NOT_APPLY_COLUMN_BANDING_CONDITIONNAL_FORMATTING
public static float[] computeColWidths(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl table)
public static float[] computeColWidths(org.apache.poi.xwpf.usermodel.XWPFTable table)
table - public static int getNumberOfColumns(org.apache.poi.xwpf.usermodel.XWPFTableRow row)
table - public static org.apache.poi.xwpf.usermodel.XWPFTableRow getFirstRow(org.apache.poi.xwpf.usermodel.XWPFTable table)
public static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTDecimalNumber getGridSpan(org.apache.poi.xwpf.usermodel.XWPFTableCell cell)
public static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth getWidth(org.apache.poi.xwpf.usermodel.XWPFTableCell cell)
public static TableWidth getTableWidth(org.apache.poi.xwpf.usermodel.XWPFTable table)
table - public static TableWidth getTableWidth(org.apache.poi.xwpf.usermodel.XWPFTableCell cell)
public static TableWidth getTableWidth(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth tblWidth)
public static java.lang.Float getTblWidthW(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth tblWidth)
tblWidth - public static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblPr getTblPr(org.apache.poi.xwpf.usermodel.XWPFTable table)
public static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblBorders getTblBorders(org.apache.poi.xwpf.usermodel.XWPFTable table)
public static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblCellMar getTblCellMar(org.apache.poi.xwpf.usermodel.XWPFTable table)
public static TableCellBorder getTableCellBorder(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBorder border, boolean fromTableCell)
public static Color getBorderColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBorder border)
public static org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShortHexNumber getTblLook(org.apache.poi.xwpf.usermodel.XWPFTable table)
public static int getTblLookVal(org.apache.poi.xwpf.usermodel.XWPFTable table)
public static boolean canApplyFirstRow(int tblLookVal)
public static boolean canApplyLastRow(int tblLookVal)
public static boolean canApplyFirstCol(int tblLookVal)
public static boolean canApplyLastCol(int tblLookVal)
Copyright © 2019. All Rights Reserved.