Class MetisPreferenceSet.MetisDatePreference
java.lang.Object
io.github.tonywasher.joceanus.metis.preference.MetisPreferenceSet.MetisPreferenceItem
io.github.tonywasher.joceanus.metis.preference.MetisPreferenceSet.MetisDatePreference
- Enclosing class:
MetisPreferenceSet
public static class MetisPreferenceSet.MetisDatePreference
extends MetisPreferenceSet.MetisPreferenceItem
Date preference.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMetisDatePreference(MetisPreferenceSet pSet, MetisPreferenceKey pKey) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Obtain the value of the preference.voidsetValue(OceanusDate pNewValue) Set value.protected voidstoreThePreference(Object pNewValue) Store the value of the preference.Methods inherited from class io.github.tonywasher.joceanus.metis.preference.MetisPreferenceSet.MetisPreferenceItem
getDisplay, getHandle, getKey, getPreferenceName, getSet, getType, getViewerValue, isAvailable, isChanged, isHidden, setHidden, setNewValue, setTheValue
-
Constructor Details
-
MetisDatePreference
Constructor.- Parameters:
pSet- the preference SetpKey- the key of the preference
-
-
Method Details
-
getValue
Description copied from class:MetisPreferenceSet.MetisPreferenceItemObtain the value of the preference.- Overrides:
getValuein classMetisPreferenceSet.MetisPreferenceItem- Returns:
- the value of the preference
-
setValue
Set value.- Parameters:
pNewValue- the new value
-
storeThePreference
Description copied from class:MetisPreferenceSet.MetisPreferenceItemStore the value of the preference.- Specified by:
storeThePreferencein classMetisPreferenceSet.MetisPreferenceItem- Parameters:
pNewValue- the new value to store
-