openGionopenGion
5.0.1.1

org.opengion.plugin.view
クラス ViewForm_HTMLCustomTable

java.lang.Object
  上位を拡張 org.opengion.plugin.view.AbstractViewForm
      上位を拡張 org.opengion.plugin.view.ViewForm_HTMLTable
          上位を拡張 org.opengion.plugin.view.ViewForm_HTMLCustomTable
すべての実装されたインタフェース:
ViewForm
直系の既知のサブクラス:
ViewForm_HTMLAjaxTreeTable

public class ViewForm_HTMLCustomTable
extends ViewForm_HTMLTable

ヘッダ、フッタ、ボディを指定して作成する、自由レイアウトが可能な、カスタムテーブル表示クラスです。 このクラスは、ViewForm_HTMLFormatTable クラスの代替えとしても使用できます。 その場合は、thead のみ指定すれば、同じフォームが tbody にも適用されます。 これは、まさに、ViewForm_HTMLFormatTable と同じです。 AbstractViewForm により、setter/getterメソッドのデフォルト実装を提供しています。 各HTMLのタグに必要な setter/getterメソッドのみ,追加定義しています。 AbstractViewForm を継承している為,ロケールに応じたラベルを出力させる事が出来ます。

機能階層
画面表示
バージョン
4.0
作成者
Kazuhiko Hasegawa
導入されたバージョン:
JDK5.0,

フィールドの概要
protected static int BODYFORMAT_MAX_COUNT
           
protected  TableFormatter[] bodyFormats
           
protected  int bodyFormatsCount
           
protected  TableFormatter footerFormat
           
protected  TableFormatter headerFormat
           
 
クラス org.opengion.plugin.view.ViewForm_HTMLTable から継承されたフィールド
headerLine, rowNo
 
インタフェース org.opengion.hayabusa.html.ViewForm から継承されたフィールド
DEFAULT_CLM_WRITABLE, DEFAULT_SKIP
 
コンストラクタの概要
ViewForm_HTMLCustomTable()
           
 
メソッドの概要
 boolean canUseFormat()
          フォーマットメソッドを使用できるかどうかを問い合わせます。
 void clear()
          内容をクリア(初期化)します。
 java.lang.String create(int startNo, int pageSize)
          DBTableModel から HTML文字列を作成して返します。
protected  java.lang.String getHeadLine()
          ヘッダー繰り返し部を、getTableHead()メソッドから分離。
protected  java.lang.String getHeadLine(java.lang.String thTag)
          ヘッダー繰り返し部を、getTableHead()メソッドから分離。
protected  java.lang.String getTableFoot()
          DBTableModel から テーブルのタグ文字列を作成して返します。
protected  java.lang.String getTableHead()
          DBTableModel から テーブルのタグ文字列を作成して返します。
 void setFormatterList(java.util.List<TableFormatter> list)
          フォーマットを設定します。
 
クラス org.opengion.plugin.view.ViewForm_HTMLTable から継承されたメソッド
getColumnLabel, getHeader, getTableTag, makeCheckbox, setCaption, setPopupReturnKeys
 
クラス org.opengion.plugin.view.AbstractViewForm から継承されたメソッド
create, create, getAllCheckControl, getBackLinkCount, getBgColorCycleClass, getBgColorCycleClass, getColumnCount, getColumnDbType, getColumnDisplayCount, getColumnName, getColumnNo, getColumnSize, getCountForm, getDBColumn, getDBTableModel, getEditorValue, getHeaderSkipCount, getHiddenRowValue, getId, getLastNo, getName, getNumberData, getNumberHeader, getOptionTypeAttributes, getPageSize, getParam, getRendererValue, getRendererValue, getResourceManager, getRowCount, getScrollBarEndDiv, getScrollBarStartDiv, getSelectedType, getSortedColumnLabel, getStartNo, getTableClass, getValue, getValueLabel, getViewFormType, init, isChecked, isColumnDisplay, isColumnWritable, isFirstChecked, isMarked, isNoTransition, isNumberDisplay, isSkip, isSkipNoEdit, isUseCheckControl, isWritable, makeTableSorterQuery, markerSet, setBackLinkCount, setBgColorCycle, setColumnDisplay, setColumnDisplay, setColumnGroup, setColumnWritable, setColumnWritable, setEditMarker, setHeaderSkipCount, setHeight, setId, setName, setNoDisplay, setNoMessage, setNoTransition, setNoWritable, setNumberType, setOptionTypeAttributes, setPageSize, setParam, setResourceManager, setScrollRowNo, setSelectedType, setSkip, setSkipNoEdit, setStartNo, setTableClass, setTableSorterKeys, setUseCheckControl, setUseScrollBar, setUseTableSorter, setViewLink, setViewMarker, setWidth, setWritableControl
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

