Uses of Class javafx.scene.control.TreeView (JavaFX 19)
Description: use: module: javafx.controls, package: javafx.scene.control, class: TreeView

# Uses of Class
javafx.scene.control.TreeView

Packages that use TreeView
Package
Description
javafx.scene.control
The JavaFX User Interface Controls (UI Controls or just Controls) are specialized Nodes in the JavaFX Scenegraph especially suited for reuse in many different application contexts.
javafx.scene.control.cell
The `javafx.scene.control.cell` package is where all cell-related classes are located, other than the core classes such as `Cell`, `IndexedCell`, `ListCell`, `TreeCell`, and `TableCell`.
javafx.scene.control.skin
The javafx.scene.control.skin package is where the skin classes, typically one for each UI control, are located

- ## Uses of TreeView in javafx.scene.control

  Methods in javafx.scene.control that return TreeView
  Modifier and Type
  Method
  Description
  `TreeView<T>`
  TreeView.EditEvent.`getSource()`
  Returns the TreeView upon which the edit took place.
  `final TreeView<T>`
  TreeCell.`getTreeView()`
  Returns the TreeView associated with this TreeCell.
  Methods in javafx.scene.control that return types with arguments of type TreeView
  Modifier and Type
  Method
  Description
  `final ObjectProperty<Callback<TreeView<T>,TreeCell<T>>>`
  TreeView.`cellFactoryProperty()`
  Represents the cell factory that will be used for creating TreeCells, which are used to represent items in the TreeView.
  `final Callback<TreeView<T>,TreeCell<T>>`
  TreeView.`getCellFactory()`
  Returns the cell factory that will be used for creating TreeCells, which are used to represent items in the TreeView, or null if no custom cell factory has been set.
  `final ReadOnlyObjectProperty<TreeView<T>>`
  TreeCell.`treeViewProperty()`
  A TreeCell is explicitly linked to a single `TreeView` instance, which is represented by this property.
  Methods in javafx.scene.control with parameters of type TreeView
  Modifier and Type
  Method
  Description
  `final void`
  TreeCell.`updateTreeView(TreeView<T> tree)`
  Updates the TreeView associated with this TreeCell.
  Method parameters in javafx.scene.control with type arguments of type TreeView
  Modifier and Type
  Method
  Description
  `final void`
  TreeView.`setCellFactory(Callback<TreeView<T>,TreeCell<T>> value)`
  Sets the cell factory that will be used for creating TreeCells, which are used to represent items in the TreeView.
  Constructors in javafx.scene.control with parameters of type TreeView
  Modifier
  Constructor
  Description
  ``
  `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.

- ## Uses of TreeView in javafx.scene.control.cell

  Methods in javafx.scene.control.cell that return types with arguments of type TreeView
  Modifier and Type
  Method
  Description
  `static <T> Callback<TreeView<T>,TreeCell<T>>`
  CheckBoxTreeCell.`forTreeView()`
  Creates a cell factory for use in a TreeView control, although there is a major assumption when used in a TreeView: this cell factory assumes that the TreeView root, and all children are instances of `CheckBoxTreeItem`, rather than the default `TreeItem` class that is used normally.
  `static <T> Callback<TreeView<T>,TreeCell<T>>`
  CheckBoxTreeCell.`forTreeView(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty)`
  Creates a cell factory for use in a TreeView control.
  `static <T> Callback<TreeView<T>,TreeCell<T>>`
  CheckBoxTreeCell.`forTreeView(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty, StringConverter<TreeItem<T>> converter)`
  Creates a cell factory for use in a TreeView control.
  `static <T> Callback<TreeView<T>,TreeCell<T>>`
  ChoiceBoxTreeCell.`forTreeView(ObservableList<T> items)`
  Creates a ChoiceBox cell factory for use in `TreeView` controls.
  `static <T> Callback<TreeView<T>,TreeCell<T>>`
  ChoiceBoxTreeCell.`forTreeView(StringConverter<T> converter, ObservableList<T> items)`
  Creates a ChoiceBox cell factory for use in `TreeView` controls.
  `static <T> Callback<TreeView<T>,TreeCell<T>>`
  ChoiceBoxTreeCell.`forTreeView(StringConverter<T> converter, T... items)`
  Creates a ChoiceBox cell factory for use in `TreeView` controls.
  `static <T> Callback<TreeView<T>,TreeCell<T>>`
  ChoiceBoxTreeCell.`forTreeView(T... items)`
  Creates a ChoiceBox cell factory for use in `TreeView` controls.
  `static <T> Callback<TreeView<T>,TreeCell<T>>`
  ComboBoxTreeCell.`forTreeView(ObservableList<T> items)`
  Creates a ComboBox cell factory for use in `TreeView` controls.
  `static <T> Callback<TreeView<T>,TreeCell<T>>`
  ComboBoxTreeCell.`forTreeView(StringConverter<T> converter, ObservableList<T> items)`
  Creates a ComboBox cell factory for use in `TreeView` controls.
  `static <T> Callback<TreeView<T>,TreeCell<T>>`
  ComboBoxTreeCell.`forTreeView(StringConverter<T> converter, T... items)`
  Creates a ComboBox cell factory for use in `TreeView` controls.
  `static <T> Callback<TreeView<T>,TreeCell<T>>`
  ComboBoxTreeCell.`forTreeView(T... items)`
  Creates a ComboBox cell factory for use in `TreeView` controls.
  `static Callback<TreeView<String>,TreeCell<String>>`
  TextFieldTreeCell.`forTreeView()`
  Provides a `TextField` that allows editing of the cell content when the cell is double-clicked, or when `edit(javafx.scene.control.TreeItem)` is called.
  `static <T> Callback<TreeView<T>,TreeCell<T>>`
  TextFieldTreeCell.`forTreeView(StringConverter<T> converter)`
  Provides a `TextField` that allows editing of the cell content when the cell is double-clicked, or when `edit(javafx.scene.control.TreeItem)` is called.

- ## Uses of TreeView in javafx.scene.control.skin

  Constructors in javafx.scene.control.skin with parameters of type TreeView
  Modifier
  Constructor
  Description
  ``
  `TreeViewSkin(TreeView control)`
  Creates a new TreeViewSkin instance, installing the necessary child nodes into the Control `children` list, as well as the necessary input mappings for handling key, mouse, etc events.