Code example for Preferences

Methods: put

0
  } 
 
  private static void setRegistryValue(String key, String value) {
    Preferences systemPref = Preferences.systemRoot();
    Preferences prefs = systemPref.node("web_sdk");
    prefs.put(key, value);
  } 
 
  public static int getOutput() { 
    String registryValue = getRegistryValue(OUTPUT);
    if (registryValue == null || registryValue.equals("")) {
      return 0; 
    } 
    return Integer.parseInt(registryValue);
  } 
 
  public static void setOutput(int output) {
    setRegistryValue(OUTPUT, String.valueOf(output));
  } 
 
  public static void setCloseWindowSelected(boolean closeWindow) {