|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.preference.PreferenceStoreProxy
public abstract class PreferenceStoreProxy
| Field Summary | |
|---|---|
protected IPreferenceStore |
store
|
| Fields inherited from interface megamek.common.preference.IPreferenceStore |
|---|
BOOLEAN_DEFAULT, DOUBLE_DEFAULT, FALSE, FLOAT_DEFAULT, INT_DEFAULT, LONG_DEFAULT, STRING_DEFAULT, TRUE |
| Constructor Summary | |
|---|---|
PreferenceStoreProxy()
|
|
| Method Summary | |
|---|---|
void |
addPreferenceChangeListener(IPreferenceChangeListener listener)
Adds a preference change listener to this store. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface megamek.common.preference.IPreferenceStore |
|---|
getAdvancedProperties |
| Field Detail |
|---|
protected IPreferenceStore store
| Constructor Detail |
|---|
public PreferenceStoreProxy()
| Method Detail |
|---|
public boolean getDefaultBoolean(java.lang.String name)
IPreferenceStoreboolean preference with
the given name.
getDefaultBoolean in interface IPreferenceStorepublic int getDefaultInt(java.lang.String name)
IPreferenceStoreint preference with the
given name.
getDefaultInt in interface IPreferenceStorepublic long getDefaultLong(java.lang.String name)
IPreferenceStorelong preference with the
given name.
getDefaultLong in interface IPreferenceStorepublic java.lang.String getDefaultString(java.lang.String name)
IPreferenceStoreString preference with
the given name.
getDefaultString in interface IPreferenceStorepublic double getDefaultDouble(java.lang.String name)
IPreferenceStoredouble preference with
the given name.
getDefaultDouble in interface IPreferenceStorepublic float getDefaultFloat(java.lang.String name)
IPreferenceStorefloat preference with
the given name.
getDefaultFloat in interface IPreferenceStorepublic boolean getBoolean(java.lang.String name)
IPreferenceStoreboolean 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.
getBoolean in interface IPreferenceStorepublic int getInt(java.lang.String name)
IPreferenceStoreint 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.
getInt in interface IPreferenceStorepublic long getLong(java.lang.String name)
IPreferenceStorelong 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.
getLong in interface IPreferenceStorepublic float getFloat(java.lang.String name)
IPreferenceStorefloat 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.
getFloat in interface IPreferenceStorepublic double getDouble(java.lang.String name)
IPreferenceStoredouble 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.
getDouble in interface IPreferenceStorepublic java.lang.String getString(java.lang.String name)
IPreferenceStoreString 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.
getString in interface IPreferenceStore
public void putValue(java.lang.String name,
java.lang.String value)
IPreferenceStore
putValue in interface IPreferenceStore
public void setDefault(java.lang.String name,
boolean value)
IPreferenceStoreboolean preference with the
given name.
setDefault in interface IPreferenceStore
public void setDefault(java.lang.String name,
int value)
IPreferenceStoreint preference with the
given name.
setDefault in interface IPreferenceStore
public void setDefault(java.lang.String name,
long value)
IPreferenceStorelong preference with the
given name.
setDefault in interface IPreferenceStore
public void setDefault(java.lang.String name,
float value)
IPreferenceStorefloat preference with the
given name.
setDefault in interface IPreferenceStore
public void setDefault(java.lang.String name,
double value)
IPreferenceStoredouble preference with the
given name.
setDefault in interface IPreferenceStore
public void setDefault(java.lang.String name,
java.lang.String value)
IPreferenceStorestring preference with the
given name.
setDefault in interface IPreferenceStore
public void setValue(java.lang.String name,
boolean value)
IPreferenceStoreboolean preference with the
given name. A preference change event is reported if the current value of
the preference changes from its previous value.
setValue in interface IPreferenceStore
public void setValue(java.lang.String name,
int value)
IPreferenceStoreint preference with the
given name. A preference change event is reported if the current value of
the preference changes from its previous value.
setValue in interface IPreferenceStore
public void setValue(java.lang.String name,
long value)
IPreferenceStorelong preference with the
given name. A preference change event is reported if the current value of
the preference changes from its previous value.
setValue in interface IPreferenceStore
public void setValue(java.lang.String name,
float value)
IPreferenceStorefloat preference with the
given name. A preference change event is reported if the current value of
the preference changes from its previous value.
setValue in interface IPreferenceStore
public void setValue(java.lang.String name,
double value)
IPreferenceStoredouble preference with the
given name. A preference change event is reported if the current value of
the preference changes from its previous value.
setValue in interface IPreferenceStore
public void setValue(java.lang.String name,
java.lang.String value)
IPreferenceStoreString preference with the
given name. A preference change event is reported if the current value of
the preference changes from its previous value.
setValue in interface IPreferenceStorepublic void addPreferenceChangeListener(IPreferenceChangeListener listener)
IPreferenceStore
addPreferenceChangeListener in interface IPreferenceStorelistener - a preference change listenerpublic void removePreferenceChangeListener(IPreferenceChangeListener listener)
IPreferenceStore
removePreferenceChangeListener in interface IPreferenceStore
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||