public static <T> Callback<TreeView<T>, TreeCell<T>> forTreeView (StringConverter<T> converter)

Provides a TextField that allows editing of the cell content when the cell is double-clicked, or when TreeView.edit(javafx.scene.control.TreeItem) is called. This method will work on any TreeView instance, regardless of its generic type. However, to enable this, a StringConverter must be provided that will convert the given String (from what the user typed in) into an instance of type T. This item will then be passed along to the TreeView.onEditCommitProperty() callback.

Parameters:
<T>    The type of the elements contained within the TreeView
converter    A StringConverter that can convert the given String (from what the user typed in) into an instance of type T.

Returns:  A Callback that can be inserted into the cell factory property of a TreeView, that enables textual editing of the content.