functional/ControlsTests/src/javafx/scene/control/test/accordion/NewAccordionApp.java

Print this page

        

*** 76,93 **** prepareScene(); } private void prepareScene() { pane = new Pane(); ! testedAccordion = AccordionBuilder.create().id(TESTED_ACCORDION_ID).build(); PropertiesTable tb = new PropertiesTable(testedAccordion); PropertyTablesFactory.explorePropertiesList(testedAccordion, tb); final TabPaneWithControl tabPane = new TabPaneWithControl("Accordion", tb); ! final TextField tf = TextFieldBuilder.create().id(ACCORDION_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) { --- 76,96 ---- prepareScene(); } private void prepareScene() { pane = new Pane(); ! testedAccordion = new Accordion(); ! testedAccordion.setId(TESTED_ACCORDION_ID); PropertiesTable tb = new PropertiesTable(testedAccordion); PropertyTablesFactory.explorePropertiesList(testedAccordion, tb); final TabPaneWithControl tabPane = new TabPaneWithControl("Accordion", tb); ! final TextField tf = new TextField("0"); ! tf.setId(ACCORDION_ADD_INDEX_TEXT_FIELD_ID); ! tf.setPrefWidth(40); HBox nodeshb = new NodesChoserFactory("Add!", new NodesChoserFactory.NodeAction<Node>() { @Override public void execute(Node node) {
*** 108,118 **** 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(); --- 111,122 ---- 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();