165166167168169170171172173
/** * @param width */ public void setWidth(int width) { CTTblPr tblPr = getTrPr(); CTTblWidth tblWidth = tblPr.isSetTblW() ? tblPr.getTblW() : tblPr .addNewTblW(); tblWidth.setW(new BigInteger("" + width)); }
179180181182183184185186187
178179180181182183184185186
225226227228229230231232233
457458459460461462463464465466467468
public int getCellMarginTop() { int margin = 0; CTTblPr tblPr = getTrPr(); CTTblCellMar tcm = tblPr.getTblCellMar(); if (tcm != null) { CTTblWidth tw = tcm.getTop(); if (tw != null) { margin = tw.getW().intValue(); } } return margin; }
470471472473474475476477478479480481
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; }
483484485486487488489490491492493494
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; }
496497498499500501502503504505506507
public int getCellMarginRight() { int margin = 0; CTTblPr tblPr = getTrPr(); CTTblCellMar tcm = tblPr.getTblCellMar(); if (tcm != null) { CTTblWidth tw = tcm.getRight(); if (tw != null) { margin = tw.getW().intValue(); } } return margin; }