Search in sources :

Example 1 with CheckBoxFxControlTreeView

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();
}
Also used : CheckBoxFxControlTreeView(com.kyj.fx.voeditor.visual.component.CheckBoxFxControlTreeView) FxControlTreeView(com.kyj.fx.voeditor.visual.component.FxControlTreeView) SplitPane(javafx.scene.control.SplitPane) CheckBoxFxControlTreeView(com.kyj.fx.voeditor.visual.component.CheckBoxFxControlTreeView) Scene(javafx.scene.Scene)

Aggregations

CheckBoxFxControlTreeView (com.kyj.fx.voeditor.visual.component.CheckBoxFxControlTreeView)1 FxControlTreeView (com.kyj.fx.voeditor.visual.component.FxControlTreeView)1 Scene (javafx.scene.Scene)1 SplitPane (javafx.scene.control.SplitPane)1