Class PrefUtil

java.lang.Object
com.iamsoft.util.ui.javafx.prefs.PrefUtil

public final class PrefUtil extends Object
  • Method Details

    • getUserNode

      public static Preferences getUserNode(Class<?> pClass, String... pKeys)
      Get user preferences object for specified node and path.
      See Also:
    • getSysNode

      public static Preferences getSysNode(Class<?> pClass, String... pKeys)
      Get user preferences object for specified node and path.
      See Also:
    • userNodeExists

      public static boolean userNodeExists(Class<?> pClass, String... pKeys)
      Determines whether user node exists for the specified class and keys.
    • userNodeExists

      public static boolean userNodeExists(String pNodeName)
      Determines whether user node exists for the specified absolute path name of node.
    • systemNodeExists

      public static boolean systemNodeExists(Class<?> pClass, String... pKeys)
      Determines whether system node exists for the specified class and keys.
    • systemNodeExists

      public static boolean systemNodeExists(String pNodeName)
      Determines whether user node exists for the specified absolute path name of node.
    • getNodeName

      public static String getNodeName(Class<?> pClass, String... pKeys)
      Returns the absolute path name of the node corresponding to the specified class and keys.
    • getScreenConfigString

      public static String getScreenConfigString()
      Get a string that uniquely identifies a monitor configuration. If monitor count or resolution change, a different String will be returned.
    • shrinkKey

      public static String shrinkKey(String pKey)
      If string length greater than Preferences.MAX_KEY_LENGTH, return hash (md5(String)). Otherwise, return input string.
    • md5

      public static String md5(String pString)