|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectde.unikassel.android.sdcframework.preferences.SensorDevicePreferencesImpl
public final class SensorDevicePreferencesImpl
| Field Summary | |
|---|---|
private SensorDeviceIdentifier |
deviceID
The device identifier |
private SinglePreference<Boolean> |
enabledPreference
The enabled preference |
private SinglePreference<Integer> |
frequencyPreference
The frequency preference |
static String |
KEY_APPENDIX
The preference screen key for the device |
private SinglePreference<SensorDevicePriorities> |
priorityPreference
The priority preference |
| Constructor Summary | |
|---|---|
SensorDevicePreferencesImpl(SensorDeviceIdentifier deviceID)
Constructor |
|
| Method Summary | |
|---|---|
SensorDeviceConfiguration |
getConfiguration(SharedPreferences sharedPreferences)
Getter for the current value in the shared preferences |
SensorDeviceConfiguration |
getDefault()
Getter for the default value |
SensorDeviceIdentifier |
getDeviceIdentifier()
Getter for the device identifier |
SinglePreference<Boolean> |
getEnabledPreference()
Getter for the enabled flag preference |
SinglePreference<Integer> |
getFrequencyPreference()
Getter for the frequency preference |
String |
getKey()
Getter for the preference key |
SinglePreference<SensorDevicePriorities> |
getPriorityPreference()
Getter for the priority preference |
void |
setDefault(SensorDeviceConfiguration defaultValue)
Setter for the default value |
private void |
setDeviceIdentifier(SensorDeviceIdentifier identifier)
Setter for the device identifier |
boolean |
testForKey(String key)
Method to test for a preferences key support |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String KEY_APPENDIX
private SensorDeviceIdentifier deviceID
private final SinglePreference<Integer> frequencyPreference
private final SinglePreference<SensorDevicePriorities> priorityPreference
private final SinglePreference<Boolean> enabledPreference
| Constructor Detail |
|---|
public SensorDevicePreferencesImpl(SensorDeviceIdentifier deviceID)
deviceID - the device identifier| Method Detail |
|---|
public final SinglePreference<Integer> getFrequencyPreference()
SensorDevicePreferences
getFrequencyPreference in interface SensorDevicePreferencespublic final SinglePreference<SensorDevicePriorities> getPriorityPreference()
SensorDevicePreferences
getPriorityPreference in interface SensorDevicePreferencespublic final SinglePreference<Boolean> getEnabledPreference()
SensorDevicePreferences
getEnabledPreference in interface SensorDevicePreferencespublic final SensorDeviceConfiguration getConfiguration(SharedPreferences sharedPreferences)
SinglePreference
getConfiguration in interface SinglePreference<SensorDeviceConfiguration>sharedPreferences - the shared application preferences
public final SensorDeviceIdentifier getDeviceIdentifier()
SensorDevicePreferences
getDeviceIdentifier in interface SensorDevicePreferencesprivate final void setDeviceIdentifier(SensorDeviceIdentifier identifier)
identifier - the device identifierpublic final String getKey()
SinglePreference
getKey in interface SinglePreference<SensorDeviceConfiguration>public final SensorDeviceConfiguration getDefault()
SinglePreference
getDefault in interface SinglePreference<SensorDeviceConfiguration>public final void setDefault(SensorDeviceConfiguration defaultValue)
SinglePreference
setDefault in interface SinglePreference<SensorDeviceConfiguration>defaultValue - the default value to setpublic boolean testForKey(String key)
SinglePreference
testForKey in interface SinglePreference<SensorDeviceConfiguration>key - the key to test for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||