headerFormat

protected TableFormatter headerFormat

bodyFormats

protected TableFormatter[] bodyFormats

footerFormat

protected TableFormatter footerFormat

bodyFormatsCount

protected int bodyFormatsCount

BODYFORMAT_MAX_COUNT

protected static final int BODYFORMAT_MAX_COUNT
関連項目:
定数フィールド値
コンストラクタの詳細

ViewForm_HTMLCustomTable

public ViewForm_HTMLCustomTable()
メソッドの詳細

create

public java.lang.String create(int startNo,
                               int pageSize)
DBTableModel から HTML文字列を作成して返します。 startNo(表示開始位置)から、pageSize(表示件数)までのView文字列を作成します。 表示残りデータが pageSize 以下の場合は,残りのデータをすべて出力します。

定義:
インタフェース ViewForm 内の create
オーバーライド:
クラス ViewForm_HTMLTable 内の create
パラメータ:
startNo - 表示開始位置
pageSize - 表示件数
戻り値:
DBTableModel から作成された HTML文字列
変更履歴:
3.5.0.0 (2003/09/17) BODY要素の noClass 属性を追加。
3.5.0.0 (2003/09/17) <tr>属性は、元のフォーマットのまま使用します。
3.5.2.0 (2003/10/20) ヘッダー繰り返し属性( headerSkipCount )を採用
3.5.3.1 (2003/10/31) skip属性を採用。headerLine のキャッシュクリア
3.5.4.0 (2003/11/25) TableFormatter クラスを使用するように変更。
3.5.5.0 (2004/03/12) systemFormat(例:[KEY.カラム名]形式等)の対応
3.5.5.0 (2004/03/12) No 欄そのものの作成判断ロジックを追加
3.5.5.7 (2004/05/10) [#カラム名] , [$カラム名] に対応
3.5.6.0 (2004/06/18) '!' 値のみ 追加 既存の '$' は、レンデラー
3.5.6.2 (2004/07/05) makeFormat 処理をgetTableHead メソッドから移動
3.5.6.4 (2004/07/16) ヘッダーとボディー部をJavaScriptで分離
4.0.0 (2005/01/31) 新規作成(getColumnClassName ⇒ getColumnDbType)
3.7.0.3 (2005/03/01) getBgColorCycleClass に、選択行マーカーを採用
4.3.1.0 (2008/09/08) フォーマットが設定されていない場合のエラー追加・編集行のみを表示する属性(isSkipNoEdit)追加
4.3.3.0 (2008/10/01) noTransition属性対応
4.3.7.4 (2009/07/01) tbodyタグの入れ子を解消(FireFox対応)

clear

public void clear()
内容をクリア(初期化)します。

定義:
インタフェース ViewForm 内の clear
オーバーライド:
クラス ViewForm_HTMLTable 内の clear
変更履歴:
3.1.1.0 (2003/03/28) 同期メソッド(synchronized付き)を非同期に変更する。
3.5.0.0 (2003/09/17) Noカラムに、表示を全て消せるように、class 属性を追加。
3.5.4.0 (2003/11/25) TableFormatter クラスを使用するように変更。

getTableHead

protected java.lang.String getTableHead()
DBTableModel から テーブルのタグ文字列を作成して返します。

オーバーライド:
クラス ViewForm_HTMLTable 内の getTableHead
戻り値:
テーブルのタグ文字列
変更履歴:
3.5.0.0 (2003/09/17) <tr>属性は、元のフォーマットのまま使用します。
3.5.1.0 (2003/10/03) Noカラムに、numberType 属性を追加
3.5.2.0 (2003/10/20) ヘッダー繰り返し部をgetHeadLine()へ移動
3.5.3.1 (2003/10/31) VERCHAR2 を VARCHAR2 に修正。
3.5.4.0 (2003/11/25) TableFormatter クラスを使用するように変更。
3.5.5.0 (2004/03/12) No 欄そのものの作成判断ロジックを追加
3.5.6.2 (2004/07/05) makeFormat 処理をcreate メソッドの頭に移動
3.5.6.5 (2004/08/09) thead に、id="header" を追加
4.0.0 (2005/01/31) DBColumn の 属性(CLS_NM)から、DBTYPEに変更

getHeadLine

protected java.lang.String getHeadLine()
ヘッダー繰り返し部を、getTableHead()メソッドから分離。

オーバーライド:
クラス ViewForm_HTMLTable 内の getHeadLine
戻り値:
テーブルのタグ文字列
変更履歴:
3.5.6.2 (2004/07/05) HTMLCustomTableScrollBar 用に新規作成

getHeadLine

protected java.lang.String getHeadLine(java.lang.String thTag)
ヘッダー繰り返し部を、getTableHead()メソッドから分離。

オーバーライド:
クラス ViewForm_HTMLTable 内の getHeadLine
パラメータ:
thTag - タグの文字列
戻り値:
テーブルのタグ文字列
変更履歴:
3.5.2.0 (2003/10/20) 新規作成
3.5.4.0 (2003/11/25) TableFormatter クラスを使用するように変更。
3.5.4.3 (2004/01/05) useCheckControl 属性の機能を追加
3.5.4.6 (2004/01/30) numberType="none" 時の処理を追加(Noラベルを出さない)
3.5.4.7 (2004/02/06) ヘッダーにソート機能用のリンクを追加します。
3.5.5.0 (2004/03/12) systemFormat(例:[KEY.カラム名]形式等)の対応
3.5.5.0 (2004/03/12) No 欄そのものの作成判断ロジックを追加
3.5.6.2 (2004/07/05) HTMLCustomTableScrollBar 用に引数追加
3.7.0.1 (2005/01/31) 全件チェックコントロール処理変更

getTableFoot

protected java.lang.String getTableFoot()
DBTableModel から テーブルのタグ文字列を作成して返します。

戻り値:
テーブルのタグ文字列
変更履歴:
3.5.0.0 (2003/09/17) <tr>属性は、元のフォーマットのまま使用します。
3.5.1.0 (2003/10/03) Noカラムに、numberType 属性を追加
3.5.4.0 (2003/11/25) TableFormatter クラスを使用するように変更。
3.5.4.7 (2004/02/06) ヘッダーにソート機能用のリンクを追加します。
3.5.5.0 (2004/03/12) systemFormat(例:[KEY.カラム名]形式等)の対応
3.5.5.0 (2004/03/12) No 欄そのものの作成判断ロジックを追加

setFormatterList

public void setFormatterList(java.util.List<TableFormatter> list)
フォーマットを設定します。

定義:
インタフェース ViewForm 内の setFormatterList
オーバーライド:
クラス AbstractViewForm 内の setFormatterList
パラメータ:
list - List
変更履歴:
3.5.4.0 (2003/11/25) 新規作成
3.5.4.4 (2004/01/16) 配列の最大数を変更
3.5.5.5 (2004/04/23) headerFormat が定義されていない場合はエラー

canUseFormat

public boolean canUseFormat()
フォーマットメソッドを使用できるかどうかを問い合わせます。

定義:
インタフェース ViewForm 内の canUseFormat
オーバーライド:
クラス ViewForm_HTMLTable 内の canUseFormat
戻り値:
使用可能(true)/ 使用不可能 (false)

openGion 5.0.1.1

Webアプリケーションフレームワーク openGion
SourceForge.JPCopyright (c) 2009 The openGion Project.