public class OperaFilePreferences extends AbstractOperaPreferences
opera.ini or operaprefs.ini. The file will be written to upon each
alteration to any preference.| Modifier and Type | Class and Description |
|---|---|
static class |
OperaFilePreferences.FilePreference
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. |
AbstractOperaPreferences.AbstractPreferenceOperaPreferences.OperaPreferencepreferences| Constructor and Description |
|---|
OperaFilePreferences(File preferenceFile)
Constructs a new representation of Opera's preferences based on the given preference file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
set(OperaPreferences.OperaPreference preference)
Sets the given preference.
|
void |
set(String section,
String key,
Object value)
Sets the given preference information.
|
void |
write()
Call this to cause the current preferences representation to be written to disk.
|
public OperaFilePreferences(File preferenceFile)
preferenceFile - an INI style preference filepublic void set(String section, String key, Object value)
OperaPreferencesOperaPreferences.set(OperaPreference) method.set in interface OperaPreferencesset in class AbstractOperaPreferencessection - the section name, can be case-insensitivekey - the key name, can be case-insensitivevalue - the new value (will be treated as a String in Operapublic void set(OperaPreferences.OperaPreference preference)
OperaPreferencesset in interface OperaPreferencesset in class AbstractOperaPreferencespreference - the preference to add or updatepublic void write()
OperaFilePreferences.FilePreference.setValue(Object) and it is thus not necessary to call this
method separately unless you wish to perform a forced write of the cache to disk.Copyright © 2013. All Rights Reserved.