com.opera.core.systems.preferences
Class OperaFilePreferences.FilePreference

java.lang.Object
  extended by com.opera.core.systems.preferences.AbstractOperaPreferences.AbstractPreference
      extended by com.opera.core.systems.preferences.OperaFilePreferences.FilePreference
All Implemented Interfaces:
OperaPreferences.OperaPreference
Enclosing class:
OperaFilePreferences

public static class OperaFilePreferences.FilePreference
extends AbstractOperaPreferences.AbstractPreference

Allows setting Opera preferences in a preference file (typically opera.ini or operaprefs.ini) as well as keeping the local individual preference cache up-to-date.


Field Summary
 
Fields inherited from class com.opera.core.systems.preferences.AbstractOperaPreferences.AbstractPreference
defaultValue
 
Constructor Summary
OperaFilePreferences.FilePreference(OperaFilePreferences parent, String section, String key, Object value)
           
 
Method Summary
static OperaFilePreferences.FilePreference convert(OperaFilePreferences parent, OperaPreferences.OperaPreference convertee)
           
 void setValue(Object value)
          Sets the value of this preference to the given value.
 
Methods inherited from class com.opera.core.systems.preferences.AbstractOperaPreferences.AbstractPreference
getDefaultValue, getKey, getSection, getValue, getValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OperaFilePreferences.FilePreference

public OperaFilePreferences.FilePreference(OperaFilePreferences parent,
                                           String section,
                                           String key,
                                           Object value)
Method Detail

setValue

public void setValue(Object value)
Sets the value of this preference to the given value. Writes the preference to file immediately after updating the local cache.

Specified by:
setValue in interface OperaPreferences.OperaPreference
Overrides:
setValue in class AbstractOperaPreferences.AbstractPreference
Parameters:
value - the new value

convert

public static OperaFilePreferences.FilePreference convert(OperaFilePreferences parent,
                                                          OperaPreferences.OperaPreference convertee)


Copyright © 2012. All Rights Reserved.