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.MetisPreferenceId, MetisPreferenceSet.MetisPreferenceItem, MetisPreferenceSet.MetisStringPreferenceNested classes/interfaces inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldItem
MetisFieldItem.MetisFieldDef, MetisFieldItem.MetisFieldItemType, MetisFieldItem.MetisFieldSetDef, MetisFieldItem.MetisFieldTableItem, MetisFieldItem.MetisFieldUpdatableItem, MetisFieldItem.MetisFieldVersionedDef -
Field Summary
Fields inherited from class io.github.tonywasher.joceanus.metis.preference.MetisPreferenceSet
ERROR_INVALID, ERROR_UNKNOWN -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPrometheusPreferenceSet(PrometheusPreferenceManager pManager, OceanusBundleId pId) Constructor.protectedPrometheusPreferenceSet(PrometheusPreferenceManager pManager, String pName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionDefine new ByteArray preference.Define new CharArray preference.Obtain ByteArray preference.byte[]Obtain ByteArray value.Obtain CharArray preference.char[]Obtain CharArray value.Obtain the preference manager.Obtain the security.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(PrometheusPreferenceManager pManager, OceanusBundleId pId) throws OceanusException Constructor.- Parameters:
pManager- the preference managerpId- the Id- Throws:
OceanusException- on error
-
PrometheusPreferenceSet
protected PrometheusPreferenceSet(PrometheusPreferenceManager pManager, String pName) throws OceanusException Constructor.- Parameters:
pManager- the preference managerpName- the name- Throws:
OceanusException- on error
-
-
Method Details
-
getPreferenceManager
Description copied from class:MetisPreferenceSetObtain the preference manager.- Overrides:
getPreferenceManagerin classMetisPreferenceSet- Returns:
- the manager
-
getSecurity
Obtain the security.- Returns:
- the security
- Throws:
OceanusException- on error
-
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
-