Skip to content

Commit

Permalink
SAK-33386 .setFillBackgroundColor(HSSFColor.BLUE_GREY.index); =>setFi…
Browse files Browse the repository at this point in the history
…llBackgroundColor(IndexedColors.BLUE_GREY.getIndex()); (sakaiproject#4814)
  • Loading branch information
axxter99 authored and ottenhoff committed Sep 25, 2017
1 parent 2f3fd9a commit 96990a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
import javax.servlet.http.HttpServletResponse;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.ss.usermodel.BorderStyle;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.IndexedColors;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
Expand Down Expand Up @@ -77,7 +77,7 @@ private Workbook getAsWorkbook(List<List<Object>> spreadsheetData) {

// Set the header style
headerCs.setBorderBottom(BorderStyle.THICK);
headerCs.setFillBackgroundColor(HSSFColor.BLUE_GREY.index);
headerCs.setFillBackgroundColor(IndexedColors.BLUE_GREY.getIndex());
// Set the font
CellStyle cellStyle = null;
String fontName = ServerConfigurationService.getString("spreadsheet.font");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@

import javax.servlet.http.HttpServletResponse;

import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.ss.usermodel.BorderStyle;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.IndexedColors;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
Expand Down Expand Up @@ -76,8 +76,8 @@ private Workbook getAsWorkbook(List<List<Object>> spreadsheetData) {

// Set the header style
headerCs.setBorderBottom(BorderStyle.THICK);
//TODO
headerCs.setFillBackgroundColor(HSSFColor.BLUE_GREY.index);
headerCs.setFillBackgroundColor(IndexedColors.BLUE_GREY.getIndex());


// Set the font
CellStyle cellStyle = null;
Expand Down

0 comments on commit 96990a0

Please sign in to comment.