functional/ControlsTests/src/javafx/scene/control/test/toolbar/NewToolbarApp.java

Print this page

        

*** 77,94 **** prepareScene(); } private void prepareScene() { pane = new Pane(); ! testedToolbar = ToolBarBuilder.create().id(TESTED_TOOLBAR_ID).build(); PropertiesTable tb = new PropertiesTable(testedToolbar); PropertyTablesFactory.explorePropertiesList(testedToolbar, tb); final TabPaneWithControl tabPane = new TabPaneWithControl("ToolBar", tb); ! final TextField tf = TextFieldBuilder.create().id(TOOLBAR_ADD_INDEX_TEXT_FIELD_ID).text("0").prefWidth(40).build(); HBox nodeshb = new NodesChoserFactory("Add!", new NodesChoserFactory.NodeAction<Node>() { @Override public void execute(Node node) { --- 77,97 ---- prepareScene(); } private void prepareScene() { pane = new Pane(); ! testedToolbar = new ToolBar(); ! testedToolbar.setId(TESTED_TOOLBAR_ID); PropertiesTable tb = new PropertiesTable(testedToolbar); PropertyTablesFactory.explorePropertiesList(testedToolbar, tb); final TabPaneWithControl tabPane = new TabPaneWithControl("ToolBar", tb); ! final TextField tf = new TextField("0"); ! tf.setId(TOOLBAR_ADD_INDEX_TEXT_FIELD_ID); ! tf.setPrefWidth(40); HBox nodeshb = new NodesChoserFactory("Add!", new NodesChoserFactory.NodeAction<Node>() { @Override public void execute(Node node) {
*** 107,117 **** HBox hb = (HBox) getRoot(); hb.setPadding(new Insets(5, 5, 5, 5)); hb.setStyle("-fx-border-color : green;"); ! Button resetButton = ButtonBuilder.create().id(RESET_BUTTON_ID).text("Reset").build(); resetButton.setOnAction(new EventHandler<ActionEvent>() { public void handle(ActionEvent t) { HBox hb = (HBox) getRoot(); hb.getChildren().clear(); --- 110,121 ---- HBox hb = (HBox) getRoot(); hb.setPadding(new Insets(5, 5, 5, 5)); hb.setStyle("-fx-border-color : green;"); ! Button resetButton = new Button("Reset"); ! resetButton.setId(RESET_BUTTON_ID); resetButton.setOnAction(new EventHandler<ActionEvent>() { public void handle(ActionEvent t) { HBox hb = (HBox) getRoot(); hb.getChildren().clear();