javafx.scene.control
Class CheckBoxTreeItem.TreeModificationEvent<T>
- java.util.EventObject
-
- javafx.event.Event
-
- javafx.scene.control.CheckBoxTreeItem.TreeModificationEvent<T>
Type Parameters:
T - The type of the value contained within the value property.
All Implemented Interfaces:
Enclosing class:
public static class CheckBoxTreeItem.TreeModificationEvent<T> extends Event
A TreeModificationEvent class that works in a similar vein to the
TreeItem.TreeModificationEvent class, in that this event will bubble up the CheckBoxTreeItem hierarchy, until the parent node is null.Since:
JavaFX 2.2
See Also:
-
Field Summary
Fields Modifier and Type Field and Description static EventType<Event>ANYCommon supertype for all tree modification event types.-
Fields inherited from class javafx.event.Event
consumed, eventType, NULL_SOURCE_TARGET, target
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor and Description TreeModificationEvent(EventType<? extends Event> eventType, CheckBoxTreeItem<T> treeItem, boolean selectionChanged)Creates a default TreeModificationEvent instance to represent the change in selection/indeterminate states for the given CheckBoxTreeItem instance.
-
Method Summary
All MethodsInstance MethodsConcrete Methods Modifier and Type Method and Description CheckBoxTreeItem<T>getTreeItem()Returns the CheckBoxTreeItem that this event occurred upon.booleanwasIndeterminateChanged()Indicates the the reason for this event is that the indeterminate state on the CheckBoxTreeItem changed (as opposed to it becoming selected or unselected).booleanwasSelectionChanged()Indicates the the reason for this event is that the selection on the CheckBoxTreeItem changed (as opposed to it becoming indeterminate).-
Methods inherited from class javafx.event.Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
Field Detail
-
ANY
public static final EventType<Event> ANY
Common supertype for all tree modification event types.
-
-
Constructor Detail
-
TreeModificationEvent
public TreeModificationEvent(EventType<? extends Event> eventType, CheckBoxTreeItem<T> treeItem, boolean selectionChanged)Creates a default TreeModificationEvent instance to represent the change in selection/indeterminate states for the given CheckBoxTreeItem instance.
-
-
Method Detail
-
getTreeItem
public CheckBoxTreeItem<T> getTreeItem()
Returns the CheckBoxTreeItem that this event occurred upon.Returns:
The CheckBoxTreeItem that this event occurred upon.
-
wasSelectionChanged
public boolean wasSelectionChanged()
Indicates the the reason for this event is that the selection on the CheckBoxTreeItem changed (as opposed to it becoming indeterminate).
-
wasIndeterminateChanged
public boolean wasIndeterminateChanged()
Indicates the the reason for this event is that the indeterminate state on the CheckBoxTreeItem changed (as opposed to it becoming selected or unselected).
-
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.