javafx.scene.control
Class TreeTableView.EditEvent<S>
- java.util.EventObject
-
- javafx.event.Event
-
- javafx.scene.control.TreeTableView.EditEvent<S>
Type Parameters:
S - The type of the input, which is the same type as the TreeTableView itself.
All Implemented Interfaces:
Enclosing class:
public static class TreeTableView.EditEvent<S> extends Event
An
Event subclass used specifically in TreeTableView for representing edit-related events. It provides additional API to easily access the TreeItem that the edit event took place on, as well as the input provided by the end user.Since:
JavaFX 8.0
See Also:
-
Field Summary
Fields Modifier and Type Field and Description static EventType<?>ANYCommon supertype for all edit 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 EditEvent(TreeTableView<S> source, EventType<? extends TreeTableView.EditEvent> eventType, TreeItem<S> treeItem, S oldValue, S newValue)Creates a new EditEvent instance to represent an edit event.
-
Method Summary
All MethodsInstance MethodsConcrete Methods Modifier and Type Method and Description SgetNewValue()Returns the new value input into the TreeItem by the end user.SgetOldValue()Returns the old value that existed in the TreeItem prior to the current edit event.TreeTableView<S>getSource()Returns the TreeTableView upon which the edit took place.TreeItem<S>getTreeItem()Returns theTreeItemupon which the edit took place.-
Methods inherited from class javafx.event.Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
-
Methods inherited from class java.util.EventObject
toString
-
-
Field Detail
-
ANY
public static final EventType<?> ANY
Common supertype for all edit event types.
-
-
Constructor Detail
-
EditEvent
public EditEvent(TreeTableView<S> source, EventType<? extends TreeTableView.EditEvent> eventType, TreeItem<S> treeItem, S oldValue, S newValue)Creates a new EditEvent instance to represent an edit event. This event is used forTreeTableView.EDIT_START_EVENT,TreeTableView.EDIT_COMMIT_EVENTandTreeTableView.EDIT_CANCEL_EVENTtypes.
-
-
Method Detail
-
getSource
public TreeTableView<S> getSource()
Returns the TreeTableView upon which the edit took place.Overrides:
getSourcein classEventObject
-
getTreeItem
public TreeItem<S> getTreeItem()
Returns theTreeItemupon which the edit took place.
-
getNewValue
public S getNewValue()
Returns the new value input into the TreeItem by the end user.
-
getOldValue
public S getOldValue()
Returns the old value that existed in the TreeItem prior to the current edit event.
-
© 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.