モジュール javafx.controls
パッケージ javafx.scene.control

クラスTableView.TableViewFocusModel<S>

  • 含まれているクラス:
    TableView<S>

    public static class TableView.TableViewFocusModel<S>
    extends TableFocusModel<S,TableColumn<S,?>>
    TableViewコントロールの要件をサポートする追加機能を持つFocusModel
    導入されたバージョン:
    JavaFX 2.0
    関連項目:
    TableView
    • コンストラクタの詳細

      • TableViewFocusModel

        public TableViewFocusModel​(TableView<S> tableView)
        指定されたTableViewコントロールのフォーカスの管理に使用されるデフォルトのTableViewFocusModelインスタンスを作成します。
        パラメータ:
        tableView - このフォーカス・モデルが動作するtableView。
        例外:
        NullPointerException - TableViewの引数をnullにすることはできません。
    • メソッドの詳細

      • getFocusedCell

        public final TablePosition getFocusedCell()
        プロパティfocusedCellの値を取得します。
        プロパティの説明:
        フォーカスを持つTableViewの現在のアイテムの位置。
      • focus

        public void focus​(int row,
                          TableColumn<S,?> column)
        指定されたインデックスのアイテムがフォーカスを受け取ります。
        定義:
        focus 、クラス: TableFocusModel<S,TableColumn<S,?>>
        パラメータ:
        row - フォーカスするアイテムの行インデックス。
        column - フォーカスするアイテムの列。 nullに設定できます。
      • focus

        public void focus​(TablePosition pos)
        TablePositionを使用して特定の行またはセルにフォーカスを設定するためのコンビニエンス・メソッド。
        パラメータ:
        pos - フォーカスを設定する表の位置。
      • isFocused

        public boolean isFocused​(int row,
                                 TableColumn<S,?> column)
        指定された位置の行/セルがTableView内で現在フォーカスを持っているかどうかをテストします。
        定義:
        isFocused 、クラス: TableFocusModel<S,TableColumn<S,?>>
        パラメータ:
        row - 行
        column - 列
        戻り値:
        指定されたロケーションの行 / セルが現在UIコントロール内にフォーカスを持っている場合はtrue
      • focus

        public void focus​(int index)
        指定されたインデックスのアイテムがフォーカスを受け取ります。 このことによって現在の選択が変化することはありません。 次の場合を除いて、focusedIndex = -1になるように、focusedItemとfocusedIndexのプロパティを更新します。
        0 <= index < model size
        オーバーライド:
        focus 、クラス: FocusModel<S>
        パラメータ:
        index - フォーカスを取得するアイテムのインデックス。
      • focusAboveCell

        public void focusAboveCell()
        現在フォーカスがあるセルの上のセルへのフォーカスの移動を試行します。
        定義:
        focusAboveCell 、クラス: TableFocusModel<S,TableColumn<S,?>>
      • focusBelowCell

        public void focusBelowCell()
        現在フォーカスがあるセルの下のセルへのフォーカスの移動を試行します。
        定義:
        focusBelowCell 、クラス: TableFocusModel<S,TableColumn<S,?>>
      • focusLeftCell

        public void focusLeftCell()
        現在フォーカスがあるセルの左のセルへのフォーカスの移動を試行します。
        定義:
        focusLeftCell 、クラス: TableFocusModel<S,TableColumn<S,?>>
      • focusRightCell

        public void focusRightCell()
        現在フォーカスがあるセルの右のセルへのフォーカスの移動を試行します。
        定義:
        focusRightCell 、クラス: TableFocusModel<S,TableColumn<S,?>>