public class Settings extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addPropertyChangeListener(Callback<String,Void> pcl)
Add a PropertyChangeListener for the specified setting
Note that the PropertyChangeEvent will contain old and new values as they
would be returned from get(), meaning they may come from the System
Properties.
|
static String |
get(String key)
Retrieve the value for the given key.
|
static boolean |
getBoolean(String key)
Convenience method for boolean settings.
|
static boolean |
getBoolean(String key,
boolean defaultVal)
Convenience method for boolean settings.
|
static int |
getInt(String key,
int defaultVal)
Convenience method for int settings.
|
static void |
removePropertyChangeListener(Callback<String,Void> pcl)
Remove the specified PropertyChangeListener.
|
static void |
set(String key,
String value)
Add a new key-value setting.
|
public static void set(String key, String value)
public static String get(String key)
public static boolean getBoolean(String key)
public static boolean getBoolean(String key, boolean defaultVal)
public static int getInt(String key, int defaultVal)
public static void addPropertyChangeListener(Callback<String,Void> pcl)
Copyright © 2020. All rights reserved.