- 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 String
getNodeName(Class<?> pClass, String... pKeys)
Returns the absolute path name of the node corresponding to the specified class and keys.static String
getScreenConfigString()
Get a string that uniquely identifies a monitor configuration.static Preferences
getSysNode(Class<?> pClass, String... pKeys)
Get user preferences object for specified node and path.static Preferences
getUserNode(Class<?> pClass, String... pKeys)
Get user preferences object for specified node and path.static String
md5(String pString)
static String
shrinkKey(String pKey)
If string length greater than Preferences.MAX_KEY_LENGTH, return hash (md5(String)).static boolean
systemNodeExists(Class<?> pClass, String... pKeys)
Determines whether system node exists for the specified class and keys.static boolean
systemNodeExists(String pNodeName)
Determines whether user node exists for the specified absolute path name of node.static boolean
userNodeExists(Class<?> pClass, String... pKeys)
Determines whether user node exists for the specified class and keys.static boolean
userNodeExists(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.
-
-