public abstract class PreferencesMap extends HashMap<String,Object>
Constructor and Description |
---|
PreferencesMap() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones the preference.
|
protected abstract PreferencesMap |
createChild(String myKey) |
Object |
get(String key) |
protected String[] |
getNonCloneableKeys() |
Object |
getPreference(String key) |
protected abstract Object |
getPrefValueFromString(String prefName,
String value) |
abstract PreferencesMap |
newInstance()
Get the new instance of the type
|
Object |
put(String prefName,
Object prefValue) |
void |
setPreference(String key,
Object value)
Set the preference for the key provided
This would override the default preference.
|
protected abstract Object getPrefValueFromString(String prefName, String value)
public abstract PreferencesMap newInstance()
protected abstract PreferencesMap createChild(String myKey)
protected String[] getNonCloneableKeys()
public Object clone()
clone
in class HashMap<String,Object>
HashMap.clone()
public final Object put(String prefName, Object prefValue)
put
in class HashMap<String,Object>
HashMap.put(java.lang.Object, java.lang.Object)
public final Object get(String key)
HashMap.get(java.lang.Object)
public Object getPreference(String key)
key
- key used to lookup for the preferenceCopyright © 1982–2022 Adobe Systems Inc.. All rights reserved.