-
Enhancement
-
Resolution: Not an Issue
-
P4
-
None
-
8
-
Java8 u20
On the following code, I would like to show a CheckBox only on the leaf node.
But actually, the root node (TreeItem) has a ChockBox too.
TreeItem rootItem = new TreeItem<>("root");
CheckBoxTreeItem leafItem = new CheckBoxTreeItem<>("leaf");
rootItem.getChildren().addAll(leafItem);
TreeView treeView = new TreeView(rootItem);
treeView.setCellFactory(CheckBoxTreeCell.forTreeView());
But actually, the root node (TreeItem) has a ChockBox too.
TreeItem rootItem = new TreeItem<>("root");
CheckBoxTreeItem leafItem = new CheckBoxTreeItem<>("leaf");
rootItem.getChildren().addAll(leafItem);
TreeView treeView = new TreeView(rootItem);
treeView.setCellFactory(CheckBoxTreeCell.forTreeView());