@Override public void set(TblPr tblPr) { if (tblPr.getTblBorders()==null) { TblBorders tblBorders = Context.getWmlObjectFactory().createTblBorders(); tblPr.setTblBorders(tblBorders); } tblPr.getTblBorders().setBottom( (CTBorder)this.getObject() ); }
@Override public void set(TblPr tblPr) { if (tblPr.getTblBorders()==null) { TblBorders tblBorders = Context.getWmlObjectFactory().createTblBorders(); tblPr.setTblBorders(tblBorders); } tblPr.getTblBorders().setBottom( (CTBorder)this.getObject() ); }
public static TblBorders apply(TblBorders source, TblBorders destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createTblBorders(); destination.setBottom(apply(source.getBottom(), destination.getBottom())); destination.setLeft(apply(source.getLeft(), destination.getLeft())); destination.setRight(apply(source.getRight(), destination.getRight())); destination.setTop(apply(source.getTop(), destination.getTop())); destination.setInsideH(apply(source.getInsideH(), destination.getInsideH())); destination.setInsideV(apply(source.getInsideV(), destination.getInsideV())); } return destination; }
tblborders.setBottom(border4); border4.setVal(org.docx4j.wml.STBorder.SINGLE); border4.setSz(BigInteger.valueOf(2));
@Override public void set(TblPr tblPr) { if (tblPr.getTblBorders()==null) { TblBorders tblBorders = Context.getWmlObjectFactory().createTblBorders(); tblPr.setTblBorders(tblBorders); } tblPr.getTblBorders().setBottom( (CTBorder)this.getObject() ); }
@Override public void set(TblPr tblPr) { if (tblPr.getTblBorders()==null) { TblBorders tblBorders = Context.getWmlObjectFactory().createTblBorders(); tblPr.setTblBorders(tblBorders); } tblPr.getTblBorders().setBottom( (CTBorder)this.getObject() ); }
borders.setBottom( copyBorderStyle(cssTable, "bottom", true) ); borders.setLeft( copyBorderStyle(cssTable, "left", true) ); borders.setRight( copyBorderStyle(cssTable, "right", true) );
public static TblBorders apply(TblBorders source, TblBorders destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createTblBorders(); destination.setBottom(apply(source.getBottom(), destination.getBottom())); destination.setLeft(apply(source.getLeft(), destination.getLeft())); destination.setRight(apply(source.getRight(), destination.getRight())); destination.setTop(apply(source.getTop(), destination.getTop())); destination.setInsideH(apply(source.getInsideH(), destination.getInsideH())); destination.setInsideV(apply(source.getInsideV(), destination.getInsideV())); } return destination; }