com.opera.core.systems.preferences
Class OperaScopePreferences
java.lang.Object
com.opera.core.systems.preferences.AbstractOperaPreferences
com.opera.core.systems.preferences.OperaScopePreferences
- All Implemented Interfaces:
- OperaPreferences, Iterable<OperaPreferences.OperaPreference>
public class OperaScopePreferences
- extends AbstractOperaPreferences
OperaScopePreferences allows updating preferences inside Opera using the Scope protocol using the
common OperaPreferences interface. The prefs service will be written to upon alteration
of any preference.
- See Also:
OperaFilePreferences
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
service
protected IPrefs service
OperaScopePreferences
public OperaScopePreferences(IPrefs prefsService)
set
public void set(OperaPreferences.OperaPreference preference)
- Description copied from interface:
OperaPreferences
- Sets the given preference. If a previous preference with the same section and key names exist,
it will be replaced by the given preference.
- Specified by:
set in interface OperaPreferences- Overrides:
set in class AbstractOperaPreferences
- Parameters:
preference - the preference to add or update
set
public void set(String section,
String key,
Object value)
- Description copied from interface:
OperaPreferences
- Sets the given preference information. If a previous preference with the same section and key
names exist, it will be replaced by the given preference.
This is a shortcut for the
OperaPreferences.set(OperaPreference) method.
- Specified by:
set in interface OperaPreferences- Overrides:
set in class AbstractOperaPreferences
- Parameters:
section - the section name, can be case-insensitivekey - the key name, can be case-insensitivevalue - the new value (will be treated as a String in Opera
get
public OperaScopePreferences.ScopePreference get(String section,
String key)
- Description copied from interface:
OperaPreferences
- Returns the preference with the given section and key values.
- Specified by:
get in interface OperaPreferences- Overrides:
get in class AbstractOperaPreferences
- Parameters:
section - the section name, can be case-insensitivekey - the key name, can be case-insensitive
- Returns:
- the preference requested
resetAll
public void resetAll()
- Resets all preferences' values to their default value.
Copyright © 2012. All Rights Reserved.