|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IPreferenceStore
| Field Summary | |
|---|---|
static boolean |
BOOLEAN_DEFAULT
The predefined default value for boolean preference |
static double |
DOUBLE_DEFAULT
The predefined default value for double preference |
static java.lang.String |
FALSE
The string representation used for false |
static float |
FLOAT_DEFAULT
The predefined default value for float preference |
static int |
INT_DEFAULT
The predefined default value for int preference |
static long |
LONG_DEFAULT
The predefined default value for long preference |
static java.lang.String |
STRING_DEFAULT
The predefined default value for String preference |
static java.lang.String |
TRUE
The string representation used for true |
| Method Summary | |
|---|---|
void |
addPreferenceChangeListener(IPreferenceChangeListener listener)
Adds a preference change listener to this store. |
java.lang.String[] |
getAdvancedProperties()
|
boolean |
getBoolean(java.lang.String name)
Returns the value of the boolean preference with the given
name. |
boolean |
getDefaultBoolean(java.lang.String name)
Returns the default value for the boolean preference with
the given name. |
double |
getDefaultDouble(java.lang.String name)
Returns the default value for the double preference with
the given name. |
float |
getDefaultFloat(java.lang.String name)
Returns the default value for the float preference with
the given name. |
int |
getDefaultInt(java.lang.String name)
Returns the default value for the int preference with the
given name. |
long |
getDefaultLong(java.lang.String name)
Returns the default value for the long preference with the
given name. |
java.lang.String |
getDefaultString(java.lang.String name)
Returns the default value for the String preference with
the given name. |
double |
getDouble(java.lang.String name)
Returns the value of the double preference with the given
name. |
float |
getFloat(java.lang.String name)
Returns the value of the float preference with the given
name. |
int |
getInt(java.lang.String name)
Returns the value of the int preference with the given
name. |
long |
getLong(java.lang.String name)
Returns the value of the long preference with the given
name. |
java.lang.String |
getString(java.lang.String name)
Returns the value of the String preference with the given
name. |
void |
putValue(java.lang.String name,
java.lang.String value)
Just sets the current value of the preference with the given name. |
void |
removePreferenceChangeListener(IPreferenceChangeListener listener)
Removes the given listener from this store. |
void |
setDefault(java.lang.String name,
boolean value)
Sets the default value for the boolean preference with the
given name. |
void |
setDefault(java.lang.String name,
double value)
Sets the default value for the double preference with the
given name. |
void |
setDefault(java.lang.String name,
float value)
Sets the default value for the float preference with the
given name. |
void |
setDefault(java.lang.String name,
int value)
Sets the default value for the int preference with the
given name. |
void |
setDefault(java.lang.String name,
long value)
Sets the default value for the long preference with the
given name. |
void |
setDefault(java.lang.String name,
java.lang.String value)
Sets the default value for the string preference with the
given name. |
void |
setValue(java.lang.String name,
boolean value)
Sets the current value of the boolean preference with the
given name. |
void |
setValue(java.lang.String name,
double value)
Sets the current value of the double preference with the
given name. |
void |
setValue(java.lang.String name,
float value)
Sets the current value of the float preference with the
given name. |
void |
setValue(java.lang.String name,
int value)
Sets the current value of the int preference with the
given name. |
void |
setValue(java.lang.String name,
long value)
Sets the current value of the long preference with the
given name. |
void |
setValue(java.lang.String name,
java.lang.String value)
Sets the current value of the String preference with the
given name. |
| Field Detail |
|---|
static final boolean BOOLEAN_DEFAULT
boolean preference
static final int INT_DEFAULT
int preference
static final long LONG_DEFAULT
long preference
static final java.lang.String STRING_DEFAULT
String preference
static final float FLOAT_DEFAULT
float preference
static final double DOUBLE_DEFAULT
double preference
static final java.lang.String TRUE
true
static final java.lang.String FALSE
false
| Method Detail |
|---|
boolean getDefaultBoolean(java.lang.String name)
boolean preference with
the given name.
int getDefaultInt(java.lang.String name)
int preference with the
given name.
long getDefaultLong(java.lang.String name)
long preference with the
given name.
java.lang.String getDefaultString(java.lang.String name)
String preference with
the given name.
double getDefaultDouble(java.lang.String name)
double preference with
the given name.
float getDefaultFloat(java.lang.String name)
float preference with
the given name.
void setDefault(java.lang.String name,
boolean value)
boolean preference with the
given name.
void setDefault(java.lang.String name,
int value)
int preference with the
given name.
void setDefault(java.lang.String name,
long value)
long preference with the
given name.
void setDefault(java.lang.String name,
java.lang.String value)
string preference with the
given name.
void setDefault(java.lang.String name,
float value)
float preference with the
given name.
void setDefault(java.lang.String name,
double value)
double preference with the
given name.
boolean getBoolean(java.lang.String name)
boolean preference with the given
name. Returns the predefined default value in case if there is no
preference with the given name, or if the current value cannot be treated
as a boolean.
int getInt(java.lang.String name)
int preference with the given
name. Returns the predefined default value in case if there is no
preference with the given name, or if the current value cannot be treated
as a int.
long getLong(java.lang.String name)
long preference with the given
name. Returns the predefined default value in case if there is no
preference with the given name, or if the current value cannot be treated
as a long.
java.lang.String getString(java.lang.String name)
String preference with the given
name. Returns the predefined default value in case if there is no
preference with the given name, or if the current value cannot be treated
as a String.
float getFloat(java.lang.String name)
float preference with the given
name. Returns the predefined default value in case if there is no
preference with the given name, or if the current value cannot be treated
as a float.
double getDouble(java.lang.String name)
double preference with the given
name. Returns the predefined default value in case if there is no
preference with the given name, or if the current value cannot be treated
as a double.
void setValue(java.lang.String name,
boolean value)
boolean preference with the
given name. A preference change event is reported if the current value of
the preference changes from its previous value.
void setValue(java.lang.String name,
int value)
int preference with the
given name. A preference change event is reported if the current value of
the preference changes from its previous value.
void setValue(java.lang.String name,
long value)
long preference with the
given name. A preference change event is reported if the current value of
the preference changes from its previous value.
void setValue(java.lang.String name,
java.lang.String value)
String preference with the
given name. A preference change event is reported if the current value of
the preference changes from its previous value.
void setValue(java.lang.String name,
float value)
float preference with the
given name. A preference change event is reported if the current value of
the preference changes from its previous value.
void setValue(java.lang.String name,
double value)
double preference with the
given name. A preference change event is reported if the current value of
the preference changes from its previous value.
void addPreferenceChangeListener(IPreferenceChangeListener listener)
listener - a preference change listenervoid removePreferenceChangeListener(IPreferenceChangeListener listener)
void putValue(java.lang.String name,
java.lang.String value)
java.lang.String[] getAdvancedProperties()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||