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

クラスCheckBoxTreeItem.TreeModificationEvent<T>

  • 型パラメータ:
    T - valueプロパティに含まれる値の型。
    すべての実装されたインタフェース:
    Serializable, Cloneable
    含まれているクラス:
    CheckBoxTreeItem<T>


    public static class CheckBoxTreeItem.TreeModificationEvent<T>
    extends Event
    CheckBoxTreeItem階層を親ノードがnullになるまでこのイベントがバブル・アップするという点で、TreeItem.TreeModificationEventクラスと同様に機能するTreeModificationEventクラス。
    導入されたバージョン:
    JavaFX 2.2
    関連項目:
    直列化された形式
    • フィールドの詳細

      • ANY

        public static final EventType<Event> ANY
        すべてのツリー変更イベント・タイプに共通のスーパータイプ。
    • コンストラクタの詳細

      • TreeModificationEvent

        public TreeModificationEvent​(EventType<? extends Event> eventType,
                                     CheckBoxTreeItem<T> treeItem,
                                     boolean selectionChanged)
        指定されたCheckBoxTreeItemインスタンスの選択/不確定状態の変更を表すデフォルトのTreeModificationEventインスタンスを作成します。
        パラメータ:
        eventType - eventType
        treeItem - treeItem
        selectionChanged - 選択が変更されたかどうかを表します。
    • メソッドの詳細

      • getTreeItem

        public CheckBoxTreeItem<T> getTreeItem​()
        このイベントが発生するCheckBoxTreeItemを返します。
        戻り値:
        このイベントが発生するCheckBoxTreeItem。
      • wasSelectionChanged

        public boolean wasSelectionChanged​()
        CheckBoxTreeItemの選択が(それが不確定になるのとは対照的に)を変更したことがこのイベントの理由を示します。
        戻り値:
        CheckBoxTreeItemの選択が変更された
      • wasIndeterminateChanged

        public boolean wasIndeterminateChanged​()
        CheckBoxTreeItemの不確定状態が(それが選択されたり選択されたりするのとは対照的に)を変更したというこのイベントの理由を示します。
        戻り値:
        CheckBoxTreeItemの不確定性が変更された