- java.lang.Object
-
- com.iamsoft.util.ui.javafx.prefs.PrefUtil
-
public final class PrefUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetNodeName(Class<?> pClass, String... pKeys)Returns the absolute path name of the node corresponding to the specified class and keys.static StringgetScreenConfigString()Get a string that uniquely identifies a monitor configuration.static PreferencesgetSysNode(Class<?> pClass, String... pKeys)Get user preferences object for specified node and path.static PreferencesgetUserNode(Class<?> pClass, String... pKeys)Get user preferences object for specified node and path.static Stringmd5(String pString)static StringshrinkKey(String pKey)If string length greater than Preferences.MAX_KEY_LENGTH, return hash (md5(String)).static booleansystemNodeExists(Class<?> pClass, String... pKeys)Determines whether system node exists for the specified class and keys.static booleansystemNodeExists(String pNodeName)Determines whether user node exists for the specified absolute path name of node.static booleanuserNodeExists(Class<?> pClass, String... pKeys)Determines whether user node exists for the specified class and keys.static booleanuserNodeExists(String pNodeName)Determines whether user node exists for the specified absolute path name of node.
-
-
-
Method Detail
-
getUserNode
public static Preferences getUserNode(Class<?> pClass, String... pKeys)
Get user preferences object for specified node and path.
-
getSysNode
public static Preferences getSysNode(Class<?> pClass, String... pKeys)
Get user preferences object for specified node and path.
-
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.
-
-