|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vfny.geoserver.control.internal.PreferenceStoreImpl
public class PreferenceStoreImpl
NOT API. Default implementation that backs onto a IPreferenceStoreStrategy.
| Constructor Summary | |
|---|---|
PreferenceStoreImpl(IPreferenceStoreStrategy store)
|
|
| 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. |
IValidator |
getValidator()
|
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 |
setValidator(IValidator validator)
|
void |
unset(java.lang.String key)
Clears the preference so the default is used. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PreferenceStoreImpl(IPreferenceStoreStrategy store)
| Method Detail |
|---|
public IValidator getValidator()
public void setValidator(IValidator validator)
public boolean getBoolean(java.lang.String key)
IPreferenceStore
getBoolean in interface IPreferenceStorekey - indicates the preference to return.
public char getChar(java.lang.String key)
IPreferenceStore
getChar in interface IPreferenceStorekey - indicates the preference to return.
public double getDouble(java.lang.String key)
IPreferenceStore
getDouble in interface IPreferenceStorekey - indicates the preference to return.
public float getFloat(java.lang.String key)
IPreferenceStore
getFloat in interface IPreferenceStorekey - indicates the preference to return.
public int getInt(java.lang.String key)
IPreferenceStore
getInt in interface IPreferenceStorekey - indicates the preference to return.
public long getLong(java.lang.String key)
IPreferenceStore
getLong in interface IPreferenceStorekey - indicates the preference to return.
public java.lang.String getString(java.lang.String key)
IPreferenceStore
getString in interface IPreferenceStorekey - indicates the preference to return.
public void set(java.lang.String key,
java.lang.String value)
IPreferenceStore
set in interface IPreferenceStorekey - the preference to set.value - the new value
public void set(java.lang.String key,
int value)
IPreferenceStore
set in interface IPreferenceStorekey - the preference to set.value - the new value
public void set(java.lang.String key,
float value)
IPreferenceStore
set in interface IPreferenceStorekey - the preference to set.value - the new value
public void set(java.lang.String key,
boolean value)
IPreferenceStore
set in interface IPreferenceStorekey - the preference to set.value - the new value
public void set(java.lang.String key,
char value)
IPreferenceStore
set in interface IPreferenceStorekey - the preference to set.value - the new value
public void set(java.lang.String key,
double value)
IPreferenceStore
set in interface IPreferenceStorekey - the preference to set.value - the new value
public void set(java.lang.String key,
long value)
IPreferenceStore
set in interface IPreferenceStorekey - the preference to set.value - the new valuepublic void unset(java.lang.String key)
IPreferenceStore
unset in interface IPreferenceStorekey - the preference key;
public void setDefault(java.lang.String key,
java.lang.String value)
IPreferenceStore
setDefault in interface IPreferenceStorekey - the preference to set.value - the new default value
public void setDefault(java.lang.String key,
int value)
IPreferenceStore
setDefault in interface IPreferenceStorekey - the preference to set.value - the new default value
public void setDefault(java.lang.String key,
float value)
IPreferenceStore
setDefault in interface IPreferenceStorekey - the preference to set.value - the new default value
public void setDefault(java.lang.String key,
boolean value)
IPreferenceStore
setDefault in interface IPreferenceStorekey - the preference to set.value - the new default value
public void setDefault(java.lang.String key,
char value)
IPreferenceStore
setDefault in interface IPreferenceStorekey - the preference to set.value - the new default value
public void setDefault(java.lang.String key,
double value)
IPreferenceStore
setDefault in interface IPreferenceStorekey - the preference to set.value - the new default value
public void setDefault(java.lang.String key,
long value)
IPreferenceStore
setDefault in interface IPreferenceStorekey - the preference to set.value - the new default valuepublic java.lang.String[] keys()
IPreferenceStore
keys in interface IPreferenceStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||