Examples of ListChangeListener


Examples of javafx.collections.ListChangeListener

        if (rootNode == null) {
            logger.debug("Creating skin node");
            try {
                rootNode = createRootNode();
                addControllers(fxForm.getControllers());
                fxForm.getControllers().addListener(new ListChangeListener() {
                    public void onChanged(Change change) {
                        logger.debug("Updating controllers view");
                        while (change.next()) {
                            addControllers(change.getAddedSubList());
                            if (change.wasRemoved()) {
View Full Code Here

Examples of javafx.collections.ListChangeListener

    }

    protected DisposableNode createConstraintNode(final ElementController controller) {
        final VBox constraintsBox = new VBox();
        constraintsBox.setAlignment(Pos.CENTER_LEFT);
        controller.getConstraintViolations().addListener(new ListChangeListener() {
            public void onChanged(Change change) {
                constraintsBox.getChildren().clear();
                for (Object o : controller.getConstraintViolations()) {
                    ConstraintViolation constraintViolation = (ConstraintViolation) o;
                    Label errorLabel = new Label(constraintViolation.getMessage());
View Full Code Here

Examples of javafx.collections.ListChangeListener

                    }
                }
            }
        });
        filters.add(new NonVisualFilter());
        filters.addListener(new ListChangeListener() {
            public void onChanged(Change change) {
                dispose();
                try {
                    createControllers();
                } catch (FormException e) {
View Full Code Here

Examples of javafx.collections.ListChangeListener

                    }
                }
            }
        });
        filters.add(new NonVisualFilter());
        filters.addListener(new ListChangeListener() {
            public void onChanged(Change change) {
                dispose();
                try {
                    createControllers();
                } catch (FormException e) {
View Full Code Here

Examples of javafx.collections.ListChangeListener

                    }
                }
            }
        });
        filters.add(new NonVisualFilter());
        filters.addListener(new ListChangeListener() {
            public void onChanged(Change change) {
                dispose();
                try {
                    createControllers();
                } catch (FormException e) {
View Full Code Here

Examples of javafx.collections.ListChangeListener

                    }
                }
            }
        });
        filters.add(new NonVisualFilter());
        filters.addListener(new ListChangeListener() {
            public void onChanged(Change change) {
                dispose();
                try {
                    createControllers();
                } catch (FormException e) {
View Full Code Here

Examples of javafx.collections.ListChangeListener

                    createControllers();
                }
            }
        });
        filters.add(new NonVisualFilter());
        filters.addListener(new ListChangeListener() {
            public void onChanged(Change change) {
                dispose();
                createControllers();
            }
        });
View Full Code Here

Examples of javafx.collections.ListChangeListener

        if (rootNode == null) {
            logger.info("Creating skin node");
            try {
                rootNode = createRootNode();
                addControllers(fxForm.getControllers());
                fxForm.getControllers().addListener(new ListChangeListener() {
                    public void onChanged(Change change) {
                        logger.info("Updating controllers view");
                        while (change.next()) {
                            addControllers(change.getAddedSubList());
                            if (change.wasRemoved()) {
View Full Code Here

Examples of javafx.collections.ListChangeListener

    }

    protected Node createConstraintNode(final ElementController controller) {
        final VBox constraintsBox = new VBox();
        constraintsBox.setAlignment(Pos.CENTER_LEFT);
        controller.getConstraintViolations().addListener(new ListChangeListener() {
            public void onChanged(Change change) {
                constraintsBox.getChildren().clear();
                for (Object o : controller.getConstraintViolations()) {
                    ConstraintViolation constraintViolation = (ConstraintViolation) o;
                    Label errorLabel = new Label(constraintViolation.getMessage());
View Full Code Here

Examples of javafx.collections.ListChangeListener

        return rootNode;
    }

    public ListChangeListener getControllersListener() {
        if (controllersListener == null) {
            controllersListener = new ListChangeListener() {
                public void onChanged(Change change) {
                    logger.debug("Updating controllers view");
                    while (change.next()) {
                        addControllers(change.getAddedSubList());
                        if (change.wasRemoved()) {
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.