S
- The type of the input, which is the same type as the TreeTableView
itself.public static class TreeTableView.EditEvent<S>
extends Event
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.Modifier and Type | Field and Description |
---|---|
static <any> |
ANY
Common supertype for all edit event types.
|
private S |
newValue |
private S |
oldValue |
private static long |
serialVersionUID |
private TreeTableView<S> |
source |
private TreeItem<S> |
treeItem |
Constructor and Description |
---|
EditEvent(TreeTableView<S> source,
<any> eventType,
TreeItem<S> treeItem,
S oldValue,
S newValue)
Creates a new EditEvent instance to represent an edit event.
|
Modifier and Type | Method and Description |
---|---|
S |
getNewValue()
Returns the new value input into the TreeItem by the end user.
|
S |
getOldValue()
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 the
TreeItem upon which the edit took place. |
private static final long serialVersionUID
public static final <any> ANY
private final TreeTableView<S> source
private final S oldValue
private final S newValue
public EditEvent(TreeTableView<S> source, <any> eventType, TreeItem<S> treeItem, S oldValue, S newValue)
TreeTableView.editStartEvent()
,
TreeTableView.editCommitEvent()
and TreeTableView.editCancelEvent()
types.source
- the sourceeventType
- the eventTypetreeItem
- the treeItemoldValue
- the oldValuenewValue
- the newValuepublic TreeTableView<S> getSource()
public TreeItem<S> getTreeItem()
TreeItem
upon which the edit took place.TreeItem
upon which the edit took placepublic S getNewValue()
public S getOldValue()