Package fr.soleil.salsa.client.entity.event

Examples of fr.soleil.salsa.client.entity.event.SensorModel


            List<ISensor> sensors = config.getSensorsList();
            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


    @Override
    public void notifyNewAction(String value) {

        if (config != null) {
            updateListSensors();
            ISensor sensor = new SensorModel();
            sensor.setName(defaultSensorName);
            if (value != null) {
                sensor.setName(value);
            }
            sensor.setEnabled(true);

            boolean addSucces = this.sensorsListView.addRow(sensor);
            if (addSucces)
                this.listSensor.add(sensor);
View Full Code Here

        }
        else if (this.listSensor.size() == 0) {
            for (int i = 0; i < this.sensorsListView.getModel().getRowCount(); i++) {
                String sensorName = (String) this.sensorsListView.getModel().getValueAt(i, 1);
                Boolean isEnabled = (Boolean) this.sensorsListView.getModel().getValueAt(i, 0);
                ISensor sensor = new SensorModel();
                sensor.setName(sensorName);
                sensor.setEnabled(isEnabled);
                this.listSensor.add(sensor);
            }
        }
    }
View Full Code Here

            List<ISensor> sensors = config.getSensorsList();
            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

    @Override
    public void notifyNewAction(String value) {

        if (config != null) {
            updateListSensors();
            ISensor sensor = new SensorModel();
            sensor.setName(defaultSensorName);
            if (value != null) {
                sensor.setName(value);
            }
            sensor.setEnabled(true);

            boolean addSucces = this.sensorsListView.addRow(sensor);
            if (addSucces)
                this.listSensor.add(sensor);
View Full Code Here

        }
        else if (this.listSensor.size() == 0) {
            for (int i = 0; i < this.sensorsListView.getModel().getRowCount(); i++) {
                String sensorName = (String) this.sensorsListView.getModel().getValueAt(i, 1);
                Boolean isEnabled = (Boolean) this.sensorsListView.getModel().getValueAt(i, 0);
                ISensor sensor = new SensorModel();
                sensor.setName(sensorName);
                sensor.setEnabled(isEnabled);
                this.listSensor.add(sensor);
            }
        }
    }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.client.entity.event.SensorModel

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.