Package fr.soleil.salsa.client.view.component

Examples of fr.soleil.salsa.client.view.component.Option


            Behaviour[] behavioursValues = Behaviour.values();
            Option[] behavioursArray = new Option[behavioursValues.length];
            Behaviour behaviour;
            for (int behaviourIndex = 0; behaviourIndex < behavioursValues.length; ++behaviourIndex) {
                behaviour = behavioursValues[behaviourIndex];
                behavioursArray[behaviourIndex] = new Option(behaviour, behaviour
                        .getShortDescription());
            }
            this.view.setFunctionsArray(behavioursArray);
        }
        if (formerView != null) {
View Full Code Here


                int sensorIndex;
                int sensorsNumber = sensorsList.size();
                ISensor sensor;
                for (sensorIndex = 0; sensorIndex < sensorsNumber; ++sensorIndex) {
                    sensor = sensorsList.get(sensorIndex);
                    sensorsArray[sensorIndex] = new Option(sensor, sensor.getName());
                }
                view.setSensorsArray(sensorsArray);

                Option[] actuatorsArray = new Option[actuatorsList.size()];
                int actuatorIndex;
                int actuatorsNumber = actuatorsList.size();
                IActuator actuator;
                for (actuatorIndex = 0; actuatorIndex < actuatorsNumber; ++actuatorIndex) {
                    actuator = actuatorsList.get(actuatorIndex);
                    actuatorsArray[actuatorIndex] = new Option(actuator, actuator.getName());
                }
                view.setActuatorsArray(actuatorsArray);
            }
            else {
                view.setSensorsArray(new Option[0]);
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.client.view.component.Option

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.