Examples of removeListener()


Examples of fr.soleil.salsa.entity.event.DimensionKModel.removeListener()

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

Examples of fr.soleil.salsa.entity.event.DisplayModel.removeListener()

            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.removeListener()

            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.removeListener()

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

Examples of fr.soleil.salsa.entity.event.HookCommandModel.removeListener()

            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.removeListener()

            HookModel hm = (HookModel) ih;
            if (listen) {
                hm.addListener(listenerHook);
            }
            else {
                hm.removeListener(listenerHook);
            }
            if (ih.getCommandsList() != null) {
                for (IHookCommand ihc : ih.getCommandsList()) {
                    enableListening(ihc, listen);
                }
View Full Code Here

Examples of fr.soleil.salsa.entity.event.PostScanBehaviourModel.removeListener()

            if (listen) {
                psbm.addListener(listenerPostScanBehaviour);
            }
            else {
                psbm.removeListener(listenerPostScanBehaviour);
            }
        }
    }

    /**
 
View Full Code Here

Examples of fr.soleil.salsa.entity.event.ScanAddOnModel.removeListener()

            if (listen) {
                saom.addListener(listenerScanAddOn);
            }
            else {
                saom.removeListener(listenerScanAddOn);
            }

            enableListening(saom.getErrorStrategy(), listen);
            enableListening(saom.getPostScanBehaviour(), listen);
            enableListening(saom.getDisplay(), listen);
View Full Code Here

Examples of freenet.clients.http.FProxyFetchInProgress.removeListener()

    if (logMINOR) {
      Logger.minor(this, "Disposing ImageElement");
    }
    FProxyFetchInProgress progress = tracker.getFetchInProgress(key, maxSize, null);
    if (progress != null) {
      progress.removeListener(fetchListener);
      if (logMINOR) {
        Logger.minor(this, "canCancel():" + progress.canCancel());
      }
      progress.requestImmediateCancel();
      if (progress.canCancel()) {
View Full Code Here

Examples of it.baeyens.arduino.arduino.Serial.removeListener()

    public void dispose() {
  // As we have a listener we need to remove the listener
  if ((myScopelistener != null) && (mySerial != null)) {
      Serial tempSerial = mySerial;
      mySerial = null;
      tempSerial.removeListener(myScopelistener);
      myScopelistener.dispose();
      myScopelistener = null;
      myScope.dispose();
      myScope = null;
  }
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.