Package javafx.scene

Examples of javafx.scene.Parent.lookup()


        final Parent root = new CreateLeagueSceneBuilder().buildScene();
        Assert.assertNotNull(root);
        final ObservableList<Node> children = root.getChildrenUnmodifiable();
        // two VBoxes
        Assert.assertEquals(2, children.size());
        final Node tfMatchday = root.lookup("#idTfMatchday");
        Assert.assertNotNull(tfMatchday);
        final TextField matchday = (TextField) tfMatchday;
        final String date = "04.06.2012";
        matchday.setText(date);
        Assert.assertEquals(date, matchday.getText());
View Full Code Here


   
    for (Node node : root.lookupAll("Button")) {
      node.addEventHandler(ActionEvent.ACTION, this);
    }
    // the node holding the current value, using id lookup
    valueText = (TextInputControl) root.lookup("#valueTextNode");
   
    stage.setScene(new Scene(root));
    stage.show();
  }
View Full Code Here

                it.setText("Say hello");
                final Procedure1<ActionEvent> _function = new Procedure1<ActionEvent>() {
                    public void apply(final ActionEvent it) {
                      Scene _scene = primaryStage.getScene();
                      Parent _root = _scene.getRoot();
                      Node _lookup = _root.lookup("#helloField");
                      final TextField f = ((TextField) _lookup);
                      String _text = f.getText();
                      MyBuilderApplication.this.out.println(_text);
                    }
                  };
View Full Code Here

                it.setText("Say hello");
                final Procedure1<ActionEvent> _function = new Procedure1<ActionEvent>() {
                    public void apply(final ActionEvent it) {
                      Scene _scene = primaryStage.getScene();
                      Parent _root = _scene.getRoot();
                      Node _lookup = _root.lookup("#helloField");
                      final TextField f = ((TextField) _lookup);
                      String _text = f.getText();
                      MyStaticBuilderApplication.this.out.println(_text);
                    }
                  };
View Full Code Here

                it.setText("Say hello");
                final Procedure1<ActionEvent> _function = new Procedure1<ActionEvent>() {
                    public void apply(final ActionEvent it) {
                      Scene _scene = primaryStage.getScene();
                      Parent _root = _scene.getRoot();
                      Node _lookup = _root.lookup("#helloField");
                      final TextField f = ((TextField) _lookup);
                      String _text = f.getText();
                      MyWithApplication.this.out.println(_text);
                    }
                  };
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.