nga.servlet.dsp.writer
クラス CelcelWriter

java.lang.Object
  上位を拡張 nga.servlet.dsp.writer.TargetValueWriter
      上位を拡張 nga.servlet.dsp.writer.CelcelWriter

public class CelcelWriter
extends TargetValueWriter

Celcel 用ライタ。


フィールドの概要
protected  TargetInfoList colInfoList
          列情報のリスト。
protected  int fixCols
          固定列数。
protected  int fixRows
          固定行数。
protected  String id
          出力先ID。
protected  List list
          行のリスト。
protected  String rowHeight
          行の高さ。
protected  TargetInfo tableInfo
          テーブル情報。
protected  String tableName
          テーブル名。
 
クラス nga.servlet.dsp.writer.TargetValueWriter から継承されたフィールド
targetValue, writer
 
コンストラクタの概要
CelcelWriter()
          CelcelWriter を作成する。
 
メソッドの概要
static String getRowHeight(TargetInfo targetInfo)
          行の高さを取得する。
protected  String getWidth(int colIndex)
          指定された列の列幅を取得する。
static String getWidth(TargetInfo targetInfo)
          列幅を取得する。
protected  void init(TargetValue resultValue)
          このインスタンスの初期化を行なう。
protected  void initFixCells()
          固定行数,固定列数を設定する。
static boolean isFixed(TargetInfo targetInfo)
          固定列かどうかを取得する。。
protected  boolean isSelectableList()
          出力対象値が SelectableList のインスタンスかどうかを調べる。
protected  boolean isSelectableTable()
          出力対象値が SelectableTable のインスタンスかどうかを調べる。
 void write()
          値オブジェクトに格納されているプロパティ値を出力する。
 void writeAttribute()
          現在処理対象となっているプロパティ値に関する属性出力を行なう。
protected  void writeCell(Object rowData, TargetInfo colInfo, boolean header, int rowIndex, int colIndex)
          セルの出力を行なう。
protected  void writeColHeaderTable()
          列ヘッダテーブルの出力を行なう。
protected  void writeColTags(int startIndex, int endIndex)
          col タグの出力を行なう。
protected  void writeDetailTable()
          明細の出力を行なう。
protected  void writeHeaderTable()
          固定ヘッダテーブルの出力を行なう。
protected  void writeRowHeaderTable()
          行ヘッダの出力を行なう。
protected  void writeRows(int startRowIndex, int endRowIndex, int startColIndex, int endColIndex, boolean header)
          行出力を行なう。
protected  void writeSelectionHolder()
          SelectionHolder を出力する。
protected  void writeTableEndTag()
          table 終了タグの出力を行なう。
protected  void writeTableTag(String idSuffix)
          table タグの出力を行なう。
protected  void writeTrEndTag()
          tr 終了タグの出力を行なう。
protected  void writeTrTag()
          tr 開始タグの出力を行なう。
 
クラス nga.servlet.dsp.writer.TargetValueWriter から継承されたメソッド
attr, attr, attr, attr, format, format, getClass, getErrorItem, getErrorValue, getFormat, getFormat, getLabel, getLabel, getScale, isCdataSection, isContainer, print, print, printErrorValue, println, println, println, printRequest, setTargetValue
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

tableInfo

protected TargetInfo tableInfo
テーブル情報。


colInfoList

protected TargetInfoList colInfoList
列情報のリスト。


tableName

protected String tableName
テーブル名。


list

protected List list
行のリスト。


rowHeight

protected String rowHeight
行の高さ。


id

protected String id
出力先ID。


fixRows

protected int fixRows
固定行数。


fixCols

protected int fixCols
固定列数。

コンストラクタの詳細

CelcelWriter

public CelcelWriter()
CelcelWriter を作成する。

メソッドの詳細

writeAttribute

public void writeAttribute()
                    throws IOException,
                           javax.servlet.ServletException
クラス TargetValueWriter の記述:
現在処理対象となっているプロパティ値に関する属性出力を行なう。 この実装では何も行なわない。必要に応じて,サブクラスにて実装する。

