/** * Get the cell style object at the given index * * @param idx index within the set of styles (0-based) * @return CellStyle object at the index */ @Override public CellStyle getCellStyleAt(int idx) { return _wb.getCellStyleAt(idx); }
/** * Returns the CellStyle that applies to the given * (0 based) column, or null if no style has been * set for that column */ @Override public CellStyle getColumnStyle(int column) { int idx = columnHelper.getColDefaultStyle(column); return getWorkbook().getCellStyleAt((short)(idx == -1 ? 0 : idx)); }
/** * Get the cell style object at the given index * * @param idx index within the set of styles (0-based) * @return CellStyle object at the index */ public CellStyle getCellStyleAt(short idx) { return _wb.getCellStyleAt(idx); }
/** * Get the cell style object at the given index * * @param idx index within the set of styles (0-based) * @return CellStyle object at the index */ @Override public CellStyle getCellStyleAt(int idx) { return _wb.getCellStyleAt(idx); }
/** * Returns the CellStyle that applies to the given * (0 based) column, or null if no style has been * set for that column */ @Override public CellStyle getColumnStyle(int column) { int idx = columnHelper.getColDefaultStyle(column); return getWorkbook().getCellStyleAt((short)(idx == -1 ? 0 : idx)); }
/** * Returns the CellStyle that applies to the given * (0 based) column, or null if no style has been * set for that column */ public CellStyle getColumnStyle(int column) { int idx = columnHelper.getColDefaultStyle(column); return getWorkbook().getCellStyleAt((short)(idx == -1 ? 0 : idx)); }
final int predefinedStyles = workbook.getNumCellStyles(); for ( int i = 0; i < predefinedStyles; i++ ) { final XSSFCellStyle cellStyleAt = xssfWorkbook.getCellStyleAt( i ); this.styleCache.put( new HSSFCellStyleKey( cellStyleAt ), cellStyleAt );
private XSSFCellStyle createStyleFromOriginal(StyleTransformation st, XLSXCellNode node) { XSSFCellStyle originalCellStyle = sheet.getWorkbook().getCellStyleAt((short) node.getStyle()); XSSFCellStyle cellStyle = sheet.getWorkbook().getStylesSource().createCellStyle(); cellStyle.cloneStyleFrom(originalCellStyle); st.transform(cellStyle); return cellStyle; }