public class PreferenceScope
extends oracle.adfmf.framework.Scope
Constructor and Description |
---|
PreferenceScope() |
PreferenceScope(String branchName) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object arg0) |
boolean |
containsValue(Object arg0) |
java.util.Set |
entrySet() |
Object |
get(Object key) |
static PreferenceScope |
getInstance() |
boolean |
isEmpty() |
java.util.Set |
keySet() |
void |
populatePreferencesMap(java.util.HashMap preferences)
populate a subset of the preferences map starting at the top
|
Object |
put(Object key,
Object value) |
void |
putAll(java.util.Map arg0) |
static void |
refreshPreferences()
Fetch all the application's preferences and update the PreferenceScope
with any new values.
|
Object |
remove(Object arg0) |
int |
size() |
void |
synchronizePreferencesMap(java.util.HashMap preferences)
Populate the preferences with the specified values.
|
java.util.Collection |
values() |
addPropertyChangeListener, getScopeName, isMissingKeyResolvable, removePropertyChangeListener
public PreferenceScope()
public PreferenceScope(String branchName)
public static final PreferenceScope getInstance()
public static void refreshPreferences()
public void populatePreferencesMap(java.util.HashMap preferences)
preferences
- - flat list of preferences (name-value pairs)public void synchronizePreferencesMap(java.util.HashMap preferences)
preferences
- the preferences to setpublic Object get(Object key)
get
in interface java.util.Map
get
in class oracle.adfmf.framework.Scope
Map
public Object put(Object key, Object value)
put
in interface java.util.Map
put
in class oracle.adfmf.framework.Scope
Map
public void clear()
clear
in interface java.util.Map
clear
in class oracle.adfmf.framework.Scope
Map
public boolean containsKey(Object arg0)
containsKey
in interface java.util.Map
containsKey
in class java.util.HashMap
Map
public boolean containsValue(Object arg0)
containsValue
in interface java.util.Map
containsValue
in class java.util.HashMap
Map
public java.util.Set entrySet()
entrySet
in interface java.util.Map
entrySet
in class java.util.HashMap
Map
public boolean isEmpty()
isEmpty
in interface java.util.Map
isEmpty
in class java.util.HashMap
Map
public java.util.Set keySet()
keySet
in interface java.util.Map
keySet
in class java.util.HashMap
Map
public void putAll(java.util.Map arg0)
putAll
in interface java.util.Map
putAll
in class java.util.HashMap
Map
public Object remove(Object arg0)
remove
in interface java.util.Map
remove
in class java.util.HashMap
Map
public int size()
size
in interface java.util.Map
size
in class java.util.HashMap
Map
public java.util.Collection values()
values
in interface java.util.Map
values
in class java.util.HashMap
Map