Package fr.soleil.salsa.configuration.listener

Examples of fr.soleil.salsa.configuration.listener.IConfigSelectionListener


        if (listeners != null) {
            (new Thread() {
                public void run() {
                    try {
                        for (WeakReference<IConfigSelectionListener> ref : listeners) {
                            IConfigSelectionListener listener = ref.get();
                            if (listener != null) {
                                listener.configSelectionChanged(currentConfig);
                            }
                        }
                    }
                    // Concurrent modification
                    catch (Exception e) {
View Full Code Here


        if (listeners != null) {
            synchronized (listeners) {
                boolean canAdd = true;
                List<WeakReference<IConfigSelectionListener>> toRemove = new ArrayList<WeakReference<IConfigSelectionListener>>();
                for (WeakReference<IConfigSelectionListener> ref : listeners) {
                    IConfigSelectionListener temp = ref.get();
                    if (temp == null) {
                        toRemove.add(ref);
                    } else if (temp.equals(listener)) {
                        canAdd = false;
                    }
                }
                listeners.removeAll(toRemove);
                toRemove.clear();
View Full Code Here

    public void removeConfigSelectionListener(IConfigSelectionListener listener) {
        if (listeners != null) {
            synchronized (listeners) {
                List<WeakReference<IConfigSelectionListener>> toRemove = new ArrayList<WeakReference<IConfigSelectionListener>>();
                for (WeakReference<IConfigSelectionListener> ref : listeners) {
                    IConfigSelectionListener temp = ref.get();
                    if ((temp == null) || temp.equals(listener)) {
                        toRemove.add(ref);
                    }
                }
                listeners.removeAll(toRemove);
                toRemove.clear();
View Full Code Here

        if (listeners != null) {
            (new Thread() {
                public void run() {
                    try {
                        for (WeakReference<IConfigSelectionListener> ref : listeners) {
                            IConfigSelectionListener listener = ref.get();
                            if (listener != null) {
                                listener.configSelectionChanged(currentConfig);
                            }
                        }
                    }
                    // Concurrent modification
                    catch (Exception e) {
View Full Code Here

        if (listeners != null) {
            synchronized (listeners) {
                boolean canAdd = true;
                List<WeakReference<IConfigSelectionListener>> toRemove = new ArrayList<WeakReference<IConfigSelectionListener>>();
                for (WeakReference<IConfigSelectionListener> ref : listeners) {
                    IConfigSelectionListener temp = ref.get();
                    if (temp == null) {
                        toRemove.add(ref);
                    }
                    else if (temp.equals(listener)) {
                        canAdd = false;
                    }
                }
                listeners.removeAll(toRemove);
                toRemove.clear();
View Full Code Here

    public void removeConfigSelectionListener(IConfigSelectionListener listener) {
        if (listeners != null) {
            synchronized (listeners) {
                List<WeakReference<IConfigSelectionListener>> toRemove = new ArrayList<WeakReference<IConfigSelectionListener>>();
                for (WeakReference<IConfigSelectionListener> ref : listeners) {
                    IConfigSelectionListener temp = ref.get();
                    if ((temp == null) || temp.equals(listener)) {
                        toRemove.add(ref);
                    }
                }
                listeners.removeAll(toRemove);
                toRemove.clear();
View Full Code Here

        if (listeners != null) {
            (new Thread() {
                public void run() {
                    try {
                        for (WeakReference<IConfigSelectionListener> ref : listeners) {
                            IConfigSelectionListener listener = ref.get();
                            if (listener != null) {
                                listener.configSelectionChanged(currentConfig);
                            }
                        }
                    }
                    // Concurrent modification
                    catch (Exception e) {
View Full Code Here

        if (listeners != null) {
            synchronized (listeners) {
                boolean canAdd = true;
                List<WeakReference<IConfigSelectionListener>> toRemove = new ArrayList<WeakReference<IConfigSelectionListener>>();
                for (WeakReference<IConfigSelectionListener> ref : listeners) {
                    IConfigSelectionListener temp = ref.get();
                    if (temp == null) {
                        toRemove.add(ref);
                    } else if (temp.equals(listener)) {
                        canAdd = false;
                    }
                }
                listeners.removeAll(toRemove);
                toRemove.clear();
View Full Code Here

    public void removeConfigSelectionListener(IConfigSelectionListener listener) {
        if (listeners != null) {
            synchronized (listeners) {
                List<WeakReference<IConfigSelectionListener>> toRemove = new ArrayList<WeakReference<IConfigSelectionListener>>();
                for (WeakReference<IConfigSelectionListener> ref : listeners) {
                    IConfigSelectionListener temp = ref.get();
                    if ((temp == null) || temp.equals(listener)) {
                        toRemove.add(ref);
                    }
                }
                listeners.removeAll(toRemove);
                toRemove.clear();
View Full Code Here

            (new Thread() {
                @Override
                public void run() {
                    try {
                        for (WeakReference<IConfigSelectionListener> ref : listeners) {
                            IConfigSelectionListener listener = ref.get();
                            if (listener != null) {
                                listener.configSelectionChanged(currentConfig);
                            }
                        }
                    }
                    // Concurrent modification
                    catch (Exception e) {
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.configuration.listener.IConfigSelectionListener

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.