org.seasar.fisshplate.core.element
クラス IteratorBlock

java.lang.Object
  上位を拡張 org.seasar.fisshplate.core.element.AbstractBlock
      上位を拡張 org.seasar.fisshplate.core.element.IteratorBlock
すべての実装されたインタフェース:
TemplateElement

public class IteratorBlock
extends AbstractBlock


フィールドの概要
 
クラス org.seasar.fisshplate.core.element.AbstractBlock から継承されたフィールド
childList
 
コンストラクタの概要
IteratorBlock(RowWrapper row, String varName, String iteratorName, String indexName, int max)
          要素を保持する変数名とイテレータ自身の名前とループのインデックス名とループの最大繰り返し回数を受け取ります。
 
メソッドの概要
 int getLineNumPerPage()
          現在のページごとの行番号を戻します。
 void initLineNumPerPage()
          現在のページごとの行番号を初期化します。
 void merge(FPContext context)
          コンテキストに格納されたデータをテンプレートに埋め込みます。
 
クラス org.seasar.fisshplate.core.element.AbstractBlock から継承されたメソッド
addChild, getChildList, mergeChildren
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

IteratorBlock

public IteratorBlock(RowWrapper row,
                     String varName,
                     String iteratorName,
                     String indexName,
                     int max)
要素を保持する変数名とイテレータ自身の名前とループのインデックス名とループの最大繰り返し回数を受け取ります。

パラメータ:
row - テンプレート上の行
varName - イテレータ内の要素を保持する変数名
iteratorName - イテレータ名
indexName - ループのインデックス名
max - ループの最大繰り返し回数
メソッドの詳細

merge

public void merge(FPContext context)
           throws FPMergeException
インタフェース TemplateElement の記述:
コンテキストに格納されたデータをテンプレートに埋め込みます。

パラメータ:
context - コンテキスト
例外:
FPMergeException - データ埋め込み時にエラーが発生した際に投げられます。

getLineNumPerPage

public int getLineNumPerPage()
現在のページごとの行番号を戻します。

戻り値:
ページごとの行番号

initLineNumPerPage

public void initLineNumPerPage()
現在のページごとの行番号を初期化します。



Copyright © 2009 The Seasar Foundation. All Rights Reserved.