Package javafx.scene

Examples of javafx.scene.Node


                Tab tab = new Tab(RBLoader.ll(title));
                tab.setId(plugin.getId());
                tab.setClosable(false);

                Node node = plugin.getGuiEditor();

                // Se ha una grafica allora inserisco il tab.
                if (node != null) {
                    tab.setContent(node);
                    __tabbed.getTabs().add(tab);
View Full Code Here


            if (field != null) {
                if (field.isAnnotationPresent(javafx.fxml.FXML.class)) {
                    field.setAccessible(true);
                    Object value = field.get(controller);
                    if (value != null && value instanceof Node) {
                        Node node = (Node) value;
                        putInCacheNode(node.getId(), node);
                    }
                }
            }
        }
    }
View Full Code Here

                Tab tab = new Tab(RBLoader.ll(title));
                tab.setId(plugin.getId());
                tab.setClosable(false);

                Node node = plugin.getGuiEditor();

                // Se ha una grafica allora inserisco il tab.
                if (node != null) {
                    tab.setContent(node);
                    __tabbed.getTabs().add(tab);
View Full Code Here

         * componenti grafici nella classe passatagli che deve utilizzare le
         * annotazioni di InjectNode se desiderato.
         */
        UtilityFX.log("INJECTOR load - resource: " + resource + " - toInject: " + toInject);

        Node node = null;
        T t = loadJFXUI(resource);

        /**
         * Recupero tutte le variabili.
         */
        Field[] fields = toInject.getClass().getDeclaredFields();
        if (fields != null) {
            for (Field f : fields) {
                try {

                    String __field_val_name = f.getName();

                    // Se l'annotazione e' presente allora faccio un lookup
                    // (ricerco il componente) e lo inietto nella classe
                    // passata come parametro.
                    if (f.isAnnotationPresent(InjectNode.class) && null != __field_val_name) {
                        if (node == null && t instanceof Node) {
                            node = (Node) t;
                        }

                        f.setAccessible(true);

                        // Ricerco il componente.
                        @SuppressWarnings("null")
                        Node n = node.lookup("#" + __field_val_name);

                        if (n != null) {
                            f.set(toInject, n);
                        } else {
View Full Code Here

            if (field != null) {
                if (field.isAnnotationPresent(javafx.fxml.FXML.class)) {
                    field.setAccessible(true);
                    Object value = field.get(controller);
                    if (value != null && value instanceof Node) {
                        Node node = (Node) value;
                        putInCacheNode(node.getId(), node);
                    }
                }
            }
        }
    }
View Full Code Here

            double top = getInsets().getTop();
            double right = getInsets().getRight();
            double left = getInsets().getLeft();
            double bottom = getInsets().getBottom();
            for (int i = 0; i < managed.size(); i++) {
                Node child = managed.get(i);
                layoutInArea(child, left, top,
                               width - left - right, height - top - bottom,
                               0, Insets.EMPTY, true, true, HPos.CENTER, VPos.CENTER);
            }
        }
View Full Code Here

            }
        });
    }

    protected boolean isReallyVisible(Node node) {
        Node parent = node;
        while (parent != null) {
            if (parent.isVisible() == false) {
                return false;
            }
            parent = parent.getParent();
        }
        return true;
    }
View Full Code Here

            if (field != null) {
                if (field.isAnnotationPresent(javafx.fxml.FXML.class)) {
                    field.setAccessible(true);
                    Object value = field.get(controller);
                    if (value != null && value instanceof Node) {
                        Node node = (Node) value;
                        putInCacheNode(node.getId(), node);
                    }
                }
            }
        }
    }
View Full Code Here

    protected void deleteElementNodes(ElementNodes elementNodes) {
    }


    private FXFormNode lookupNode(Element element, String suffix) {
        Node node = getNode().lookup("#" + element.getName() + suffix);
        if (node != null) {
            Property property = fxForm.getPropertyProvider().getProperty(node);
            if (property != null) {
            return new FXFormNodeWrapper(node, property);
            } else {
View Full Code Here

   
    JuFxUtils.calculatePrefSize(this.txaDetailMessage);
  }
 
  public void close(ActionEvent ev) {
    Node node = JuObjectUtils.as(ev.getSource(), Node.class);
    JuFxUtils.closeWindow(node);
  }
View Full Code Here

TOP

Related Classes of javafx.scene.Node

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.