Package javafx.scene

Examples of javafx.scene.Node


    @Override
    public boolean matchesSafely(Object target) {
        if (target instanceof String) {
            try {
                Node node = find((String) target);
                return node.isVisible();
            }
            catch (NoNodesFoundException e) {
                return false;
            }
        }
View Full Code Here


    @Override
    public boolean matchesSafely(Object target) {
        if (target instanceof String) {
            try {
                Node node = find((String) target);
                return node.isDisabled() == shouldBeDisabled;
            }
            catch (NoNodesFoundException e) {
                return false;
            }
        }
View Full Code Here

        target(window);
        return pointLocator.pointFor(window).atPosition(pointPosition);
    }

    public PointQuery pointFor(String query) {
        Node node = nodeFinder.node(query);
        return pointFor(node).atPosition(pointPosition);
    }
View Full Code Here

        Node node = nodeFinder.node(query);
        return pointFor(node).atPosition(pointPosition);
    }

    public PointQuery pointFor(Matcher<Object> matcher) {
        Node node = nodeFinder.node(matcher);
        return pointFor(node).atPosition(pointPosition);
    }
View Full Code Here

        return pointFor(node).atPosition(pointPosition);
    }

    @SuppressWarnings("unchecked")
    public <T extends Node> PointQuery pointFor(Predicate<T> predicate) {
        Node node = nodeFinder.node((Predicate<Node>) predicate);
        return pointFor(node).atPosition(pointPosition);
    }
View Full Code Here

    public static Controller load(String url) {
        try (InputStream fxmlStream = SpringFXMLLoader.class.getResourceAsStream(url)) {
            FXMLLoader loader = new FXMLLoader();
            loader.setControllerFactory(aClass -> APPLICATION_CONTEXT.getBean(aClass));

            Node view = loader.load(fxmlStream);
            Controller controller = loader.getController();
            controller.setView(view);

            return controller;
        } catch (IOException e) {
View Full Code Here

    }

    @Override
    protected void addCategory(String category) {
        if (categoryMap.keySet().size() > 1) {
            Node node = createCategoryNode(category);
            categoryNode.put(category, node);
            GridPane.setColumnSpan(node, 2);
            gridPane.add(node, 0, row++);
            row++;
        }
View Full Code Here

    @Override
    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

    private boolean controlsBoxOnScreen = true;

    /** Swap the download/disconnect buttons for a progress bar + cancel button */
    public void animateSwap() {
        Node n1 = controlsBoxOnScreen ? controlsBox : syncBox;
        Node n2 = controlsBoxOnScreen ? syncBox : controlsBox;
        TranslateTransition leave = new TranslateTransition(Duration.millis(600), n1);
        leave.setByY(80.0);
        TranslateTransition arrive = new TranslateTransition(Duration.millis(600), n2);
        arrive.setToY(0.0);
        SequentialTransition both = new SequentialTransition(leave, arrive);
View Full Code Here

    }

    private void flipContent() {
        // StackPane only displays the head of its children list
        ObservableList<Node> children = content.getChildren();
        Node previouslyVisible = children.remove(0);
        children.add(previouslyVisible);
    }
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.