Package javafx.collections

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


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

    public ObservableList<Configurer<T>> getConfigurers() {
        return configurers;
    }

    public ConfigurationStore() {
        store.addListener(new ListChangeListener() {

            public void onChanged(Change change) {
                while (change.next()) {
                    configure(change.getAddedSubList());
                    unconfigure(change.getRemoved());
                }
            }
        });
        configurers.addListener(new ListChangeListener() {

            public void onChanged(Change change) {
                while (change.next()) {
                    configurerAdded(change.getAddedSubList());
                    configurerRemoved(change.getRemoved());
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

                    createControllers();
                }
            }
        });
        filters.add(new NonVisualFilter());
        filters.addListener(new ListChangeListener() {
            public void onChanged(Change change) {
                createControllers();
            }
        });
        this.setSkin(new DefaultSkin(this));
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

    public ObservableList<Configurer<T>> getConfigurers() {
        return configurers;
    }

    public ConfigurationStore() {
        store.addListener(new ListChangeListener() {

            public void onChanged(Change change) {
                while (change.next()) {
                    configure(change.getAddedSubList());
                    unconfigure(change.getRemoved());
                }
            }
        });
        configurers.addListener(new ListChangeListener() {

            public void onChanged(Change change) {
                while (change.next()) {
                    configurerAdded(change.getAddedSubList());
                    configurerRemoved(change.getRemoved());
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

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.