public static class TreeTableView.TreeTableViewFocusModel<S> extends TableFocusModel<TreeItem<S>,TreeTableColumn<S,?>>
FocusModel
。TableView
Type | プロパティと説明 |
---|---|
ReadOnlyObjectProperty<TreeTablePosition<S,?>> |
focusedCell
フォーカスを持つTableViewの現在のアイテムの位置。
|
focusedIndex、focusedItem
コンストラクタと説明 |
---|
TreeTableViewFocusModel(TreeTableView<S> treeTableView)
指定されたTableViewコントロールのフォーカスの管理に使用されるデフォルトのTableViewFocusModelインスタンスを作成します。
|
修飾子と型 | メソッドと説明 |
---|---|
void |
focus(int index)
指定されたインデックスのアイテムがフォーカスを受け取ります。
|
void |
focus(int row, TreeTableColumn<S,?> column)
指定されたインデックスのアイテムがフォーカスを受け取ります。
|
void |
focus(TreeTablePosition<S,?> pos)
TablePosition を使用して特定の行またはセルにフォーカスを設定するためのコンビニエンス・メソッド。 |
void |
focusAboveCell()
現在フォーカスがあるセルの上のセルへのフォーカスの移動を試行します。
|
void |
focusBelowCell()
現在フォーカスがあるセルの下のセルへのフォーカスの移動を試行します。
|
ReadOnlyObjectProperty<TreeTablePosition<S,?>> |
focusedCellProperty()
フォーカスを持つTableViewの現在のアイテムの位置。
|
void |
focusLeftCell()
現在フォーカスがあるセルの左のセルへのフォーカスの移動を試行します。
|
void |
focusNext()
現在フォーカスがある行の後の行にフォーカスを移動することを試みます。
|
void |
focusPrevious()
現在フォーカスがある行の前の行にフォーカスを移動することを試みます。
|
void |
focusRightCell()
現在フォーカスがあるセルの右のセルへのフォーカスの移動を試行します。
|
TreeTablePosition<S,?> |
getFocusedCell()
プロパティfocusedCellの値を取得します。
|
protected int |
getItemCount()
コントロールの基盤となるデータ・モデルのアイテム数を返します。
|
protected TreeItem<S> |
getModelItem(int index)
指定されたインデックスのアイテムを返します。
|
boolean |
isFocused(int row, TreeTableColumn<S,?> column)
指定された位置の行/セルがTableView内で現在フォーカスを持っているかどうかをテストします。
|
focusedIndexProperty、focusedItemProperty、getFocusedIndex、getFocusedItem、isFocused
public final ReadOnlyObjectProperty<TreeTablePosition<S,?>> focusedCellProperty
getFocusedCell()
public TreeTableViewFocusModel(TreeTableView<S> treeTableView)
treeTableView
- このフォーカス・モデルが動作するtableView。NullPointerException
- TableViewの引数をnullにすることはできません。protected int getItemCount()
listView.getItems().size()
を返すことがあります。フォーカス可能なインデックスの有効な範囲は、0からこのメソッドによって返される値までです。getItemCount
、クラス: FocusModel<TreeItem<S>>
protected TreeItem<S> getModelItem(int index)
listView.getItems().get(index)
です。getModelItem
、クラス: FocusModel<TreeItem<S>>
index
- 基礎となるデータ・モデルからリクエストされているアイテムのインデックス。public final ReadOnlyObjectProperty<TreeTablePosition<S,?>> focusedCellProperty()
getFocusedCell()
public final TreeTablePosition<S,?> getFocusedCell()
public void focus(int row, TreeTableColumn<S,?> column)
focus
、クラス: TableFocusModel<TreeItem<S>,TreeTableColumn<S,?>>
row
- フォーカスするアイテムの行インデックス。column
- フォーカスするアイテムの列。nullに設定できます。public void focus(TreeTablePosition<S,?> pos)
TablePosition
を使用して特定の行またはセルにフォーカスを設定するためのコンビニエンス・メソッド。pos
- フォーカスを設定する表の位置。public boolean isFocused(int row, TreeTableColumn<S,?> column)
isFocused
、クラス: TableFocusModel<TreeItem<S>,TreeTableColumn<S,?>>
public void focus(int index)
focusedIndex = -1
になるように、focusedItemとfocusedIndexのプロパティを更新します。
0 <= index < model size
focus
、クラス: FocusModel<TreeItem<S>>
index
- フォーカスを取得するアイテムのインデックス。public void focusAboveCell()
focusAboveCell
、クラス: TableFocusModel<TreeItem<S>,TreeTableColumn<S,?>>
public void focusBelowCell()
focusBelowCell
、クラス: TableFocusModel<TreeItem<S>,TreeTableColumn<S,?>>
public void focusLeftCell()
focusLeftCell
、クラス: TableFocusModel<TreeItem<S>,TreeTableColumn<S,?>>
public void focusRightCell()
focusRightCell
、クラス: TableFocusModel<TreeItem<S>,TreeTableColumn<S,?>>
public void focusPrevious()
focusPrevious
、クラス: FocusModel<TreeItem<S>>
public void focusNext()
focusNext
、クラス: FocusModel<TreeItem<S>>
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.