How to change text background color in CellEntry in Java Spreadsheet API?

I am currently performing some operations on my spreadsheet through the Java Spreadsheet API, but cannot find in the documents ( https://developers.google.com/google-apps/spreadsheets/#working_with_cell-based_feeds ) how to set the text background color

code:

Map<Long, Integer> categoryStatisticsMap = populateSheetWithCategoryStatistics(statsHolder); URL cellFeedUrl = worksheet.getCellFeedUrl(); CellFeed cellFeed = service.getFeed(cellFeedUrl, CellFeed.class); for (Map.Entry<Long, Integer> entry : leadToCellMap.entrySet()) { CellEntry cellEntry= new CellEntry(entry.getValue(), currentColumn, ""+categoryStatisticsMap.get(entry.getKey())); //cellEntry.whereIsTheMethodForSettingTheColorAndOtherStuffLikeBorders cellFeed.insert(cellEntry); } 

I think you do not set it to cellEntry ... Could you point me in the right direction?

+4
source share

Source: https://habr.com/ru/post/1444794/


All Articles