## Uses of Class
javafx.scene.control.TreeCell

- Packages that use TreeCell
  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`.

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

    Methods in javafx.scene.control that return types with arguments of type TreeCell
    Modifier and Type | Method and Description
    --- | ---
    `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.
    `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.

    Method parameters in javafx.scene.control with type arguments of type TreeCell
    Modifier and Type | Method and Description
    --- | ---
    `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.

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

    Subclasses of TreeCell in javafx.scene.control.cell
    Modifier and Type | Class and Description
    --- | ---
    `class` | `CheckBoxTreeCell<T>` A class containing a `TreeCell` implementation that draws a `CheckBox` node inside the cell, along with support for common interactions (discussed in more depth shortly).
    `class` | `ChoiceBoxTreeCell<T>` A class containing a `ListCell` implementation that draws a `ChoiceBox` node inside the cell.
    `class` | `ComboBoxTreeCell<T>` A class containing a `TreeCell` implementation that draws a `ComboBox` node inside the cell.
    `class` | `TextFieldTreeCell<T>` A class containing a `TreeCell` implementation that draws a `TextField` node inside the cell.

    Methods in javafx.scene.control.cell that return types with arguments of type TreeCell
    Modifier and Type | Method and Description
    --- | ---
    `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 `TreeView.edit(javafx.scene.control.TreeItem)` is called.
    `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>>` | ComboBoxTreeCell.`forTreeView(ObservableList<T> items)` Creates a ComboBox cell factory for use in `TreeView` controls.
    `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 `TreeView.edit(javafx.scene.control.TreeItem)` is called.
    `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>>` | 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>>` | ChoiceBoxTreeCell.`forTreeView(StringConverter<T> converter, T... items)` Creates a ChoiceBox 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>>` | ChoiceBoxTreeCell.`forTreeView(T... items)` Creates a ChoiceBox 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.

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, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.