com.hamaf.hikyaku.report.excel2003
クラス ExcelRow

java.lang.Object
  上位を拡張 com.hamaf.hikyaku.report.excel2003.ExcelRow

public class ExcelRow
extends java.lang.Object

タイトル: ExcelRow is Excel row object.

説明:エクセルの行(Row)を処理する。


以下の機能を提供する。
  1. init(Document, String, int) : 初期設定(新規作成用)
  2. init(Element) : 初期設定(既存の行データ)
  3. getColumnCount : 行数を戻す
  4. getValue : セルの値を取得する
  5. setValues : 行の各セルに値を設定する
  6. setStyle : 指定範囲のセルに属性を設定する
  7. getRow : 行エレメントを戻す

Created: Tue Nov 25 17:48:47 2008

バージョン:
1.0
作成者:
y-hamanaka - Hamanaka

コンストラクタの概要
ExcelRow()
           
 
メソッドの概要
 int getColumnCount()
          Describe getColumnCount method : get column count.
 org.w3c.dom.Element getRow()
          Gets the value of row
 java.lang.String getValue(int col)
          Describe getValue method : get cell value.
 void init(org.w3c.dom.Document doc, java.lang.String hight)
          Describe init method : initialize.
 void init(org.w3c.dom.Element row)
          Describe init method : set row element.
 void setStyle(java.lang.String styId, int str, int end)
          Describe setStyle method : 指定された範囲のCellにスタイル属性を設定する.
 void setValues(java.util.List<java.lang.Object> vals, int str)
          Describe setValues method : set cell values.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ExcelRow

public ExcelRow()
メソッドの詳細

init

public void init(org.w3c.dom.Document doc,
                 java.lang.String hight)
          throws java.lang.Exception
Describe init method : initialize.
行エレメントの初期設定を行う

パラメータ:
doc - a Document :
hight - a String : 業の高さ(既定値の場合、空の文字列"")
例外:
java.lang.Exception - if an error occurs

init

public void init(org.w3c.dom.Element row)
          throws java.lang.Exception
Describe init method : set row element.
既存の行エレメントを保持する

パラメータ:
row - an Element : 行(Row)エレメント
例外:
java.lang.Exception

getColumnCount

public int getColumnCount()
Describe getColumnCount method : get column count.
カラム数を戻す

戻り値:
an int : カラム数

getValue

public java.lang.String getValue(int col)
Describe getValue method : get cell value.
指定された列の値を取得する

パラメータ:
col - an int : 値を取得する列
戻り値:
a String : 取得した値の文字列

setValues

public void setValues(java.util.List<java.lang.Object> vals,
                      int str)
               throws java.lang.Exception
Describe setValues method : set cell values.
この行におけるセルの値を設定する
値は各セルごとの値をリストに設定して指定する
設定可能な値のクラスは以下になります
  1. CharSequenceクラス : String,StringBuffer,StringBuilder ...
  2. Numberクラス : Short,Integer,Long,Float,Double ...
  3. Date,Calendarクラス

パラメータ:
vals - a List<Object> : 値を設定したリスト
str - an int : 新規作成時のみ、設定開始位置
例外:
java.lang.Exception - if an error occurs

setStyle

public void setStyle(java.lang.String styId,
                     int str,
                     int end)
              throws java.lang.Exception
Describe setStyle method : 指定された範囲のCellにスタイル属性を設定する.

パラメータ:
styId - a String : スタイル属性値
str - an int : 開始位置
end - an int : 終了位置
例外:
java.lang.Exception - if an error occurs

getRow

public final org.w3c.dom.Element getRow()
Gets the value of row

戻り値:
the value of row