List of usage examples for org.apache.poi.xssf.usermodel XSSFTableStyleInfo setName
public void setName(String name)
From source file:de.symeda.sormas.api.doc.XssfHelper.java
License:Open Source License
public static void styleTable(XSSFTable table, int styleNumber) { // Style the table - can this be simplified? table.getCTTable().addNewTableStyleInfo(); String tableStyleName = "TableStyleLight" + styleNumber; table.getCTTable().getTableStyleInfo().setName(tableStyleName); XSSFTableStyleInfo style = (XSSFTableStyleInfo) table.getStyle(); style.setName(tableStyleName); style.setFirstColumn(false);//from w w w .j av a2 s . c o m style.setLastColumn(false); style.setShowRowStripes(true); style.setShowColumnStripes(false); }