public class PPropUtilities extends Object
Constructor and Description |
---|
PPropUtilities() |
Modifier and Type | Method and Description |
---|---|
static void |
addPropertyChangeListener(PropertyChangeListener l)
Register for changes to the user preferences.
|
static boolean |
getBooleanProp(String key)
Retrieve the boolean value for the given key name from the properties
object.
|
static int |
getIntProp(String key)
Retrieve the integer value for the given key name from the properties
object.
|
static String |
getStringProp(String key)
Retrieve the String value for the given key name from the properties
object.
|
static Properties |
mergeProperties(Properties p1,
Properties p2)
Combines all the elements of two properties objects into one and
returns a new properties object.
|
static void |
removePropertyChangeListener(PropertyChangeListener l)
Unregister for changes to the user preferences.
|
static void |
setProp(String key,
String value)
Stores the given key/value pair in both the client default property
object and the user preferences object
|
public static int getIntProp(String key)
String
- the key namepublic static String getStringProp(String key)
String
- the key namepublic static boolean getBooleanProp(String key)
key
- the property key namepublic static void setProp(String key, String value)
key
- the property key namevalue
- the property valuepublic static Properties mergeProperties(Properties p1, Properties p2)
p1
- Properties object to use as a defaultp2
- Properties object to add/merge to p1public static void addPropertyChangeListener(PropertyChangeListener l)
l
- public static void removePropertyChangeListener(PropertyChangeListener l)
l
- Copyright © 2003, 2023, Oracle and/or its affiliates.