Class PrometheusPreferenceSet
java.lang.Object
io.github.tonywasher.joceanus.metis.preference.MetisPreferenceSet
io.github.tonywasher.joceanus.prometheus.preference.PrometheusPreferenceSet
- All Implemented Interfaces:
MetisDataItem.MetisDataObjectFormat,MetisFieldItem,OceanusEventRegistrar.OceanusEventProvider<MetisPreferenceEvent>
- Direct Known Subclasses:
PrometheusDatabase.PrometheusDatabasePreferences,PrometheusPreferenceSecurity.PrometheusBaseSecurityPreferences,PrometheusPreferenceSecurity.PrometheusSecurityPreferences
Prometheus PreferenceSet.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classByteArray preference.static classCharArray preference.Nested classes/interfaces inherited from class io.github.tonywasher.joceanus.metis.preference.MetisPreferenceSet
MetisPreferenceSet.MetisBooleanPreference, MetisPreferenceSet.MetisDatePreference, MetisPreferenceSet.MetisEnumPreference<E extends Enum<E>>, MetisPreferenceSet.MetisIntegerPreference, MetisPreferenceSet.MetisPreferenceItem, MetisPreferenceSet.MetisStringPreferenceNested classes/interfaces inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldItem
MetisFieldItem.MetisFieldDef, MetisFieldItem.MetisFieldItemType, MetisFieldItem.MetisFieldSetCtl<T extends MetisFieldItem>, MetisFieldItem.MetisFieldSetDef, MetisFieldItem.MetisFieldTableItem, MetisFieldItem.MetisFieldVersionedDef -
Field Summary
Fields inherited from class io.github.tonywasher.joceanus.metis.preference.MetisPreferenceSet
ERROR_INVALID, ERROR_UNKNOWN -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPrometheusPreferenceSet(MetisPreferenceParams pParams, OceanusBundleId pId) Constructor.protectedPrometheusPreferenceSet(MetisPreferenceParams pParams, String pName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionDefine new ByteArray preference.Define new CharArray preference.protected MetisViewerEntrydefineViewerEntry(MetisPreferenceParams pParams) Process parameters.Obtain ByteArray preference.byte[]Obtain ByteArray value.Obtain CharArray preference.char[]Obtain CharArray value.Obtain the encryptor.Methods inherited from class io.github.tonywasher.joceanus.metis.preference.MetisPreferenceSet
autoCorrectPreferences, checkExists, defineBooleanPreference, defineColorPreference, defineDatePreference, defineDirectoryPreference, defineEnumPreference, defineFilePreference, defineIntegerPreference, definePreference, definePreferences, defineStringPreference, formatObject, getBooleanPreference, getBooleanValue, getDataFieldSet, getDatePreference, getDateValue, getEnumPreference, getEnumValue, getEventRegistrar, getIntegerPreference, getIntegerValue, getName, getPreference, getPreference, getPreferences, getStringPreference, getStringValue, hasChanges, isHidden, resetChanges, setFocus, setHidden, storeChanges, updateViewerEntry
-
Constructor Details
-
PrometheusPreferenceSet
protected PrometheusPreferenceSet(MetisPreferenceParams pParams, OceanusBundleId pId) throws OceanusException Constructor.- Parameters:
pParams- the parameterspId- the Id- Throws:
OceanusException- on error
-
PrometheusPreferenceSet
protected PrometheusPreferenceSet(MetisPreferenceParams pParams, String pName) throws OceanusException Constructor.- Parameters:
pParams- the parameterspName- the name- Throws:
OceanusException- on error
-
-
Method Details
-
defineViewerEntry
Description copied from class:MetisPreferenceSetProcess parameters.- Overrides:
defineViewerEntryin classMetisPreferenceSet- Parameters:
pParams- the parameters- Returns:
- the viewer entry
-
getEncryptor
Obtain the encryptor.- Returns:
- the encryptor
-
defineByteArrayPreference
protected PrometheusPreferenceSet.PrometheusByteArrayPreference defineByteArrayPreference(MetisPreferenceKey pKey) Define new ByteArray preference.- Parameters:
pKey- the key for the preference- Returns:
- the preference item
-
defineCharArrayPreference
protected PrometheusPreferenceSet.PrometheusCharArrayPreference defineCharArrayPreference(MetisPreferenceKey pKey) throws OceanusException Define new CharArray preference.- Parameters:
pKey- the key for the preference- Returns:
- the preference item
- Throws:
OceanusException- on error
-
getByteArrayPreference
public PrometheusPreferenceSet.PrometheusByteArrayPreference getByteArrayPreference(MetisPreferenceKey pKey) Obtain ByteArray preference.- Parameters:
pKey- the key of the preference- Returns:
- the ByteArray preference
-
getByteArrayValue
Obtain ByteArray value.- Parameters:
pKey- the key of the preference- Returns:
- the ByteArray value
-
getCharArrayPreference
public PrometheusPreferenceSet.PrometheusCharArrayPreference getCharArrayPreference(MetisPreferenceKey pKey) Obtain CharArray preference.- Parameters:
pKey- the key of the preference- Returns:
- the CharArray preference
-
getCharArrayValue
Obtain CharArray value.- Parameters:
pKey- the key of the preference- Returns:
- the CharArray value
-