Class MetisPreferenceSet.MetisEnumPreference<E extends Enum<E>>
java.lang.Object
io.github.tonywasher.joceanus.metis.preference.MetisPreferenceSet.MetisPreferenceItem
io.github.tonywasher.joceanus.metis.preference.MetisPreferenceSet.MetisEnumPreference<E>
- Type Parameters:
E- the Enum type
- Enclosing class:
MetisPreferenceSet
public static class MetisPreferenceSet.MetisEnumPreference<E extends Enum<E>>
extends MetisPreferenceSet.MetisPreferenceItem
Enum preference.
-
Constructor Summary
ConstructorsConstructorDescriptionMetisEnumPreference(MetisPreferenceSet pSet, MetisPreferenceKey pKey, Class<E> pClazz) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionObtain the filter.getValue()Obtain the value of the preference.E[]Obtain the values of the preference.voidSet filter.voidSet value.final voidSet 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
-
MetisEnumPreference
Constructor.- Parameters:
pSet- the preference SetpKey- the key of the preferencepClazz- the class 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
-
getValues
Obtain the values of the preference.- Returns:
- the values of the preference
-
getFilter
Obtain the filter.- Returns:
- the filter
-
setValue
Set value.- Parameters:
pNewValue- the new value
-
setValue
Set value.- Parameters:
pNewValue- the new value
-
setFilter
Set filter.- Parameters:
pFilter- the new filter
-
storeThePreference
Description copied from class:MetisPreferenceSet.MetisPreferenceItemStore the value of the preference.- Specified by:
storeThePreferencein classMetisPreferenceSet.MetisPreferenceItem- Parameters:
pNewValue- the new value to store
-