Class ChoiceBoxTreeCell<T>

java.lang.Object
Type Parameters:
T - The type of the TreeItems contained within the TreeView.
All Implemented Interfaces:
Styleable, EventTarget, Skinnable

public class ChoiceBoxTreeCell<T> extends TreeCell<T>
A class containing a ListCell implementation that draws a ChoiceBox node inside the cell.

By default, the ChoiceBoxTreeCell is rendered as a Label when not being edited, and as a ChoiceBox when in editing mode. The ChoiceBox will, by default, stretch to fill the entire tree cell.

To create a ChoiceBoxTreeCell, it is necessary to provide zero or more items that will be shown to the user when the ChoiceBox menu is showing. These items must be of the same type as the TreeView TreeItems, such that upon selection, they replace the existing value in the TreeItem.valueProperty().

Since:
JavaFX 2.2