use of com.kyj.fx.voeditor.visual.component.CheckBoxFxControlTreeView in project Gargoyle by callakrsos.
the class FxControlsTreeViewExam method start.
@Override
public void start(Stage primaryStage) throws Exception {
CheckBoxFxControlTreeView checkedNodeTreeView = new CheckBoxFxControlTreeView(getTestNod());
checkedNodeTreeView.setOnMouseClicked(event -> {
System.out.println(checkedNodeTreeView.getCheckModel().getCheckedItems());
});
FxControlTreeView simpleNodeTreeView = new FxControlTreeView(getTestNod());
simpleNodeTreeView.setOnMouseClicked(event -> {
System.out.println(simpleNodeTreeView.getSelectionModel().getSelectedItems());
});
Scene scene = new Scene(new SplitPane(simpleNodeTreeView, checkedNodeTreeView));
primaryStage.setScene(scene);
primaryStage.show();
}
Aggregations