use of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblPr in project poi by apache.
the class XWPFTable method getInsideHBorderSize.
public int getInsideHBorderSize() {
int size = -1;
CTTblPr tblPr = getTrPr();
if (tblPr.isSetTblBorders()) {
CTTblBorders ctb = tblPr.getTblBorders();
if (ctb.isSetInsideH()) {
CTBorder border = ctb.getInsideH();
size = border.getSz().intValue();
}
}
return size;
}
use of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblPr in project poi by apache.
the class XWPFTable method getCellMarginLeft.
public int getCellMarginLeft() {
int margin = 0;
CTTblPr tblPr = getTrPr();
CTTblCellMar tcm = tblPr.getTblCellMar();
if (tcm != null) {
CTTblWidth tw = tcm.getLeft();
if (tw != null) {
margin = tw.getW().intValue();
}
}
return margin;
}
use of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblPr in project poi by apache.
the class XWPFTable method getCellMarginBottom.
public int getCellMarginBottom() {
int margin = 0;
CTTblPr tblPr = getTrPr();
CTTblCellMar tcm = tblPr.getTblCellMar();
if (tcm != null) {
CTTblWidth tw = tcm.getBottom();
if (tw != null) {
margin = tw.getW().intValue();
}
}
return margin;
}
use of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblPr in project poi by apache.
the class XWPFTable method getInsideHBorderSpace.
public int getInsideHBorderSpace() {
int space = -1;
CTTblPr tblPr = getTrPr();
if (tblPr.isSetTblBorders()) {
CTTblBorders ctb = tblPr.getTblBorders();
if (ctb.isSetInsideH()) {
CTBorder border = ctb.getInsideH();
space = border.getSpace().intValue();
}
}
return space;
}
use of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblPr in project poi by apache.
the class XWPFTable method getInsideHBorderColor.
public String getInsideHBorderColor() {
String color = null;
CTTblPr tblPr = getTrPr();
if (tblPr.isSetTblBorders()) {
CTTblBorders ctb = tblPr.getTblBorders();
if (ctb.isSetInsideH()) {
CTBorder border = ctb.getInsideH();
color = border.xgetColor().getStringValue();
}
}
return color;
}
Aggregations