Spec-Zone .ru
спецификации, руководства, описания, API
|
T
- The type of the input, which is the same type as the TreeView
itself.public static class TreeView.EditEvent<T> extends Event
Event
subclass used specifically in TreeView 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.Constructor and Description |
---|
TreeView.EditEvent(TreeView<T> source,
EventType<? extends TreeView.EditEvent> eventType,
TreeItem<T> treeItem,
T oldValue,
T newValue)
Creates a new EditEvent instance to represent an edit event.
|
Modifier and Type | Method and Description |
---|---|
T |
getNewValue()
Returns the new value input into the TreeItem by the end user.
|
T |
getOldValue()
Returns the old value that existed in the TreeItem prior to the current
edit event.
|
TreeView<T> |
getSource()
Returns the TreeView upon which the edit took place.
|
TreeItem<T> |
getTreeItem()
Returns the
TreeItem upon which the edit took place. |
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
public TreeView.EditEvent(TreeView<T> source, EventType<? extends TreeView.EditEvent> eventType, TreeItem<T> treeItem, T oldValue, T newValue)
TreeView.EDIT_START_EVENT
,
TreeView.EDIT_COMMIT_EVENT
and TreeView.EDIT_CANCEL_EVENT
types.public TreeView<T> getSource()
getSource
in class java.util.EventObject
public T getNewValue()
public T getOldValue()
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to