public class FlexGridDetailProvider extends Object
コンストラクタと説明 |
---|
FlexGridDetailProvider(FlexGrid flexGrid)
新しい FlexGridDetailProvider を初期化します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
Event |
getDetailCellCreated()
詳細行が表示された時に発生するイベントを取得します。
|
int |
getDetailVisibilityMode()
詳細行を表示する方法を取得します。
|
FlexGrid |
getFlexGrid()
FlexGridDetailProvider を所有する FlexGrid を取得します。
|
Integer |
getMaxHeight()
詳細行の高さの最大値を取得します。
|
IFunction |
getRowHasDetail()
行に詳細行があるかどうかを判断するコールバック関数を取得します。
|
void |
hideDetail()
すべての詳細行を非表示にします。
|
void |
hideDetail(GridRow row)
詳細行を渡して非表示に設定します。
|
void |
hideDetail(int row)
詳細行のインデックスを渡して非表示に設定します。
|
boolean |
isDetailAvailable(GridRow row)
GridRow にコールバックを実行する場合に利用できる詳細行があるかどうかを定義します rowHasDetailが null の場合に true を返します。
|
boolean |
isDetailAvailable(int row)
GridRow にコールバック関数を実行する場合に利用できる詳細行があるかどうかを定義します rowHasDetailが null の場合に true を返します。
|
boolean |
isDetailVisible(GridRow row)
詳細行の表示可能かどうかを取得します。
|
boolean |
isShowExpandButton()
展開ボタンを表示する必要がある場合は true を返します。
|
void |
onDetailCellCreated(DetailCellCreatedEventArgs args)
detailCellCreated イベントリスナーに新しいイベントを通知するために順番に呼び出されます。
|
void |
setDetailVisibilityMode(int detailVisibilityMode)
詳細行を表示する方法を設定します。
|
void |
setMaxHeight(Integer maxHeight)
詳細行の高さの最大値をDP値で設定します。
|
void |
setRowHasDetail(IFunction rowHasDetail)
行に詳細行があるかどうかを判断するコールバック関数を設定します。
|
void |
setShowExpandButton(boolean showExpandButton)
展開ボタンを表示するかどうかを設定します。
|
void |
showDetail(GridRow row,
boolean hideOthers)
指定された行の詳細行を表示します。
|
void |
showDetail(int row,
boolean hideOthers)
指定された行の詳細行を表示します。
|
public FlexGridDetailProvider(FlexGrid flexGrid)
flexGrid
- FlexGrid オブジェクトpublic void onDetailCellCreated(DetailCellCreatedEventArgs args)
args
- リスナーに渡す引数public void hideDetail(GridRow row)
row
- 非表示にする GridRowpublic void hideDetail(int row)
row
- 非表示にした行のインデックスpublic void hideDetail()
public boolean isDetailAvailable(int row)
row
- チェック対象の GridRowpublic boolean isDetailAvailable(GridRow row)
row
- チェック対象の GridRowpublic boolean isDetailVisible(GridRow row)
row
- 詳細行の表示状態をチェックする行public void showDetail(GridRow row, boolean hideOthers)
row
- 表示する詳細行の GridRowhideOthers
- boolean 他のすべての詳細行を表示する場合はtruepublic void showDetail(int row, boolean hideOthers)
row
- 表示する詳細行のインデックスhideOthers
- boolean 他のすべての詳細行を表示する場合はtruepublic Event getDetailCellCreated()
public FlexGrid getFlexGrid()
public Integer getMaxHeight()
public void setMaxHeight(Integer maxHeight)
maxHeight
- 高さの最大値public IFunction getRowHasDetail()
public void setRowHasDetail(IFunction rowHasDetail)
rowHasDetail
- rowHasDetail コールバック関数public int getDetailVisibilityMode()
public void setDetailVisibilityMode(int detailVisibilityMode)
detailVisibilityMode
- 詳細行表示モード(DetailVisibilityMode)列挙型public boolean isShowExpandButton()
public void setShowExpandButton(boolean showExpandButton)
boolean
- 表示する場合は true