private void setBorder(Border border, XWPFBorderType type, int size, int space, String rgbColor) { final CTBorder b = getTblBorder(true, border); assert(b != null); b.setVal(xwpfBorderTypeMap.get(type)); b.setSz(BigInteger.valueOf(size)); b.setSpace(BigInteger.valueOf(space)); b.setColor(rgbColor); }
ctborder.setColor(toHex(color.split(",")));
private void setBorder(Border border, XWPFBorderType type, int size, int space, String rgbColor) { final CTBorder b = getTblBorder(true, border); assert(b != null); b.setVal(xwpfBorderTypeMap.get(type)); b.setSz(BigInteger.valueOf(size)); b.setSpace(BigInteger.valueOf(space)); b.setColor(rgbColor); }
public void setInsideHBorder(XWPFBorderType type, int size, int space, String rgbColor) { CTTblPr tblPr = getTrPr(); CTTblBorders ctb = tblPr.isSetTblBorders() ? tblPr.getTblBorders() : tblPr.addNewTblBorders(); CTBorder b = ctb.isSetInsideH() ? ctb.getInsideH() : ctb.addNewInsideH(); b.setVal(xwpfBorderTypeMap.get(type)); b.setSz(BigInteger.valueOf(size)); b.setSpace(BigInteger.valueOf(space)); b.setColor(rgbColor); }
public void setInsideVBorder(XWPFBorderType type, int size, int space, String rgbColor) { CTTblPr tblPr = getTrPr(); CTTblBorders ctb = tblPr.isSetTblBorders() ? tblPr.getTblBorders() : tblPr.addNewTblBorders(); CTBorder b = ctb.isSetInsideV() ? ctb.getInsideV() : ctb.addNewInsideV(); b.setVal(xwpfBorderTypeMap.get(type)); b.setSz(BigInteger.valueOf(size)); b.setSpace(BigInteger.valueOf(space)); b.setColor(rgbColor); }
ctborder.setColor(toHex(color.split(",")));