Package fr.soleil.salsa.entity.event

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


                List<IActuator> actuators = config1d.getDimensionX().getActuatorsList();
                view.clearActuators();
                for (int i = 0; i < actuators.size(); i++) {
                    IActuator a = (IActuator) actuators.get(i);
                    ActuatorModel eActuator = (ActuatorModel) a;
                    eActuator.addListener(actuatorListener);
                    view.addActuator(a.getName(), a.getName());
                    if (i == postScanBehaviour.getActuator()) {
                        view.setActuatorSelected(i);
                    }
                }
View Full Code Here

     * @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

                    List<IActuator> actuators = config1d.getDimensionX().getActuatorsList();
                    view.clearActuators();
                    for (int i = 0; i < actuators.size(); i++) {
                        IActuator a = actuators.get(i);
                        ActuatorModel eActuator = (ActuatorModel) a;
                        eActuator.addListener(actuatorListener);
                        view.addActuator(a.getName(), a.getName());
                        if (i == postScanBehaviour.getActuator()) {
                            view.setActuatorSelected(i);
                        }
                    }
View Full Code Here

                List<IActuator> actuators = config1d.getDimensionX().getActuatorsList();
                view.clearActuators();
                for (int i = 0; i < actuators.size(); i++) {
                    IActuator a = (IActuator) actuators.get(i);
                    ActuatorModel eActuator = (ActuatorModel) a;
                    eActuator.addListener(actuatorListener);
                    view.addActuator(a.getName(), a.getName());
                    if (i == postScanBehaviour.getActuator()) {
                        view.setActuatorSelected(i);
                    }
                }
View Full Code Here

     * @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

                                for (int i = 0; i < actuators.size(); i++) {
                                    IActuator a = actuators.get(i);
                                    if (a.isEnabled()) {
                                        if (a instanceof ActuatorModel) {
                                            ActuatorModel eActuator = (ActuatorModel) a;
                                            eActuator.addListener(actuatorListener);
                                        }
                                        view.addActuator(a.getName(), a.getName());
                                        if (i == postScanBehaviour.getActuator()) {
                                            view.setActuatorSelected(i);
                                        }
View Full Code Here

                        if (actuators != null) {
                            for (int i = 0; i < actuators.size(); i++) {
                                IActuator a = actuators.get(i);
                                if (a.isEnabled()) {
                                    ActuatorModel eActuator = (ActuatorModel) a;
                                    eActuator.addListener(actuatorListener);
                                    view.addActuator(a.getName(), a.getName());
                                    if (i == postScanBehaviour.getActuator()) {
                                        view.setActuatorSelected(i);
                                    }
                                }
View Full Code Here

     * @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

                    view.clearActuators();
                    for (int i = 0; i < actuators.size(); i++) {
                        IActuator a = actuators.get(i);
                        if (a.isEnabled()) {
                            ActuatorModel eActuator = (ActuatorModel) a;
                            eActuator.addListener(actuatorListener);
                            view.addActuator(a.getName(), a.getName());
                            if (i == postScanBehaviour.getActuator()) {
                                view.setActuatorSelected(i);
                            }
                        }
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.