Package fr.soleil.salsa.client.preferences

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


        return null;
    }

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


        }
    }

    @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

  private boolean load =false;
 
  public BookmarkComboConfigList() {
    setEditable(false);
    try {
                UIPreferences uiPreferences = UIPreferencesPersistence.loadSystemPreferences();
                if(uiPreferences != null){
                  bookmarks = uiPreferences.getBookmarks();
                }
            }
       catch (SalsaPreferencesException e) {}
   
    setRenderer(new ConfigItemRenderer());
View Full Code Here

        loadBookmarks();
    }

    private void buildBookmarks() {
        try {
            UIPreferences uiPreferences = UIPreferencesPersistence.loadSystemPreferences();
            // Load the scanServerName
            if (uiPreferences != null) {
                Map<String, Map<String, String>> bookmarks = uiPreferences.getBookmarks();
                Set<String> bookmarkKeySet = bookmarks.keySet();
                Object[] keyArray = bookmarkKeySet.toArray();
                Arrays.sort(keyArray);
                removeAllItems();
                for (Object bookmarkKey : keyArray) {
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

        return null;
    }

    @Override
    public void removeBookmark(String bookmark) {
        UIPreferences uiPreferences = getUiPreferences();
        // Load the scanServerName
        if (uiPreferences != null) {
            uiPreferences.removeBookmark(bookmark);
        }
    }
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.