Package ucar.ui.prefs
Class PersistentBean
- java.lang.Object
-
- ucar.ui.prefs.PersistentBean
-
- All Implemented Interfaces:
PersistenceManager
public class PersistentBean extends Object implements PersistenceManager
Manages mapping of PrefPanel fields to java beans.
-
-
Constructor Summary
Constructors Constructor Description PersistentBean(Object bean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPreferenceChangeListener(PreferenceChangeListener pcl)
String
get(String key, String def)
boolean
getBoolean(String key, boolean def)
double
getDouble(String key, double def)
int
getInt(String key, int def)
List
getList(String key, List def)
long
getLong(String key, long def)
Object
getObject(String name)
void
put(String key, String value)
void
putBoolean(String key, boolean value)
void
putDouble(String key, double value)
void
putInt(String key, int value)
void
putList(String key, List value)
void
putLong(String key, long value)
void
putObject(String name, Object value)
-
-
-
Constructor Detail
-
PersistentBean
public PersistentBean(Object bean)
-
-
Method Detail
-
getObject
public Object getObject(String name)
- Specified by:
getObject
in interfacePersistenceManager
-
putObject
public void putObject(String name, Object value)
- Specified by:
putObject
in interfacePersistenceManager
-
addPreferenceChangeListener
public void addPreferenceChangeListener(PreferenceChangeListener pcl)
- Specified by:
addPreferenceChangeListener
in interfacePersistenceManager
-
get
public String get(String key, String def)
- Specified by:
get
in interfacePersistenceManager
-
put
public void put(String key, String value)
- Specified by:
put
in interfacePersistenceManager
-
getDouble
public double getDouble(String key, double def)
- Specified by:
getDouble
in interfacePersistenceManager
-
putDouble
public void putDouble(String key, double value)
- Specified by:
putDouble
in interfacePersistenceManager
-
getBoolean
public boolean getBoolean(String key, boolean def)
- Specified by:
getBoolean
in interfacePersistenceManager
-
putBoolean
public void putBoolean(String key, boolean value)
- Specified by:
putBoolean
in interfacePersistenceManager
-
getInt
public int getInt(String key, int def)
- Specified by:
getInt
in interfacePersistenceManager
-
putInt
public void putInt(String key, int value)
- Specified by:
putInt
in interfacePersistenceManager
-
getLong
public long getLong(String key, long def)
- Specified by:
getLong
in interfacePersistenceManager
-
putLong
public void putLong(String key, long value)
- Specified by:
putLong
in interfacePersistenceManager
-
getList
public List getList(String key, List def)
- Specified by:
getList
in interfacePersistenceManager
-
putList
public void putList(String key, List value)
- Specified by:
putList
in interfacePersistenceManager
-
-