オーバーライド:
クラス TargetValueWriter 内の writeAttribute
例外:
IOException
javax.servlet.ServletException

initFixCells

protected void initFixCells()
固定行数,固定列数を設定する。


write

public void write()
           throws IOException,
                  javax.servlet.ServletException
クラス TargetValueWriter の記述:
値オブジェクトに格納されているプロパティ値を出力する。

定義:
クラス TargetValueWriter 内の write
例外:
IOException
javax.servlet.ServletException

writeSelectionHolder

protected void writeSelectionHolder()
SelectionHolder を出力する。


init

protected void init(TargetValue resultValue)
このインスタンスの初期化を行なう。

パラメータ:
resultValue - 出力情報。

writeTableTag

protected void writeTableTag(String idSuffix)
table タグの出力を行なう。

パラメータ:
idSuffix - id の末尾に付与する文字列。

writeTableEndTag

protected void writeTableEndTag()
table 終了タグの出力を行なう。


writeColTags

protected void writeColTags(int startIndex,
                            int endIndex)
col タグの出力を行なう。

パラメータ:
startIndex - 開始インデックス(含む)。
endIndex - 終了インデックス(含まない)。

writeHeaderTable

protected void writeHeaderTable()
固定ヘッダテーブルの出力を行なう。


writeCell

protected void writeCell(Object rowData,
                         TargetInfo colInfo,
                         boolean header,
                         int rowIndex,
                         int colIndex)
                  throws javax.servlet.ServletException
セルの出力を行なう。

パラメータ:
rowData - 行データ。
colInfo - 列情報。
header - ヘッダセルかどうか。
rowIndex - 行インデックス。
colIndex - 列インデックス。
例外:
javax.servlet.ServletException

writeTrTag

protected void writeTrTag()
tr 開始タグの出力を行なう。


writeTrEndTag

protected void writeTrEndTag()
tr 終了タグの出力を行なう。


writeRows

protected void writeRows(int startRowIndex,
                         int endRowIndex,
                         int startColIndex,
                         int endColIndex,
                         boolean header)
                  throws javax.servlet.ServletException
行出力を行なう。

パラメータ:
startRowIndex - 開始行インデックス(含む)。
endRowIndex - 終了行インデックス(含まない)。
startColIndex - 開始列インデックス(含む)。
endColIndex - 終了列インデックス(含まない)。
header - ヘッダ出力かどうか。
例外:
javax.servlet.ServletException

writeColHeaderTable

protected void writeColHeaderTable()
                            throws javax.servlet.ServletException
列ヘッダテーブルの出力を行なう。

例外:
javax.servlet.ServletException

writeRowHeaderTable

protected void writeRowHeaderTable()
                            throws javax.servlet.ServletException
行ヘッダの出力を行なう。

例外:
javax.servlet.ServletException

writeDetailTable

protected void writeDetailTable()
                         throws javax.servlet.ServletException
明細の出力を行なう。

例外:
javax.servlet.ServletException

getWidth

protected String getWidth(int colIndex)
指定された列の列幅を取得する。

パラメータ:
colIndex - 列番号。
戻り値:
列幅。

isSelectableList

protected boolean isSelectableList()
出力対象値が SelectableList のインスタンスかどうかを調べる。

戻り値:
出力対象値が SelectableList のインスタンスならば true。

isSelectableTable

protected boolean isSelectableTable()
出力対象値が SelectableTable のインスタンスかどうかを調べる。

戻り値:
出力対象値が SelectableTable のインスタンスならば true。

isFixed

public static boolean isFixed(TargetInfo targetInfo)
固定列かどうかを取得する。。

パラメータ:
targetInfo - target タグ情報。
戻り値:
固定列の場合は true。

getWidth

public static String getWidth(TargetInfo targetInfo)
列幅を取得する。

パラメータ:
targetInfo - target タグ情報。
戻り値:
列幅。

getRowHeight

public static String getRowHeight(TargetInfo targetInfo)
行の高さを取得する。

パラメータ:
targetInfo - target タグ情報。
戻り値:
列幅。