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.setInsideV(border6); border6.setVal(org.docx4j.wml.STBorder.SINGLE); border6.setSz(BigInteger.valueOf(2));
borders.setRight( copyBorderStyle(cssTable, "right", true) ); borders.setInsideH( createBorderStyle(STBorder.NONE, null, null) ); borders.setInsideV( createBorderStyle(STBorder.NONE, null, null) ); tblPr.setTblBorders(borders);
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; }