functional/ControlsTests/src/javafx/scene/control/test/splitpane/SplitPaneApp.java
Print this page
*** 74,91 ****
prepareScene();
}
private void prepareScene() {
pane = new Pane();
! testedSplitPane = SplitPaneBuilder.create().id(TESTED_SPLIPANE_ID).build();
PropertiesTable tb = new PropertiesTable(testedSplitPane);
PropertyTablesFactory.explorePropertiesList(testedSplitPane, tb);
final TabPaneWithControl tabPane = new TabPaneWithControl("Accordion", tb);
! final TextField tf = TextFieldBuilder.create().id(SPLITPANE_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) {
--- 74,94 ----
prepareScene();
}
private void prepareScene() {
pane = new Pane();
! testedSplitPane = new SplitPane();
! testedSplitPane.setId(TESTED_SPLIPANE_ID);
PropertiesTable tb = new PropertiesTable(testedSplitPane);
PropertyTablesFactory.explorePropertiesList(testedSplitPane, tb);
final TabPaneWithControl tabPane = new TabPaneWithControl("Accordion", tb);
! final TextField tf = new TextField("0");
! tf.setId(SPLITPANE_ADD_INDEX_TEXT_FIELD_ID);
! tf.setPrefWidth(40);
HBox nodeshb = new NodesChoserFactory("Add!", new NodesChoserFactory.NodeAction<Node>() {
@Override
public void execute(Node node) {
*** 104,114 ****
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();
--- 107,118 ----
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();