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 EventType<?> |
ANY
Common supertype for all edit event types.
|
consumed, eventType, NULL_SOURCE_TARGET, target
source
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.
|
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. |
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
toString
public static final EventType<?> ANY
public EditEvent(TreeTableView<S> source, EventType<? extends TreeTableView.EditEvent> eventType, TreeItem<S> treeItem, S oldValue, S newValue)
TreeTableView.EDIT_START_EVENT
,
TreeTableView.EDIT_COMMIT_EVENT
and TreeTableView.EDIT_CANCEL_EVENT
types.public TreeTableView<S> getSource()
getSource
in class EventObject
public S getNewValue()
public S getOldValue()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.