Example usage for org.apache.poi.xssf.usermodel XSSFTableStyleInfo setShowRowStripes

List of usage examples for org.apache.poi.xssf.usermodel XSSFTableStyleInfo setShowRowStripes

Introduction

In this page you can find the example usage for org.apache.poi.xssf.usermodel XSSFTableStyleInfo setShowRowStripes.

Prototype

public void setShowRowStripes(boolean show) 

Source Link

Usage

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);/*from   w  w w  . j  a v a 2s.  co m*/
    style.setFirstColumn(false);
    style.setLastColumn(false);
    style.setShowRowStripes(true);
    style.setShowColumnStripes(false);
}