use of com.kyj.fx.voeditor.visual.component.FxControlTreeView 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();
}
use of com.kyj.fx.voeditor.visual.component.FxControlTreeView in project Gargoyle by callakrsos.
the class ComponentClassifier method start.
@Override
public void start(Stage primaryStage) throws Exception {
FXMLLoader loader = new FXMLLoader();
loader.setLocation(SystemLayoutViewController.class.getResource("VoEditorView.fxml"));
try {
Node node = loader.load();
// {
//
// ObservableList<Node> recursive = recursive(node);
// print(recursive);
//
// }
// {
// Group group = new Group();
//
// // Text는 Shape클래스의 하위클래스
// group.getChildren().add(new Text());
// group.getChildren().add(new Button());
// group.getChildren().add(new Button());
// group.getChildren().add(new Label());
// ObservableList<Node> recursive = recursive(group);
// print(recursive);
//
// }
// {
// ScrollPane scrollPane = new ScrollPane();
// ScrollPane scrollPane2 = new ScrollPane();
// scrollPane2.setContent(new TextArea());
// scrollPane.setContent(new BorderPane(scrollPane2));
// ObservableList<Node> recursive = recursive(scrollPane);
// print(recursive);
// }
{
BorderPane borderPane = new BorderPane();
ScrollPane scrollPane2 = new ScrollPane();
scrollPane2.setContent(new TextArea());
borderPane.setTop(new HBox(new Button(), new Button(), new HTMLEditor()));
borderPane.setCenter(new BorderPane(scrollPane2));
FxControlTreeView tv = new FxControlTreeView(borderPane);
tv.setOnMouseClicked(event -> {
System.out.println(tv.getSelectionModel().getSelectedItem());
});
Scene scene = new Scene(tv);
primaryStage.setScene(scene);
primaryStage.show();
// List<Node> recursive = recursive(borderPane);
// print(recursive);
}
//
// Scene scene = new Scene((Parent) node);
// primaryStage.setScene(scene);
// primaryStage.show();
} catch (IOException e) {
e.printStackTrace();
}
}
Aggregations