CTFill fill = CTFill.Factory.parse( src.getCTFill().toString(), DEFAULT_XML_OPTIONS );
CTFill fill = CTFill.Factory.parse( src.getCTFill().toString(), DEFAULT_XML_OPTIONS );
/** * Get a <b>copy</b> of the currently used CTFill, if none is used, return a new instance. */ private CTFill getCTFill(){ CTFill ct; // bug 56295: handle missing applyFill attribute as "true" because Excel does as well if(!_cellXf.isSetApplyFill() || _cellXf.getApplyFill()) { int fillIndex = (int)_cellXf.getFillId(); XSSFCellFill cf = _stylesSource.getFillAt(fillIndex); ct = (CTFill)cf.getCTFill().copy(); } else { ct = CTFill.Factory.newInstance(); } return ct; }
/** * Get a <b>copy</b> of the currently used CTFill, if none is used, return a new instance. */ private CTFill getCTFill(){ CTFill ct; if(_cellXf.getApplyFill()) { int fillIndex = (int)_cellXf.getFillId(); XSSFCellFill cf = _stylesSource.getFillAt(fillIndex); ct = (CTFill)cf.getCTFill().copy(); } else { ct = CTFill.Factory.newInstance(); } return ct; }
/** * Creates an empty CellFill */ public XSSFCellFill() { _fill = CTFill.Factory.newInstance(); }
private static CTFill[] createDefaultFills() { CTFill[] ctFill = new CTFill[]{CTFill.Factory.newInstance(),CTFill.Factory.newInstance()}; ctFill[0].addNewPatternFill().setPatternType(STPatternType.NONE); ctFill[1].addNewPatternFill().setPatternType(STPatternType.DARK_GRAY); return ctFill; }
/** * Creates an empty CellFill */ public XSSFCellFill() { _fill = CTFill.Factory.newInstance(); }
private static CTFill[] createDefaultFills() { CTFill[] ctFill = new CTFill[]{CTFill.Factory.newInstance(),CTFill.Factory.newInstance()}; ctFill[0].addNewPatternFill().setPatternType(STPatternType.NONE); ctFill[1].addNewPatternFill().setPatternType(STPatternType.DARK_GRAY); return ctFill; }
/** * Get a <b>copy</b> of the currently used CTFill, if none is used, return a new instance. */ private CTFill getCTFill(){ CTFill ct; // bug 56295: handle missing applyFill attribute as "true" because Excel does as well if(!_cellXf.isSetApplyFill() || _cellXf.getApplyFill()) { int fillIndex = (int)_cellXf.getFillId(); XSSFCellFill cf = _stylesSource.getFillAt(fillIndex); ct = (CTFill)cf.getCTFill().copy(); } else { ct = CTFill.Factory.newInstance(); } return ct; }
/** * Creates an empty CellFill */ public XSSFCellFill() { _fill = CTFill.Factory.newInstance(); }
private static CTFill[] createDefaultFills() { CTFill[] ctFill = new CTFill[]{CTFill.Factory.newInstance(),CTFill.Factory.newInstance()}; ctFill[0].addNewPatternFill().setPatternType(STPatternType.NONE); ctFill[1].addNewPatternFill().setPatternType(STPatternType.DARK_GRAY); return ctFill; }