Package fr.soleil.salsa.client.preferences

Examples of fr.soleil.salsa.client.preferences.UIPreferences


        }
    }

    @Override
    public void removeEntryFromBookmark(String bookmark, String configPath) {
        UIPreferences uiPreferences = getUiPreferences();
        // Load the scanServerName
        if (uiPreferences != null) {
            uiPreferences.removeEntryFromBookmark(bookmark, configPath);
        }
    }
View Full Code Here


        }
    }

    @Override
    public void removeAllEntryFromBookmark(String configPath) {
        UIPreferences uiPreferences = getUiPreferences();
        // Load the scanServerName
        if (uiPreferences != null) {
            uiPreferences.removeAllEntryFromBookmark(configPath);
        }

    }
View Full Code Here

        }

    }

    public void replaceEntryInBookmarks(String configPath, String newConfigPath) {
        UIPreferences uiPreferences = getUiPreferences();
        // Load the scanServerName
        if (uiPreferences != null) {
            uiPreferences.replaceEntryInBookmarks(configPath, newConfigPath);
        }
    }
View Full Code Here

     * To set the control Panel command.
     */
    @Override
    public String getBachtExecuteFile() {
        if (commandLine == null || commandLine.isEmpty()) {
            UIPreferences uiPreferences = getUiPreferences();
            if (uiPreferences != null) {
                commandLine = uiPreferences.getControlPanel();
                if (commandLine != null && commandLine.trim().isEmpty()) {
                    commandLine = StringTools.replaceAll(commandLine.trim(),
                            DevicePreferences.CONTROL_PANEL_DEVICE_NAME_STRING, "");
                }
            }
View Full Code Here

    public SalsaScanResultBean() {
        bean = new ScanResultBean(false);
        setLayout(new BorderLayout());
        add(bean, BorderLayout.CENTER);
        UIPreferences uiPreferences;
        try {
            uiPreferences = UIPreferencesPersistence.loadSystemPreferences();
            bean.setUIPreferences(uiPreferences);
        } catch (SalsaPreferencesException e) {
        }
View Full Code Here

        DevicePreferences devicePref = SalsaAPI.getDevicePreferences();
        if (devicePref != null) {
            setScanServerName(devicePref.getScanServer());
        }
        try {
            UIPreferences uiPreferences = UIPreferencesPersistence.loadSystemPreferences();
            if (uiPreferences != null) {
                super.setExecutedBatchFile(uiPreferences.getControlPanel());
            }
        } catch (Exception e) {
        }
        start();
    }
View Full Code Here

        }
    }

    @Override
    public void addBookmark(String bookmark) {
        UIPreferences uiPreferences = getUiPreferences();
        // Load the scanServerName
        if (uiPreferences != null) {
            uiPreferences.addBookmarks(bookmark);
        }
    }
View Full Code Here

        }
    }

    @Override
    public void addEntryToBookmark(String bookmark, String configPath, String customLabel) {
        UIPreferences uiPreferences = getUiPreferences();
        // Load the scanServerName
        if (uiPreferences != null) {
            uiPreferences.addEntryToBookmarks(bookmark, configPath, customLabel);
        }
    }
View Full Code Here

        }
    }

    @Override
    public Map<String, Map<String, String>> getBookmarks() {
        UIPreferences uiPreferences = getUiPreferences();
        // Load the scanServerName
        if (uiPreferences != null) {
            return uiPreferences.getBookmarks();
        }
        return null;
    }
View Full Code Here

        layout.show(trajectoryPanel, ConfigType.NONE.toString());
        layout2.show(centerPanel, ConfigType.NONE.toString());

        try {
            UIPreferences uipref = UIPreferencesPersistence.loadSystemPreferences();
            if (uipref != null) {
                String controlPanel = uipref.getControlPanel();
                actuatorPanel.setExecutedBatchFile(controlPanel);
                sensorPanel.setExecutedBatchFile(controlPanel);
                timeBasePanel.setExecutedBatchFile(controlPanel);
                statusBar.setExecutedBatchFile(controlPanel);
            }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.client.preferences.UIPreferences

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.