Examples of addListener()


Examples of fr.soleil.salsa.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.entity.event.DimensionHCSModel.addListener()

            ConfigHCSModel configHCSModel = (ConfigHCSModel) config;
            configHCSModel.addListener(listenerConfigHCS);

            DimensionHCSModel dimensionHCSModel = (DimensionHCSModel) configHCSModel
                    .getDimensionX();
            dimensionHCSModel.addListener(listenerDimensionHCS);

            for (IActuator actuator : dimensionHCSModel.getActuatorsList()) {
                ((ActuatorModel) actuator).addListener(listenerActuator);
            }
View Full Code Here

Examples of fr.soleil.salsa.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.entity.event.DisplayModel.addListener()

    private void enableListening(IDisplay display, boolean listen) {
        if (display instanceof DisplayModel) { // this test returns false if display is null
            DisplayModel displayModel = (DisplayModel) display;
            if (listen) {
                displayModel.addListener(displayListener);
            }
            else {
                displayModel.removeListener(displayListener);
            }
        }
View Full Code Here

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

     */
    private void enableListening(IErrorStrategyItem ies, boolean listen) {
        if (ies instanceof ErrorStrategyItemModel) { // this test returns false if ies is null
            ErrorStrategyItemModel esim = (ErrorStrategyItemModel) ies;
            if (listen) {
                esim.addListener(listenerErrorStrategyItem);
            }
            else {
                esim.removeListener(listenerErrorStrategyItem);
            }
        }
View Full Code Here

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

     */
    private void enableListening(IErrorStrategy ies, boolean listen) {
        if (ies instanceof ErrorStrategyModel) { // this test returns false if ies is null
            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.entity.event.HookCommandModel.addListener()

     */
    private void enableListening(IHookCommand ihc, boolean listen) {
        if (ihc instanceof HookCommandModel) { // this test returns false if ihc is null
            HookCommandModel hcm = (HookCommandModel) ihc;
            if (listen) {
                hcm.addListener(listenerHookCommand);
            }
            else {
                hcm.removeListener(listenerHookCommand);
            }
        }
View Full Code Here

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

     */
    private void enableListening(IHook ih, boolean listen) {
        if (ih instanceof HookModel) { // this test returns false if ih is null
            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.entity.event.PostScanBehaviourModel.addListener()

    private void enableListening(IPostScanBehaviour ipsb, boolean listen) {
        if (ipsb instanceof PostScanBehaviourModel) { // this test returns false if ipsb is null
            PostScanBehaviourModel psbm = (PostScanBehaviourModel) ipsb;

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

Examples of fr.soleil.salsa.entity.event.Range1DModel.addListener()

            if (view != null) {
                view.addRange();
            }

            range1DList.add(rangeToAdd);
            rangeToAdd.addListener(listenerRange1D);
            config.setModified(true);
            // refresh();
        }
    }
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.