|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPreferenceStore
An interface for obtaining and setting preferences. A default value may be optionally set.
| Method Summary | |
|---|---|
boolean |
getBoolean(java.lang.String key)
Returns the preference as a boolean. |
char |
getChar(java.lang.String key)
Returns the preference as a char. |
double |
getDouble(java.lang.String key)
Returns the preference as a double. |
float |
getFloat(java.lang.String key)
Returns the preference as a float. |
int |
getInt(java.lang.String key)
Returns the preference as an integer. |
long |
getLong(java.lang.String key)
Returns the preference as a long. |
java.lang.String |
getString(java.lang.String key)
Returns the preference as a string. |
java.lang.String[] |
keys()
Returns all the keys of the existing preferences |
void |
set(java.lang.String key,
boolean value)
Sets the preference to value. |
void |
set(java.lang.String key,
char value)
Sets the preference to value. |
void |
set(java.lang.String key,
double value)
Sets the preference to value. |
void |
set(java.lang.String key,
float value)
Sets the preference to value. |
void |
set(java.lang.String key,
int value)
Sets the preference to value. |
void |
set(java.lang.String key,
long value)
Sets the preference to value. |
void |
set(java.lang.String key,
java.lang.String value)
Sets the preference to value. |
void |
setDefault(java.lang.String key,
boolean value)
Sets the default for the preference to value. |
void |
setDefault(java.lang.String key,
char value)
Sets the default for the preference to value. |
void |
setDefault(java.lang.String key,
double value)
Sets the default for the preference to value. |
void |
setDefault(java.lang.String key,
float value)
Sets the default for the preference to value. |
void |
setDefault(java.lang.String key,
int value)
Sets the default for the preference to value. |
void |
setDefault(java.lang.String key,
long value)
Sets the default for the preference to value. |
void |
setDefault(java.lang.String key,
java.lang.String value)
Sets the default for the preference to value. |
void |
unset(java.lang.String key)
Clears the preference so the default is used. |
| Method Detail |
|---|
java.lang.String getString(java.lang.String key)
key - indicates the preference to return.
int getInt(java.lang.String key)
key - indicates the preference to return.
float getFloat(java.lang.String key)
key - indicates the preference to return.
boolean getBoolean(java.lang.String key)
key - indicates the preference to return.
char getChar(java.lang.String key)
key - indicates the preference to return.
double getDouble(java.lang.String key)
key - indicates the preference to return.
long getLong(java.lang.String key)
key - indicates the preference to return.
void set(java.lang.String key,
java.lang.String value)
key - the preference to set.value - the new value
void set(java.lang.String key,
int value)
key - the preference to set.value - the new value
void set(java.lang.String key,
float value)
key - the preference to set.value - the new value
void set(java.lang.String key,
boolean value)
key - the preference to set.value - the new value
void set(java.lang.String key,
char value)
key - the preference to set.value - the new value
void set(java.lang.String key,
double value)
key - the preference to set.value - the new value
void set(java.lang.String key,
long value)
key - the preference to set.value - the new valuevoid unset(java.lang.String key)
key - the preference key;
void setDefault(java.lang.String key,
java.lang.String value)
key - the preference to set.value - the new default value
void setDefault(java.lang.String key,
int value)
key - the preference to set.value - the new default value
void setDefault(java.lang.String key,
float value)
key - the preference to set.value - the new default value
void setDefault(java.lang.String key,
boolean value)
key - the preference to set.value - the new default value
void setDefault(java.lang.String key,
char value)
key - the preference to set.value - the new default value
void setDefault(java.lang.String key,
double value)
key - the preference to set.value - the new default value
void setDefault(java.lang.String key,
long value)
key - the preference to set.value - the new default valuejava.lang.String[] keys()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||