|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPreference
FloatPreference
public class FloatPreference
A float in a preference node.
| Field Summary |
|---|
| Fields inherited from class Preference |
|---|
key, preferences |
| Constructor Summary | |
|---|---|
FloatPreference(Preferences preferences,
String key,
float def)
Creates a FloatPreference. |
|
| Method Summary | |
|---|---|
float |
get()
Retrieves the value of this preference from storage. |
float |
getDefault()
Returns the default value of this preference. |
void |
put(float value)
Stores a new value for the preference. |
void |
setDefault(float newDefault)
Sets the default value, per getDefault(). |
| Methods inherited from class Preference |
|---|
key, preferences, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FloatPreference(Preferences preferences,
String key,
float def)
preferences - per preferences()key - per key()def - default per getDefault()| Method Detail |
|---|
public float get()
public float getDefault()
public void setDefault(float newDefault)
public void put(float value)
value - new value of the preference
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||