Package com.vaadin.data.Container

Examples of com.vaadin.data.Container.PropertySetChangeNotifier


                isn.addListener(dataSourceListener);
            }
            if (dataSource instanceof PropertySetChangeNotifier) {
                getLogger()
                        .finest("Attaching PropertySetChangeListener to graph datasource");
                PropertySetChangeNotifier pscn = (PropertySetChangeNotifier) dataSource;

                // Ensure we not already are listening to the events
                pscn.removeListener(dataSourceListener);

                // Add listener
                pscn.addListener(dataSourceListener);
            }
            if (dataSource instanceof ValueChangeNotifier) {
                getLogger().finest(
                        "Attaching ValueChangeListener to graph datasource");
                ValueChangeNotifier vcn = (ValueChangeNotifier) dataSource;

                // Ensure we not already are listening to the events
                vcn.removeListener(dataSourceListener);

                // Add listener
                vcn.addListener(dataSourceListener);
            }
        }

        if (markers instanceof ItemSetChangeNotifier) {
            getLogger().finest(
                    "Attaching ItemSetChangeListener to marker datasource");
            ItemSetChangeNotifier isn = (ItemSetChangeNotifier) markers;

            // Ensure we not already are listening to the events
            isn.removeListener(markerEventListener);

            // Add listener
            isn.addListener(markerEventListener);
        }
        if (markers instanceof PropertySetChangeNotifier) {
            getLogger().finest(
                    "Attaching PropertySetChangeListener to marker datasource");
            PropertySetChangeNotifier pscn = (PropertySetChangeNotifier) markers;

            // Ensure we not already are listening to the events
            pscn.removeListener(markerEventListener);

            // Add listener
            pscn.addListener(markerEventListener);
        }
        if (markers instanceof ValueChangeNotifier) {
            getLogger().finest(
                    "Attaching ValueChangeListener to marker datasource");
            ValueChangeNotifier vcn = (ValueChangeNotifier) markers;

            // Ensure we not already are listening to the events
            vcn.removeListener(markerEventListener);

            // Add listener
            vcn.addListener(markerEventListener);
        }

        if (events instanceof ItemSetChangeNotifier) {
            getLogger().finest(
                    "Attaching ValueChangeListener to marker datasource");
            ItemSetChangeNotifier isn = (ItemSetChangeNotifier) events;

            // Ensure we not already are listening to the events
            isn.removeListener(markerEventListener);

            // Add listener
            isn.addListener(markerEventListener);
        }
        if (events instanceof PropertySetChangeNotifier) {
            getLogger().finest(
                    "Attaching ValueChangeListener to marker datasource");
            PropertySetChangeNotifier pscn = (PropertySetChangeNotifier) events;

            // Ensure we not already are listening to the events
            pscn.removeListener(markerEventListener);

            // Add listener
            pscn.addListener(markerEventListener);
        }
        if (events instanceof ValueChangeNotifier) {
            getLogger().finest(
                    "Attaching ValueChangeListener to marker datasource");
            ValueChangeNotifier vcn = (ValueChangeNotifier) events;
View Full Code Here

TOP

Related Classes of com.vaadin.data.Container.PropertySetChangeNotifier

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.