Examples of addListener()


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

            view.clearSensors();
            for (int i = 0; i < sensors.size(); i++) {

                ISensor s = sensors.get(i);
                SensorModel eSensort = (SensorModel) s;
                eSensort.addListener(sensorListener);
                view.addSensor(s.getName(), s.getName());
                if (i == postScanBehaviour.getSensor()) {
                    view.setSensorSelected(i);
                }
            }
View Full Code Here

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

     * @param newList
     */
    public void actuatorAddedEvent(List<IActuator> newList) {
        ActuatorModel actuatorModel = (ActuatorModel) newList.get(newList.size() - 1);
        this.actuatorModelsList.add(actuatorModel);
        actuatorModel.addListener(listenerActuator);
        IDimension1D dimension = ((IConfig1D) config).getDimensionX();
        List<IRange1D> range1DList = dimension.getRangesXList();
        if (this.rangeModelsList.size() == 0) {
            this.notifyNewRangeAction();
        }
View Full Code Here

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

    public void startListening(IConfig<?> config) {
        if (config != null) {
            stopListening();

            Config1DModel configModel = (Config1DModel) config;
            configModel.addListener(listenerConfig1D);

            Dimension1DModel dimension1DModel = (Dimension1DModel) configModel.getDimensionX();
            dimension1DModel.addListener(listenerDimension1D);
            for (IActuator actuator : dimension1DModel.getActuatorsList()) {
                ((ActuatorModel) actuator).addListener(listenerActuator);
View Full Code Here

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

    public void startListening(IConfig<?> config) {
        if (config != null) {
            stopListening();

            Config2DModel config2DModel = (Config2DModel) config;
            config2DModel.addListener(listenerConfig2D);

            Dimension2DYModel dimension2DYModel = (Dimension2DYModel) config2DModel.getDimensionY();
            dimension2DYModel.addListener(listenerDimension2DY);

            for (IActuator actuator : dimension2DYModel.getActuatorsList()) {
View Full Code Here

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

                    }
                    break;

                case SCAN_ENERGY:
                    ConfigEnergyModel configEnergyModel = (ConfigEnergyModel) config;
                    configEnergyModel.addListener(listenerConfigEnergy);
                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).addListener(listenerSensor);
                    }
                    DimensionEnergyModel dimensionEnergyModel = (DimensionEnergyModel) configEnergyModel
                            .getDimensionX();
View Full Code Here

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

     */
    public void startListening(IConfig<?> config) {
        if (config != null) {
            stopListening();
            ConfigHCSModel configHCSModel = (ConfigHCSModel) config;
            configHCSModel.addListener(listenerConfigHCS);

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

View Full Code Here

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

                    }
                    break;

                case SCAN_K:
                    ConfigKModel configKModel = (ConfigKModel) config;
                    configKModel.addListener(listenerConfigK);
                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).addListener(listenerSensor);
                    }
                    DimensionKModel dimensionKModel = (DimensionKModel) configKModel
                            .getDimensionX();
View Full Code Here

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

            Config1DModel configModel = (Config1DModel) config;
            configModel.addListener(listenerConfig1D);

            Dimension1DModel dimension1DModel = (Dimension1DModel) configModel.getDimensionX();
            dimension1DModel.addListener(listenerDimension1D);
            for (IActuator actuator : dimension1DModel.getActuatorsList()) {
                ((ActuatorModel) actuator).addListener(listenerActuator);
            }
            for (IRange1D range1D : dimension1DModel.getRangesXList()) {
                ((Range1DModel) range1D).addListener(listenerRange1D);
View Full Code Here

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

            Config2DModel config2DModel = (Config2DModel) config;
            config2DModel.addListener(listenerConfig2D);

            Dimension2DXModel dimension2DXModel = (Dimension2DXModel) config2DModel.getDimensionX();
            dimension2DXModel.addListener(listenerDimension2DX);

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

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

            Config2DModel config2DModel = (Config2DModel) config;
            config2DModel.addListener(listenerConfig2D);

            Dimension2DYModel dimension2DYModel = (Dimension2DYModel) config2DModel.getDimensionY();
            dimension2DYModel.addListener(listenerDimension2DY);

            for (IActuator actuator : dimension2DYModel.getActuatorsList()) {
                ((ActuatorModel) actuator).addListener(listenerActuator);
            }
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.