@Override public void set(TblPr tblPr) { if (tblPr.getTblBorders()==null) { TblBorders tblBorders = Context.getWmlObjectFactory().createTblBorders(); tblPr.setTblBorders(tblBorders); } tblPr.getTblBorders().setRight( (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.setRight(border2); border2.setVal(org.docx4j.wml.STBorder.SINGLE); border2.setSz(BigInteger.valueOf(2));
@Override public void set(TblPr tblPr) { if (tblPr.getTblBorders()==null) { TblBorders tblBorders = Context.getWmlObjectFactory().createTblBorders(); tblPr.setTblBorders(tblBorders); } tblPr.getTblBorders().setRight( (CTBorder)this.getObject() ); }
borders.setBottom( copyBorderStyle(cssTable, "bottom", true) ); borders.setLeft( copyBorderStyle(cssTable, "left", true) ); borders.setRight( copyBorderStyle(cssTable, "right", true) ); borders.setInsideH( createBorderStyle(STBorder.NONE, null, null) ); borders.setInsideV( createBorderStyle(STBorder.NONE, null, null) );
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; }