Examples of DevicePreferences


Examples of fr.soleil.salsa.preferences.DevicePreferences

    /**
     * Load preference from file.
     */
    public void loadPreferences() throws SalsaPreferencesException {
        DevicePreferences modelPreferences = DevicePreferencesPersistence.loadSystemPreferences();
        UIPreferences uiPreferences = UIPreferencesPersistence.loadSystemPreferences();
        initPerspectiveManager();
        setPreferences(modelPreferences, uiPreferences);
    }
View Full Code Here

Examples of fr.soleil.salsa.preferences.DevicePreferences

    private static final long serialVersionUID = -7936838531758140280L;
    protected IContext context = null;

    public StartButton() {
        super(ACTION_TYPE.START);
        DevicePreferences devicePreferences = SalsaAPI.getDevicePreferences();
        context = SalsaAPI.extractContext(devicePreferences);
    }
View Full Code Here

Examples of fr.soleil.salsa.preferences.DevicePreferences

    private static final long serialVersionUID = -7936838531758140280L;
    protected IContext context = null;

    public ResumeButton() {
        super(ACTION_TYPE.RESUME);
        DevicePreferences devicePreferences = SalsaAPI.getDevicePreferences();
        context = SalsaAPI.extractContext(devicePreferences);
        setBackgroundButton(new Color(255, 250, 200));
    }
View Full Code Here

Examples of fr.soleil.salsa.preferences.DevicePreferences

    private static final long serialVersionUID = -7936838531758140280L;
    protected IContext context = null;

    public StopButton() {
        super(ACTION_TYPE.STOP);
        DevicePreferences devicePreferences = SalsaAPI.getDevicePreferences();
        context = SalsaAPI.extractContext(devicePreferences);
        setBackgroundButton(new Color(217, 1, 21));
    }
View Full Code Here

Examples of fr.soleil.salsa.preferences.DevicePreferences

    private static final long serialVersionUID = -7936838531758140280L;
    protected IContext context = null;

    public StopButton() {
        super(ACTION_TYPE.STOP);
        DevicePreferences devicePreferences = SalsaAPI.getDevicePreferences();
        context = SalsaAPI.extractContext(devicePreferences);
        setBackground(Color.RED);
    }
View Full Code Here

Examples of fr.soleil.salsa.preferences.DevicePreferences

    boolean warningShown = false;

    private final List<String> attributeNameList = new ArrayList<String>();

    public DisplayManagerBean() {
        DevicePreferences devicePreferences = SalsaAPI.getDevicePreferences();
        // Load the scanServerName
        if (devicePreferences != null) {
            // System.out.println("setScanServerDeviceName " + devicePreferences.getScanServer());
            String scanServerName = devicePreferences.getScanServer();
            if (scanServerName != null) {
                scanServerName = scanServerName.toLowerCase();
                setScanServerDeviceName(scanServerName);
                start();
                String currentConfig = CurrentScanDataModel.readRunName(scanServerName);
                if (currentConfig != null) {
                    currentConfig = currentConfig.replaceAll("\\.", "/");
                    // System.out.println(currentConfig);
                    try {
                        IConfig<?> config = SalsaAPI.getConfigByPath(currentConfig, false);
                        setConfig(config);
                    }
                    catch (ScanNotFoundException e) {
                        // e.printStackTrace();
                    }
                }
            }

            dataFitterName = devicePreferences.getDataFitter();
            super.setDataFitterDeviceName(dataFitterName);
        }
    }
View Full Code Here

Examples of fr.soleil.salsa.preferences.DevicePreferences

    private IConfig<?> config = null;

    private final List<String> attributeNameList = new ArrayList<String>();

    public DisplayManagerBean() {
        DevicePreferences devicePreferences = SalsaAPI.getDevicePreferences();
        // Load the scanServerName
        if (devicePreferences != null) {
            // System.out.println("setScanServerDeviceName " + devicePreferences.getScanServer());
            String scanServerName = devicePreferences.getScanServer();
            setScanServerDeviceName(scanServerName);
            start();
            String currentConfig = CurrentScanDataModel.readRunName(scanServerName);
            if (currentConfig != null) {
                currentConfig = currentConfig.replaceAll("\\.", "/");
View Full Code Here

Examples of fr.soleil.salsa.preferences.DevicePreferences

            initPreferences();
        }
    }

    public void initPreferences() {
        DevicePreferences devicePreferences = SalsaAPI.getDevicePreferences();
        if (devicePreferences != null) {
            String scanServerName = devicePreferences.getScanServer();
            setScanServerName(scanServerName);
            dataFitterName = devicePreferences.getDataFitter();

            CurrentScanDataModel.setScanPropertiesMap(UIPreferences.getInstance().getCurrentScanPropertiesMap());

            super.setDataFitterDeviceName(dataFitterName);
View Full Code Here

Examples of fr.soleil.salsa.preferences.DevicePreferences

public class ScanResultBean extends CurrentScanResultBean {
    private static final long serialVersionUID = 8867370368252920404L;

    public ScanResultBean() {
        DevicePreferences devicePreferences = SalsaAPI.getDevicePreferences();
        // Load the scanServerName
        if (devicePreferences != null) {
            String scanServerName = devicePreferences.getScanServer();
            setScanServerDeviceName(scanServerName);
            start();
            String currentConfig = CurrentScanDataModel.readRunName(scanServerName);
            if (currentConfig != null) {
                currentConfig = currentConfig.replaceAll("\\.", "/");
View Full Code Here

Examples of fr.soleil.salsa.preferences.DevicePreferences

        this.splitLocation = location;
        setDividerLocation(splitLocation);
    }

    public void initPreferences() {
        DevicePreferences devicePreferences = SalsaAPI.getDevicePreferences();
        // Load the scanServerName
        if (devicePreferences != null) {
            String scanServerName = devicePreferences.getScanServer();
            setScanServerDeviceName(scanServerName);
        }
        if (splitLocation > 0) {
            setDividerLocation(splitLocation);
        } else {
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.