Class CheckBoxTreeItem.TreeModificationEvent<T>
java.lang.Object
java.util.EventObject
javafx.event.Event
javafx.scene.control.CheckBoxTreeItem.TreeModificationEvent<T>
- Type Parameters:
T- The type of the value contained within thevalueproperty.
- All Implemented Interfaces:
Serializable, Cloneable
- Enclosing class:
CheckBoxTreeItem<T>
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
FieldsModifier and TypeFieldDescriptionCommon supertype for all tree modification event types.Fields declared in class Event
consumed, eventType, NULL_SOURCE_TARGET, targetModifier and TypeFieldDescriptionprotected booleanWhether this event has been consumed by any filter or handler.Type of the event.static final EventTargetThe constant which represents an unknown event source / target.protected EventTargetEvent target that defines the path through which the event will travel when posted.Fields declared in class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionTreeModificationEvent(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
Modifier and TypeMethodDescriptionReturns the CheckBoxTreeItem that this event occurred upon.booleanIndicates the reason for this event is that the indeterminate state on the CheckBoxTreeItem changed (as opposed to it becoming selected or unselected).booleanIndicates the reason for this event is that the selection on the CheckBoxTreeItem changed (as opposed to it becoming indeterminate).Methods declared in class Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedModifier and TypeMethodDescriptionclone()Creates and returns a copy of thisEvent.voidconsume()Marks thisEventas consumed.copyFor(Object newSource, EventTarget newTarget) Creates and returns a copy of this event with the specified event source and target.static voidfireEvent(EventTarget eventTarget, Event event) Fires the specified event.Gets the event type of this event.Returns the event target of this event.booleanIndicates whether thisEventhas been consumed by any filter or handler.Methods declared in class EventObject
getSource, toString
-
Field Details
-
ANY
-
-
Constructor Details
-
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.- Parameters:
eventType- the eventTypetreeItem- the treeItemselectionChanged- represents whether the selection has changed
-
-
Method Details
-
getTreeItem
Returns the CheckBoxTreeItem that this event occurred upon.- Returns:
- The CheckBoxTreeItem that this event occurred upon.
-
wasSelectionChanged
public boolean wasSelectionChanged()Indicates the reason for this event is that the selection on the CheckBoxTreeItem changed (as opposed to it becoming indeterminate).- Returns:
- has the CheckBoxTreeItem's selection changed
-
wasIndeterminateChanged
public boolean wasIndeterminateChanged()Indicates the reason for this event is that the indeterminate state on the CheckBoxTreeItem changed (as opposed to it becoming selected or unselected).- Returns:
- has the CheckBoxTreeItem's indeterminate changed
-