Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile
11g Release 2 (11.1.2.4.0)

E27204-03


oracle.adf.model.datacontrols.device
Class PreferenceScope

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by oracle.adfmf.framework.Scope
              extended by oracle.adf.model.datacontrols.device.PreferenceScope

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class PreferenceScope
extends oracle.adfmf.framework.Scope

Embedded Java side for preferences.

See Also:
Serialized Form

Nested Class Summary

 

Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>

 

Field Summary

 

Fields inherited from class oracle.adfmf.framework.Scope
APPLICATION_SCOPE, DEVICE_SCOPE, PAGE_FLOW_SCOPE, PREFERENCE_SCOPE, SECURITY_SCOPE, SHARED_SCOPE, VIEW_SCOPE

 

Constructor Summary
PreferenceScope()
           
PreferenceScope(java.lang.String branchName)
           

 

Method Summary
 void clear()
           
 boolean containsKey(java.lang.Object arg0)
           
 boolean containsValue(java.lang.Object arg0)
           
 java.util.Set entrySet()
           
 java.lang.Object get(java.lang.Object key)
           
static PreferenceScope getInstance()
           
 boolean isEmpty()
           
 java.util.Set keySet()
           
 java.lang.Object put(java.lang.Object key, java.lang.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.
 java.lang.Object remove(java.lang.Object arg0)
           
 int size()
           
 java.util.Collection values()
           

 

Methods inherited from class oracle.adfmf.framework.Scope
addPropertyChangeListener, getScopeName, isMissingKeyResolvable, removePropertyChangeListener

 

Methods inherited from class java.util.HashMap
clone

 

Methods inherited from class java.util.AbstractMap
equals, hashCode, toString

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface java.util.Map
equals, hashCode

 

Constructor Detail

PreferenceScope

public PreferenceScope()

PreferenceScope

public PreferenceScope(java.lang.String branchName)

Method Detail

getInstance

public static final PreferenceScope getInstance()

refreshPreferences

public static void refreshPreferences()
Fetch all the application's preferences and update the PreferenceScope with any new values. Doing this will fire DCEs for all changed preference values. Note: Ignore the timeout on the cache when checking the cached values, or we never get useful values from the timeout cache, as preferences uses a zero (always expired) timeout value.

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map
Overrides:
get in class oracle.adfmf.framework.Scope
See Also:
Map

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map
Overrides:
put in class oracle.adfmf.framework.Scope
See Also:
Map

clear

public void clear()
Specified by:
clear in interface java.util.Map
Overrides:
clear in class oracle.adfmf.framework.Scope
See Also:
Map

containsKey

public boolean containsKey(java.lang.Object arg0)
Specified by:
containsKey in interface java.util.Map
Overrides:
containsKey in class java.util.HashMap
See Also:
Map

containsValue

public boolean containsValue(java.lang.Object arg0)
Specified by:
containsValue in interface java.util.Map
Overrides:
containsValue in class java.util.HashMap
See Also:
Map

entrySet

public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map
Overrides:
entrySet in class java.util.HashMap
See Also:
Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map
Overrides:
isEmpty in class java.util.HashMap
See Also:
Map

keySet

public java.util.Set keySet()
Specified by:
keySet in interface java.util.Map
Overrides:
keySet in class java.util.HashMap
See Also:
Map

putAll

public void putAll(java.util.Map arg0)
Specified by:
putAll in interface java.util.Map
Overrides:
putAll in class java.util.HashMap
See Also:
Map

remove

public java.lang.Object remove(java.lang.Object arg0)
Specified by:
remove in interface java.util.Map
Overrides:
remove in class java.util.HashMap
See Also:
Map

size

public int size()
Specified by:
size in interface java.util.Map
Overrides:
size in class java.util.HashMap
See Also:
Map

values

public java.util.Collection values()
Specified by:
values in interface java.util.Map
Overrides:
values in class java.util.HashMap
See Also:
Map

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile
11g Release 2 (11.1.2.4.0)

E27204-03


Copyright © 2012, 2013 Oracle. All Rights Reserved.