Package javafx.collections

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


    }

    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

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

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

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

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

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

        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

    }

    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

        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

Related Classes of javafx.collections.ListChangeListener

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.