Examples of addListener()


Examples of fr.soleil.salsa.client.entity.event.DimensionEnergyModel.addListener()

                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).addListener(listenerSensor);
                    }
                    DimensionEnergyModel dimensionEnergyModel = (DimensionEnergyModel) configEnergyModel
                            .getDimensionX();
                    dimensionEnergyModel.addListener(listenerDimensionEnergy);
                    for (IActuator actuator : dimensionEnergyModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).addListener(listenerActuator);
                    }
                    for (IRangeEnergy rangeEnergy : dimensionEnergyModel.getRangesEnergyList()) {
                        ((RangeEnergyModel) rangeEnergy).addListener(listenerRangeEnergy);
View Full Code Here

Examples of fr.soleil.salsa.client.entity.event.DimensionHCSModel.addListener()

                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).addListener(listenerSensor);
                    }
                    DimensionHCSModel dimensionHCSModel = (DimensionHCSModel) configHCSModel
                            .getDimensionX();
                    dimensionHCSModel.addListener(listenerDimensionHCS);
                    for (IActuator actuator : dimensionHCSModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).addListener(listenerActuator);
                    }
                    for (IRangeHCS rangeHCS : dimensionHCSModel.getRangesXList()) {
                        ((RangeHCSModel) rangeHCS).addListener(listenerRangeHCS);
View Full Code Here

Examples of fr.soleil.salsa.client.entity.event.DimensionKModel.addListener()

                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).addListener(listenerSensor);
                    }
                    DimensionKModel dimensionKModel = (DimensionKModel) configKModel
                            .getDimensionX();
                    dimensionKModel.addListener(listenerDimensionK);
                    for (IActuator actuator : dimensionKModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).addListener(listenerActuator);
                    }
                    IRangeK rangeK = dimensionKModel.getRangeX();
                    ((RangeKModel) rangeK).addListener(listenerRangeK);
View Full Code Here

Examples of fr.soleil.salsa.client.entity.event.DisplayModel.addListener()

        if (display == null) {
            return;
        }
        DisplayModel displayModel = (DisplayModel) display;
        if (listen) {
            displayModel.addListener(displayListener);
        }
        else {
            displayModel.removeListener(displayListener);
        }
    }
View Full Code Here

Examples of fr.soleil.salsa.client.entity.event.ErrorStrategyItemModel.addListener()

            return;
        }

        ErrorStrategyItemModel esim = (ErrorStrategyItemModel) ies;
        if (listen) {
            esim.addListener(listenerErrorStrategyItem);
        }
        else {
            esim.removeListener(listenerErrorStrategyItem);
        }
    }
View Full Code Here

Examples of fr.soleil.salsa.client.entity.event.ErrorStrategyModel.addListener()

            return;
        }

        ErrorStrategyModel esm = (ErrorStrategyModel) ies;
        if (listen) {
            esm.addListener(listenerErrorStrategy);
        }
        else {
            esm.removeListener(listenerErrorStrategy);
        }
        enableListening(esm.getActuatorsErrorStrategy(), listen);
View Full Code Here

Examples of fr.soleil.salsa.client.entity.event.HookCommandModel.addListener()

        if (ihc == null) {
            return;
        }
        HookCommandModel hcm = (HookCommandModel) ihc;
        if (listen) {
            hcm.addListener(listenerHookCommand);
        }
        else {
            hcm.removeListener(listenerHookCommand);
        }
    }
View Full Code Here

Examples of fr.soleil.salsa.client.entity.event.HookModel.addListener()

            return;
        }
        HookModel hm = (HookModel) ih;

        if (listen) {
            hm.addListener(listenerHook);
        }
        else {
            hm.removeListener(listenerHook);
        }
        if (ih.getCommandsList() != null) {
View Full Code Here

Examples of fr.soleil.salsa.client.entity.event.PostScanBehaviourModel.addListener()

        if (ipsb == null)
            return;
        PostScanBehaviourModel psbm = (PostScanBehaviourModel) ipsb;

        if (listen) {
            psbm.addListener(listenerPostScanBehaviour);
        }
        else {
            psbm.removeListener(listenerPostScanBehaviour);
        }
    }
View Full Code Here

Examples of fr.soleil.salsa.client.entity.event.ScanAddOnModel.addListener()

        if (isao == null)
            return;
        ScanAddOnModel saom = (ScanAddOnModel) isao;

        if (listen) {
            saom.addListener(listenerScanAddOn);
        }
        else {
            saom.removeListener(listenerScanAddOn);
        }
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.