/** * Create an instance of {@link CTCellXfs } * */ public CTCellXfs createCTCellXfs() { return new CTCellXfs(); }
/** * Cells in the Sheet Part reference the xf (data format) records by zero-based index. * * @param idx * @return */ public CTXf getXfByIndex(long idx) { if (this.getJaxbElement().getCellXfs()!=null) { return this.getJaxbElement().getCellXfs().getXf().get( (int)idx); } return null; }
/** * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. * * @param parent * The parent object in the object tree. * @param unmarshaller * The unmarshaller that generated the instance. */ public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { setParent(parent); }
public void saveStyle() { if (!newCellXfs.isEmpty()) { CTCellXfs ctCellXfs = ctStylesheet.getCellXfs(); if (ctCellXfs == null) { ctCellXfs = new CTCellXfs(); ctStylesheet.setCellXfs(ctCellXfs); } ctCellXfs.setCount((long) cellXfsIndex.size()); List<CTXf> xfs = ctCellXfs.getXf(); for (CellXfs cellXfs : newCellXfs) { CTXf ctXf = new CTXf(); ctXf.setNumFmtId(cellXfs.getNumFmtId()); ctXf.setFontId(cellXfs.getFontId()); ctXf.setFillId(cellXfs.getFillId()); ctXf.setBorderId(cellXfs.getBorderId()); ctXf.setXfId(cellXfs.getXfId()); ctXf.setParent(ctCellXfs); xfs.add(ctXf); } } }
public void saveStyle() { if (!newCellXfs.isEmpty()) { CTCellXfs ctCellXfs = ctStylesheet.getCellXfs(); if (ctCellXfs == null) { ctCellXfs = new CTCellXfs(); ctStylesheet.setCellXfs(ctCellXfs); } ctCellXfs.setCount((long) cellXfsIndex.size()); List<CTXf> xfs = ctCellXfs.getXf(); for (CellXfs cellXfs : newCellXfs) { CTXf ctXf = new CTXf(); ctXf.setNumFmtId(cellXfs.getNumFmtId()); ctXf.setFontId(cellXfs.getFontId()); ctXf.setFillId(cellXfs.getFillId()); ctXf.setBorderId(cellXfs.getBorderId()); ctXf.setXfId(cellXfs.getXfId()); ctXf.setParent(ctCellXfs); xfs.add(ctXf); } } }
stylesheet.setBorders(borders); stylesheet.setCellXfs(new CTCellXfs()); stylesheet.getCellXfs().setCount(2L); CTCellAlignment cellAlignment = new CTCellAlignment(); cellAlignment.setWrapText(true); cellAlignment.setVertical(STVerticalAlignment.JUSTIFY); stylesheet.getCellXfs().getXf().add(generateCTXf(0l, 0l, null, 0l, 0l, cellAlignment, null)); stylesheet.getCellXfs().getXf().add(generateCTXf(1l, 0l, null, 0l, 0l, cellAlignment, true)); stylesheet.setCellStyles(new CTCellStyles()); stylesheet.getCellStyles().setCount(1L);
/** * Cells in the Sheet Part reference the xf (data format) records by zero-based index. * * @param idx * @return */ public CTXf getXfByIndex(long idx) { if (this.getJaxbElement().getCellXfs()!=null) { return this.getJaxbElement().getCellXfs().getXf().get( (int)idx); } return null; }
/** * Create an instance of {@link CTCellXfs } * */ public CTCellXfs createCTCellXfs() { return new CTCellXfs(); }
/** * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. * * @param parent * The parent object in the object tree. * @param unmarshaller * The unmarshaller that generated the instance. */ public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { setParent(parent); }
for (CTXf xf : ctCellXfs.getXf()) { CellXfs cellXfs = new CellXfs(xf.getXfId(), xf.getNumFmtId(),
for (CTXf xf : ctCellXfs.getXf()) { CellXfs cellXfs = new CellXfs(xf.getXfId(), xf.getNumFmtId(),