|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.hamaf.hikyaku.report.excel2003.ExcelSheet
public class ExcelSheet
タイトル: ExcelSheet is Excel sheet object.
説明:Excelのシートに対応したオブジェクト。
Created: Tue Nov 25 14:35:53 2008
コンストラクタの概要 | |
---|---|
ExcelSheet()
Creates a new ExcelSheet instance. |
メソッドの概要 | |
---|---|
void |
copyAddValue(java.util.List<java.util.List<java.lang.Object>> val,
int org,
int col)
Describe copyAddValue method : row copy and value set. |
org.w3c.dom.Node |
deleteRow(int row)
Describe deleteRow method : delete row. |
ExcelRow |
getRow(int row)
Describe getRow method : get Row Object. |
int |
getRowCount()
Describe getRowCount method : get row count. |
org.w3c.dom.Element |
getSheet()
Gets the value of sht |
java.lang.String |
getValue(int row,
int col)
Describe getValue method : get cell value. |
void |
init(ExcelDoc book,
org.w3c.dom.Element wsht)
Describe init method : save worksheet Element. |
void |
init(ExcelDoc book,
java.lang.String name)
Describe init method : create WorkSheet Element. |
int[] |
searchCell(java.lang.String val)
Describe searchCell method : search cell position by value. |
void |
setCellValue(java.lang.Object val,
int row,
int col,
java.lang.String high)
Describe setCellValue method : 1セルの値を設定する. |
void |
setRowValue(java.util.List<java.lang.Object> val,
int row,
int col,
java.lang.String high)
Describe setRowValue method : 1行分の値を設定する. |
void |
setStyle(ExcelStyle sty,
int strRow,
int endRow,
int strCol,
int endCol)
Describe setStyle method : 指定された範囲にスタイル属性を設定する. |
void |
setStyle(java.lang.String styId,
int strRow,
int endRow,
int strCol,
int endCol)
Describe setStyle method : 指定された範囲にスタイル属性を設定する. |
void |
setValue(java.util.List<java.util.List<java.lang.Object>> val,
int row,
int col,
java.lang.String high)
Describe setValue method : set valus. |
void |
setWidth(java.util.List<java.lang.String> width)
Describe setWidth method : setting columns width. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public ExcelSheet()
ExcelSheet
instance.
メソッドの詳細 |
---|
public void init(ExcelDoc book, java.lang.String name) throws java.lang.Exception
init
method : create WorkSheet Element.
book
- an ExcelDoc
:name
- a String
: シート名
java.lang.Exception
- if an error occurspublic void init(ExcelDoc book, org.w3c.dom.Element wsht) throws java.lang.Exception
init
method : save worksheet Element.
book
- an ExcelDoc
:wsht
- an Element
:
java.lang.Exception
public void setWidth(java.util.List<java.lang.String> width) throws java.lang.Exception
setWidth
method : setting columns width.
width
- a List<String>
: 各カラムの幅を指定したリスト
java.lang.Exception
- if an error occurspublic java.lang.String getValue(int row, int col)
getValue
method : get cell value.
row
- an int
: 行位置col
- an int
: 列位置
String
: 取得した値public void setValue(java.util.List<java.util.List<java.lang.Object>> val, int row, int col, java.lang.String high) throws java.lang.Exception
setValue
method : set valus.
val
- a List<List<Object>>
: 設定する値リストrow
- an int
: 開始行col
- an int
: 開始列high
- a String
: 行の高さ
java.lang.Exception
- if an error occurspublic void setRowValue(java.util.List<java.lang.Object> val, int row, int col, java.lang.String high) throws java.lang.Exception
setRowValue
method : 1行分の値を設定する.
val
- a List<Object>
: 設定する値リストrow
- an int
: 設定行位置col
- an int
: 開始列high
- a String
: 行の高さ
java.lang.Exception
- if an error occurspublic void setCellValue(java.lang.Object val, int row, int col, java.lang.String high) throws java.lang.Exception
setCellValue
method : 1セルの値を設定する.
val
- an Object
: 設定する値row
- an int
: 設定行位置col
- an int
: 設定列位置high
- a String
: 行の高さ
java.lang.Exception
- if an error occurspublic void copyAddValue(java.util.List<java.util.List<java.lang.Object>> val, int org, int col) throws java.lang.Exception
copyAddValue
method : row copy and value set.
val
- a List<List<Object>>
: 設定する値リストorg
- an int
: 元にする行位置col
- an int
: 設定列位置
java.lang.Exception
- if an error occurspublic ExcelRow getRow(int row) throws java.lang.Exception
getRow
method : get Row Object.
row
- an int
: 行位置
ExcelRow
: 取得したExcel Row オブジェクト
java.lang.Exception
- if an error occurspublic int getRowCount()
getRowCount
method : get row count.
int
: 行数public org.w3c.dom.Node deleteRow(int row) throws java.lang.Exception
deleteRow
method : delete row.
row
- an int
: 削除する行位置
Node
: 削除したNode
java.lang.Exception
- if an error occurspublic int[] searchCell(java.lang.String val) throws java.lang.Exception
searchCell
method : search cell position by value.
val
- a String
: 検索する値
int[]
: [行, 列]の値
java.lang.Exception
public void setStyle(java.lang.String styId, int strRow, int endRow, int strCol, int endCol) throws java.lang.Exception
setStyle
method : 指定された範囲にスタイル属性を設定する.
styId
- a String
: スタイル属性値strRow
- an int
: 行の開始位置endRow
- an int
: 行の終了位置strCol
- an int
: 列の開始位置endCol
- an int
: 列の終了位置
java.lang.Exception
- if an error occurspublic void setStyle(ExcelStyle sty, int strRow, int endRow, int strCol, int endCol) throws java.lang.Exception
setStyle
method : 指定された範囲にスタイル属性を設定する.
sty
- an ExcelStyle
:strRow
- an int
: 行の開始位置endRow
- an int
: 行の終了位置strCol
- an int
: 列の開始位置endCol
- an int
: 列の終了位置
java.lang.Exception
- if an error occurspublic final org.w3c.dom.Element getSheet()
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |