public class DBTableReport_Excel extends AbstractDBTableReport
DBTableReport インターフェース を実装したネイティブEXCEL形式で出力するクラスです。 AbstractDBTableReport を継承していますので,writeReport() のみオーバーライドして, 固定長文字ファイルの出力機能を実現しています。
dataOver, firstTemplateFile, footerKeys, footerVals, headerKeys, headerVals, htmlDir, htmlFileKey, lineCopyCnt, listId, maxPageCount, maxRowCount, pageCount, pageEndCut, pageRowCount, reader, resource, rowOver, table, templateFile, writer, ykno| コンストラクタと説明 |
|---|
DBTableReport_Excel()
デフォルトコンストラクター
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
changeCell(org.apache.poi.hssf.usermodel.HSSFCell oCell)
セル情報を変更します。
|
protected java.lang.String |
changeData(java.lang.String inLine)
入力文字列 を加工して、出力します。
|
protected java.lang.String |
changeFormulaAttr(java.lang.String inLine)
POIで解釈したExcel式の中の変な属性を加工して、出力します。
|
protected void |
changeSheet()
Excelの雛型をコピーして、そのシートに帳票データを埋め込みます。
|
protected void |
close()
リーダー、ライターの終了処理を行います。
|
protected void |
initReader()
POIFSFileSystem を、初期化します。
|
protected void |
initWriter()
FileOutputStream を、初期化します。
|
protected void |
println(java.lang.String line)
入力文字列 を読み取って、出力します。
|
protected java.lang.String |
readLine()
入力文字列 を読み取って、出力します。
|
void |
writeReport()
DBTableModel から データを作成して,PrintWriter に書き出します。
|
getRealRow, getValue, setDBTableModel, setFirstTemplateFile, setFooterKeys, setFooterVals, setHeaderFooter, setHeaderKeys, setHeaderVals, setListId, setOutputDir, setOutputFileKey, setPageEndCut, setResourceManager, setTemplateFile, setYknopublic DBTableReport_Excel()
public void writeReport()
writeReport インタフェース内 DBTableReportwriteReport クラス内 AbstractDBTableReportprotected void initReader()
initReader クラス内 AbstractDBTableReportprotected void initWriter()
initWriter クラス内 AbstractDBTableReportprotected void close()
protected void changeSheet()
protected void changeCell(org.apache.poi.hssf.usermodel.HSSFCell oCell)
oCell - HSSFCellオブジェクトprotected java.lang.String changeFormulaAttr(java.lang.String inLine)
inLine - 入力文字列protected java.lang.String changeData(java.lang.String inLine)
changeData クラス内 AbstractDBTableReportinLine - 入力文字列protected java.lang.String readLine()
readLine クラス内 AbstractDBTableReportprotected void println(java.lang.String line)
println クラス内 AbstractDBTableReportline - 入力文字列Webアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.