Package fr.soleil.salsa.entity.event

Examples of fr.soleil.salsa.entity.event.TimebaseModel


        super(view, config, errorController);
    }

    @Override
    protected ITimebase generateDevice() {
        return new TimebaseModel();
    }
View Full Code Here


        super(view, config, errorController);
    }

    @Override
    protected ITimebase generateDevice() {
        return new TimebaseModel();
    }
View Full Code Here

        super(null, config, errorController);
    }

    @Override
    protected IDevice generateDevice() {
        return new TimebaseModel();
    }
View Full Code Here

                    actuator.setEnabled(true);
                    ((List<IActuator>) deviceList).add(actuator);
                    newDevice = actuator;
                }
                if (device instanceof ITimebase) {
                    ITimebase timebase = new TimebaseModel();
                    timebase.setName(deviceName);
                    timebase.setEnabled(true);
                    ((List<ITimebase>) deviceList).add(timebase);
                    newDevice = timebase;
                }
            } else if (device.isEnabled()) {
                tmpDevice.setEnabled(true);
View Full Code Here

    }

    @Override
    public void addTimeBase(String timebaseName) {
        if (getDevice(timebaseName, timebaseList) == null) {
            ITimebase timeBase = new TimebaseModel();
            timeBase.setName(timebaseName);
            timeBase.setEnabled(true);
            timebaseList.add(timeBase);
        }
    }
View Full Code Here

    }

    @Override
    public void addTimeBase(String timebaseName) {
        if (getDevice(timebaseName, timebaseList) == null) {
            ITimebase timeBase = new TimebaseModel();
            timeBase.setName(timebaseName);
            timeBase.setEnabled(true);
            timebaseList.add(timeBase);
        }
    }
View Full Code Here

        super(view, config, errorController);
    }

    @Override
    protected ITimebase generateDevice() {
        return new TimebaseModel();
    }
View Full Code Here

    public int hashCode() {
        return this.name != null ? this.name.hashCode() : 0;
    }

    protected IDevice initModel() {
        return new TimebaseModel(this);
    }
View Full Code Here

    @Override
    public void notifyNewAction(String value) {

        if (config != null) {
            updateListTimebase();
            ITimebase timebase = new TimebaseModel();
            timebase.setName(DEFAULT_TIMEBASE_NAME);
            if (value != null) {
                timebase.setName(value);
            }
            timebase.setEnabled(true);

            boolean addSucces = this.view.addRow(timebase);
            if (addSucces)
                this.listTimebase.add(timebase);
View Full Code Here

        }
        else if (this.listTimebase.size() == 0) {
            for (int i = 0; i < this.view.getModel().getRowCount(); i++) {
                String timebaseName = (String) this.view.getModel().getValueAt(i, 1);
                Boolean isEnabled = (Boolean) this.view.getModel().getValueAt(i, 0);
                ITimebase timebase = new TimebaseModel();
                timebase.setName(timebaseName);
                timebase.setEnabled(isEnabled);
                this.listTimebase.add(timebase);
            }
        }
    }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.event.TimebaseModel

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.