|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opera.core.systems.preferences.AbstractOperaPreferences.AbstractPreference
com.opera.core.systems.preferences.OperaScopePreferences.ScopePreference
public static class OperaScopePreferences.ScopePreference
Allows setting Opera preferences in Opera in addition to keeping the local cache of preferences up to date.
| Field Summary |
|---|
| Fields inherited from class com.opera.core.systems.preferences.AbstractOperaPreferences.AbstractPreference |
|---|
defaultValue |
| Constructor Summary | |
|---|---|
OperaScopePreferences.ScopePreference(OperaScopePreferences parent,
PrefsProtos.Pref pref)
|
|
| Method Summary | |
|---|---|
Object |
getDefaultValue()
Gets the default value of the preference. |
Type |
getType()
Gets the type of the preference. |
Object |
getValue()
Gets the value of the preference in an idiomatic type. |
boolean |
isEnabled()
Whether setting is overriden by global INI. |
void |
reset()
Resets preference's value to its default value. |
void |
setValue(Object value)
Sets the value of this preference. |
| Methods inherited from class com.opera.core.systems.preferences.AbstractOperaPreferences.AbstractPreference |
|---|
getKey, getSection, getValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OperaScopePreferences.ScopePreference(OperaScopePreferences parent,
PrefsProtos.Pref pref)
| Method Detail |
|---|
public Object getValue()
String if no type is specified for this preference.
getValue in interface OperaPreferences.OperaPreferencegetValue in class AbstractOperaPreferences.AbstractPreferencepublic void setValue(Object value)
OperaPreferences.OperaPreference
setValue in interface OperaPreferences.OperaPreferencesetValue in class AbstractOperaPreferences.AbstractPreferencevalue - the new valuepublic Object getDefaultValue()
OperaPreferences.OperaPreference
getDefaultValue in interface OperaPreferences.OperaPreferencegetDefaultValue in class AbstractOperaPreferences.AbstractPreferencepublic Type getType()
Boolean, OperaColor, File, Integer or String.
public boolean isEnabled()
public void reset()
preference.setValue(preference.getDefaultValue).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||