org.opengts.war.report
Class ReportSpreadsheet

java.lang.Object
  extended by org.opengts.war.report.ReportSpreadsheet

public class ReportSpreadsheet
extends java.lang.Object


Constructor Summary
ReportSpreadsheet(boolean xlsx, ReportData rd)
           
 
Method Summary
 void addBodyColumn(java.lang.Object value)
          Add Excel Body Column
 void addHeaderColumn(int colSpan, java.lang.String colTitle, int charWidth)
           
 void addHeaderColumn(java.lang.String colTitle, int charWidth)
           
 void addSubtotalColumn(java.lang.Object value)
          Add Excel Subtotal Column
 void addTotalColumn(java.lang.Object value)
          Add Excel Total Column
 int getCurrentColumnIndex()
           
 int getCurrentRowIndex()
           
static java.lang.Class GetExcelSpreadsheetClass()
           
 int incrementColumnIndex()
           
 int incrementColumnIndex(int span)
           
 int incrementRowIndex()
           
static boolean IsExcelSpreadsheetSupported()
           
 boolean isValid()
           
 boolean isXLS()
           
 boolean isXLSX()
           
 void setBlankRow()
           
 void setHeaderSubtitle(java.lang.String title)
           
 void setHeaderTitle(java.lang.String title)
           
 boolean write(java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportSpreadsheet

public ReportSpreadsheet(boolean xlsx,
                         ReportData rd)
Method Detail

GetExcelSpreadsheetClass

public static java.lang.Class GetExcelSpreadsheetClass()

IsExcelSpreadsheetSupported

public static boolean IsExcelSpreadsheetSupported()

isValid

public boolean isValid()

isXLS

public boolean isXLS()

isXLSX

public boolean isXLSX()

incrementRowIndex

public int incrementRowIndex()

getCurrentRowIndex

public int getCurrentRowIndex()

getCurrentColumnIndex

public int getCurrentColumnIndex()

incrementColumnIndex

public int incrementColumnIndex()

incrementColumnIndex

public int incrementColumnIndex(int span)

setHeaderTitle

public void setHeaderTitle(java.lang.String title)

setHeaderSubtitle

public void setHeaderSubtitle(java.lang.String title)

setBlankRow

public void setBlankRow()

addHeaderColumn

public void addHeaderColumn(java.lang.String colTitle,
                            int charWidth)

addHeaderColumn

public void addHeaderColumn(int colSpan,
                            java.lang.String colTitle,
                            int charWidth)

addBodyColumn

public void addBodyColumn(java.lang.Object value)
Add Excel Body Column

Parameters:
value - The value to add

addSubtotalColumn

public void addSubtotalColumn(java.lang.Object value)
Add Excel Subtotal Column

Parameters:
value - The value to add

addTotalColumn

public void addTotalColumn(java.lang.Object value)
Add Excel Total Column

Parameters:
value - The value to add

write

public boolean write(java.io.OutputStream out)