Package javafx.scene

Examples of javafx.scene.Parent


        initScene();

        // Uso Injector per caricare le gui preimpostate. Vi e' anche la
        // possibilita' di caricare gui specifiche passando il percorso del
        // file .fxml.
        Parent root_login = MakiDI.get().loadLogin();
        root_login.setId("root_login");
        main_pane.setCenterNode(root_login);

        // Imposto il primo scene, la GUI NON E' RIDIMENSIONABILE
        stage.setScene(scene);
        stage.setResizable(false);
View Full Code Here


        scene.setFill(null);

        // Uso Injector per caricare le gui preimpostate. Vi e' anche la
        // possibilita' di caricare gui specifiche passando il percorso del
        // file .fxml.
        Parent root_login = MakiDI.get().loadLogin();
        root_login.setId("root_login");
        main_pane.setCenterNode(root_login);

        // Imposto il primo scene, la GUI NON E' RIDIMENSIONABILE
        stage.setScene(scene);
        stage.setResizable(false);
View Full Code Here

    public void run() {
        try {
            if (!isValidMakiDirectory()) {
                __main_pane = new BorderPane();
                __main_pane.setId("disclaimer_pane_container");
                Parent disclaimer = MakiDI.get().loadDisclaimer();
                disclaimer.setId("root_login");
                __main_pane.setCenter(disclaimer);

                Scene scene = new Scene(__main_pane);
                stage.getIcons().add(UtilityFX.getImage(Constants.ICN_OFFICIAL32));
                scene.getStylesheets().add(Disclaimer.class.getResource("/resources/css/main.css").toExternalForm());
View Full Code Here

        initButtons();
        list_fxml = Collections.synchronizedList(Arrays.asList(fxml));
        list_parent = Collections.synchronizedList(new ArrayList<>());
        list_fxml.stream().forEach((value) -> {
            try {
                Parent p = MakiDI.get().loadJFXUI(value);
                list_parent.add(p);
            } catch (IOException | BaseApplicationException ex) {
                Logger.getLogger(SidePane.class.getName()).log(Level.SEVERE, null, ex);
            }
        });
View Full Code Here

        arrowIndicationError(node, Arrow.LEFT);
    }

    public static void arrowIndicationError(final @Nonnull Node node, @Nonnull Arrow pos) {

        Parent parent = node.getParent();
        if (parent == null || !(parent instanceof Pane)) {
            return;
        }

        ImageView imm = new ImageView(getImage("arrow_right_24.png"));
View Full Code Here

    public static void arrowIndication(@Nonnull Node node) {

        Arrow pos = Arrow.LEFT;

        Parent parent = node.getParent();
        if (parent == null || !(parent instanceof Pane)) {
            return;
        }

        ImageView imm = new ImageView(getImage("arrow_right_24.png"));
View Full Code Here

        String fxml = ip.fxml();
        String id = ip.id();

        if (fxml != null) {
            Parent parent = loadJFXUI(fxml, ap);
            parent.setId(id);
            if (parent != null) {
                f.setAccessible(true);
                f.set(ap, parent);
            }
        }
View Full Code Here

   @Override
      public void start(Stage primaryStage) {
          try {
          ApplicationConfiguration appConfiguration = new DefaultApplicationConfiguration();
          Fxml layout = appConfiguration.getLayout();
          Parent rootPane = (Parent) FXMLLoader.load(layout.getFxmlUrl());
          AnchorPane anchor;
          TitledPane title = null;
          if (rootPane instanceof AnchorPane){
            anchor = (AnchorPane) rootPane;
          } else if (rootPane instanceof TitledPane){
            title = (TitledPane) rootPane;
            anchor = (AnchorPane) title.getContent();
          } else {
            throw new IllegalStateException("could not handle " + rootPane.getClass().getName());
          }
           //TitledPane
              // This line to resolve keys against Bundle.properties
              //ResourceBundle i18nBundle = ResourceBundle.getBundle("helloi18n.Bundle", new Locale("en", "US"));
              // This line to resolve keys against Bundle_fr_FR.properties
View Full Code Here

        initButtons();
        list_fxml = Collections.synchronizedList(Arrays.asList(fxml));
        list_parent = Collections.synchronizedList(new ArrayList<>());
        list_fxml.stream().forEach((value) -> {
            try {
                Parent p = LooB.get().loadJFXUI(value);
                list_parent.add(p);
            } catch (IOException | BaseApplicationException ex) {
                Logger.getLogger(SidePane.class.getName()).log(Level.SEVERE, null, ex);
            }
        });
View Full Code Here

        arrowIndicationError(node, Arrow.LEFT);
    }

    public static void arrowIndicationError(final @Nonnull Node node, @Nonnull Arrow pos) {

        Parent parent = node.getParent();
        if (parent == null || !(parent instanceof Pane)) {
            return;
        }

        ImageView imm = new ImageView(getImage("arrow_right_24.png"));
View Full Code Here

TOP

Related Classes of javafx.scene.Parent

Copyright © 2018 www.massapicom. 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.