クラス
javafx.scene.control.TreeItemの使用
-
TreeItemを使用するパッケージ パッケージ 説明 javafx.scene.control JavaFXユーザー・インタフェース・コントロール(UIコントロールまたは単純なコントロール)は、特に多くの異なるアプリケーション・コンテキストでの再利用に適しているJavaFXシーングラフの特化されたノードです。javafx.scene.control.cell javafx.scene.control.cell
パッケージには、Cell
、IndexedCell
、ListCell
、TreeCell
およびTableCell
などのコア・クラス以外のすべてのセル関連クラスが配置されます。 -
-
javafx.scene.controlのTreeItemの使用
javafx.scene.controlのTreeItemのサブクラス 修飾子と型 クラス 説明 class
CheckBoxTreeItem<T>
選択、選択解除および不確定の各状態のサポートを追加するTreeItemサブクラス。TreeItemを返すjavafx.scene.controlのメソッド 修飾子と型 メソッド 説明 TreeItem<T>
TreeView. getEditingItem()
TreeViewで現在編集されているTreeItemを返すか、編集されているアイテムがない場合はnullを返します。TreeItem<T>
TreeItem. getParent()
このTreeItemの親。TreeItem<S>
TreeTableView. getRoot()
このTreeTableViewの現在のルート・ノードを返すか、ルート・ノードが指定されていない場合はnullを返します。TreeItem<T>
TreeView. getRoot()
このTreeViewの現在のルート・ノードを返すか、ルート・ノードが指定されていない場合はnullを返します。TreeItem<S>
TreeTableColumn.CellEditEvent. getRowValue()
TreeTableColumn.CellEditEvent.getTreeTablePosition()
で返されたTablePosition
内に含まれる行について、その行の値を(TableViewitems
リストから)返すコンビニエンス・メソッド。TreeItem<T>
TreeItem.TreeModificationEvent. getSource()
このイベントが発生したTreeItemを返します。TreeItem<T>
TreeCell. getTreeItem()
このTreeCellで現在設定されているTreeItemを返します。TreeItem<T>
TreeItem.TreeModificationEvent. getTreeItem()
このイベントが発生したTreeItemを返します。TreeItem<S>
TreeTablePosition. getTreeItem()
TablePositionBase.getRow()
行を支えるTreeItem
を返します。TreeItem<T>
TreeTableRow. getTreeItem()
このTreeTableRowに現在設定されているTreeItemを返します。TreeItem<S>
TreeTableView.EditEvent. getTreeItem()
編集が行われたTreeItem
を返します。TreeItem<S>
TreeTableView. getTreeItem(int row)
指定されたインデックスのTreeItemを返すか、範囲外である場合はnullを返します。TreeItem<T>
TreeView.EditEvent. getTreeItem()
編集が行われたTreeItem
を返します。TreeItem<T>
TreeView. getTreeItem(int row)
指定されたインデックスのTreeItemを返すか、範囲外である場合はnullを返します。TreeItem<S>
TreeTableColumn.CellDataFeatures. getValue()
コンストラクタに渡された値を返します。TreeItem<T>
TreeItem. nextSibling()
TreeItemの次の兄弟を返します。TreeItem<T>
TreeItem. nextSibling(TreeItem<T> afterNode)
指定されたノードの後にある次の兄弟を返します。TreeItem<T>
TreeItem. previousSibling()
TreeItemの前の兄弟を返します。TreeItem<T>
TreeItem. previousSibling(TreeItem<T> beforeNode)
指定されたノードの後にある前の兄弟を返します。TreeItem型の引数を持つ型を返すjavafx.scene.controlのメソッド 修飾子と型 メソッド 説明 ReadOnlyObjectProperty<Comparator<TreeItem<S>>>
TreeTableView. comparatorProperty()
コンパレータ・プロパティは、sort order
リストの現在の状態を表す読取り専用プロパティです。ReadOnlyObjectProperty<TreeItem<T>>
TreeView. editingItemProperty()
編集が発生している場合にTreeViewの現在編集されているTreeItemを表し、編集されているアイテムがない場合はnullを表すために使用されるプロパティ。ObjectProperty<FocusModel<TreeItem<T>>>
TreeView. focusModelProperty()
FocusModelには、TreeViewで0または1行のフォーカスを制御できるAPIが用意されています。List<? extends TreeItem<T>>
TreeItem.TreeModificationEvent. getAddedChildren()
このイベントでTreeItemに追加された子を返すか、追加された子がない場合は空のリストを返します。ObservableList<TreeItem<T>>
TreeItem. getChildren()
このTreeItemの子。Comparator<TreeItem<S>>
TreeTableView. getComparator()
プロパティcomparatorの値を取得します。FocusModel<TreeItem<T>>
TreeView. getFocusModel()
現在インストールされているFocusModel
を返します。List<? extends TreeItem<T>>
TreeItem.TreeModificationEvent. getRemovedChildren()
このイベントでTreeItemから削除された子を返すか、追加された子がない場合は空のリストを返します。MultipleSelectionModel<TreeItem<T>>
TreeView. getSelectionModel()
現在インストールされている選択モデルを返します。ReadOnlyObjectProperty<TreeItem<T>>
TreeItem. parentProperty()
このTreeItemの親を表すプロパティ。ObjectProperty<TreeItem<S>>
TreeTableView. rootProperty()
TreeTableViewのルート・ノードを表すプロパティ。ObjectProperty<TreeItem<T>>
TreeView. rootProperty()
TreeViewのルート・ノードを表すプロパティ。ObjectProperty<MultipleSelectionModel<TreeItem<T>>>
TreeView. selectionModelProperty()
SelectionModelには、TreeView内の1つまたは複数のアイテムを選択でき、ユーザーがどの行を選択したかを調べることもできるAPIが用意されています。ReadOnlyObjectProperty<TreeItem<T>>
TreeCell. treeItemProperty()
各TreeCellは、このプロパティで表される最大で1つのTreeItem
を表します。ReadOnlyObjectProperty<TreeItem<T>>
TreeTableRow. treeItemProperty()
各TreeTableCellは、このプロパティで表される最大で1つのTreeItem
を表します。TreeItem型のパラメータを持つjavafx.scene.controlのメソッド 修飾子と型 メソッド 説明 void
TreeView. edit(TreeItem<T> item)
TreeViewがeditable
の場合に、指定されたTreeItemの編集の開始をそのTreeViewに指示します。static int
TreeTableView. getNodeLevel(TreeItem<?> node)
非推奨。このメソッドでは、指定されたTreeItemからTreeTableViewのルートまでの距離が正しく計算されません。static int
TreeView. getNodeLevel(TreeItem<?> node)
非推奨。このメソッドでは、指定されたTreeItemからTreeViewのルートまでの距離が正しく計算されません。int
TreeTableView. getRow(TreeItem<S> item)
ツリー階層(最も顕著なのは、すべての親ツリー・アイテムが展開されていることです)から現在アクセス可能であると仮定して、指定されたTreeItemのインデックス位置を返します。int
TreeView. getRow(TreeItem<T> item)
ツリー階層(最も顕著なのは、すべての親ツリー・アイテムが展開されていることです)から現在アクセス可能であると仮定して、指定されたTreeItemのインデックス位置を返します。int
TreeTableView. getTreeItemLevel(TreeItem<?> node)
getParent()を再帰的に呼び出すことができる回数に基づいて、指定されたTreeItemのインデントのレベル数を返します。int
TreeView. getTreeItemLevel(TreeItem<?> node)
getParent()を再帰的に呼び出すことができる回数に基づいて、指定されたTreeItemのインデントのレベル数を返します。TreeItem<T>
TreeItem. nextSibling(TreeItem<T> afterNode)
指定されたノードの後にある次の兄弟を返します。TreeItem<T>
TreeItem. previousSibling(TreeItem<T> beforeNode)
指定されたノードの後にある前の兄弟を返します。void
TreeTableView. setRoot(TreeItem<S> value)
このTreeTableViewのルート・ノードを設定します。void
TreeView. setRoot(TreeItem<T> value)
このTreeViewのルート・ノードを設定します。void
TreeCell. updateTreeItem(TreeItem<T> treeItem)
このTreeCellに関連付けられたTreeItemを更新します。void
TreeTableRow. updateTreeItem(TreeItem<T> treeItem)
このTreeTableCellに関連付けられているTreeItemを更新します。TreeItem型の型引数を持つjavafx.scene.controlのメソッド・パラメータ 修飾子と型 メソッド 説明 void
TreeView. setFocusModel(FocusModel<TreeItem<T>> value)
TreeViewで使用するFocusModel
を設定します。void
TreeView. setSelectionModel(MultipleSelectionModel<TreeItem<T>> value)
TreeViewで使用するMultipleSelectionModel
を設定します。TreeItem型のパラメータを持つjavafx.scene.controlのコンストラクタ コンストラクタ 説明 CellDataFeatures(TreeTableView<S> treeTableView, TreeTableColumn<S,T> tableColumn, TreeItem<S> value)
このインスタンスの読取り専用値として設定された特定のプロパティを使用してCellDataFeaturesインスタンスをインスタンス化します。EditEvent(TreeTableView<S> source, EventType<? extends TreeTableView.EditEvent> eventType, TreeItem<S> treeItem, S oldValue, S newValue)
編集イベントを表す新規EditEventインスタンスを作成します。EditEvent(TreeView<T> source, EventType<? extends TreeView.EditEvent> eventType, TreeItem<T> treeItem, T oldValue, T newValue)
編集イベントを表す新規EditEventインスタンスを作成します。TreeModificationEvent(EventType<? extends Event> eventType, TreeItem<T> treeItem)
基本のTreeModificationEventを構築します(これは、ツリー・アイテムが新しい値を受け取っていない、展開/縮小状態の間で変更されていない、および子が変更されていない状況で役立ちます)。TreeModificationEvent(EventType<? extends Event> eventType, TreeItem<T> treeItem, boolean expanded)
TreeItemのexpandedProperty()
が変更された場合のTreeModificationEventを構築します。TreeModificationEvent(EventType<? extends Event> eventType, TreeItem<T> treeItem, List<? extends TreeItem<T>> added, List<? extends TreeItem<T>> removed)
TreeItemの子のリストが変更された場合のTreeModificationEventを構築します。TreeModificationEvent(EventType<? extends Event> eventType, TreeItem<T> treeItem, T newValue)
TreeItemのvalueProperty()
が変更された場合のTreeModificationEventを構築します。TreeTableView(TreeItem<S> root)
指定されたルート・ノードを使用してTreeTableViewを作成します。TreeView(TreeItem<T> root)
指定されたルート・ノードを使用してTreeViewを作成します。TreeItem型の型引数を持つjavafx.scene.controlのコンストラクタ・パラメータ コンストラクタ 説明 TreeModificationEvent(EventType<? extends Event> eventType, TreeItem<T> treeItem, List<? extends TreeItem<T>> added, List<? extends TreeItem<T>> removed)
TreeItemの子のリストが変更された場合のTreeModificationEventを構築します。 -
javafx.scene.control.cellのTreeItemの使用
TreeItem型の引数を持つ型を返すjavafx.scene.control.cellのメソッド 修飾子と型 メソッド 説明 ObjectProperty<StringConverter<TreeItem<T>>>
CheckBoxTreeCell. converterProperty()
StringConverter
プロパティ。StringConverter<TreeItem<T>>
CheckBoxTreeCell. getConverter()
このセルで使用するStringConverter
を返します。Callback<TreeItem<T>,ObservableValue<Boolean>>
CheckBoxTreeCell. getSelectedStateCallback()
画面上に表示されるCheckBoxによってバインドされるCallback
を返します。ObjectProperty<Callback<TreeItem<T>,ObservableValue<Boolean>>>
CheckBoxTreeCell. selectedStateCallbackProperty()
画面上に表示されるCheckBoxでバインドされるCallback
を表すプロパティ。TreeItem型の型引数を持つjavafx.scene.control.cellのメソッド・パラメータ 修飾子と型 メソッド 説明 static <T> Callback<TreeView<T>,TreeCell<T>>
CheckBoxTreeCell. forTreeView(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty)
TreeViewコントロールで使用するセル・ファクトリを作成します。static <T> Callback<TreeView<T>,TreeCell<T>>
CheckBoxTreeCell. forTreeView(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty, StringConverter<TreeItem<T>> converter)
TreeViewコントロールで使用するセル・ファクトリを作成します。static <T> Callback<TreeView<T>,TreeCell<T>>
CheckBoxTreeCell. forTreeView(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty, StringConverter<TreeItem<T>> converter)
TreeViewコントロールで使用するセル・ファクトリを作成します。void
CheckBoxTreeCell. setConverter(StringConverter<TreeItem<T>> value)
このセルで使用するStringConverter
を設定します。void
CheckBoxTreeCell. setSelectedStateCallback(Callback<TreeItem<T>,ObservableValue<Boolean>> value)
画面上に表示されるCheckBoxによってバインドされるCallback
を設定します。TreeItem型の型引数を持つjavafx.scene.control.cellのコンストラクタ・パラメータ コンストラクタ 説明 CheckBoxTreeCell(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty)
セル・ファクトリを経由してTreeViewコントロールで使用するCheckBoxTreeCell
を作成します。CheckBoxTreeCell(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty, StringConverter<TreeItem<T>> converter)
セル・ファクトリを経由してTreeViewコントロールで使用するCheckBoxTreeCell
を作成します。CheckBoxTreeCell(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty, StringConverter<TreeItem<T>> converter)
セル・ファクトリを経由してTreeViewコントロールで使用するCheckBoxTreeCell
を作成します。
-