Class MetisPreferenceManager
java.lang.Object
io.github.tonywasher.joceanus.metis.preference.MetisPreferenceManager
- All Implemented Interfaces:
MetisDataItem.MetisDataObjectFormat,MetisFieldItem,OceanusEventRegistrar.OceanusEventProvider<MetisPreferenceEvent>
- Direct Known Subclasses:
PrometheusPreferenceManager
public class MetisPreferenceManager
extends Object
implements MetisFieldItem, OceanusEventRegistrar.OceanusEventProvider<MetisPreferenceEvent>
Manager class for preference sets.
- Author:
- Tony Washer
-
Nested Class Summary
Nested 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatObject(OceanusDataFormatter pFormatter) Obtain Object summary.Obtain the fieldSet.Obtain registration object for listeners.protected MetisPreferenceParamsObtain the parameters.<X extends MetisPreferenceSet>
XgetPreferenceSet(Class<X> pClazz) Obtain the preference set for the calling class.Obtain the collection of preference sets.protected <X extends MetisPreferenceSet>
XnewPreferenceSet(String pName, Class<X> pClazz) Create a new preferenceSet.protected voidsetParameters(MetisPreferenceParams pParams) Set the parameters.
-
Constructor Details
-
MetisPreferenceManager
Constructor.- Parameters:
pViewer- the viewer manager- Throws:
OceanusException- on error
-
-
Method Details
-
getDataFieldSet
Description copied from interface:MetisFieldItemObtain the fieldSet.- Specified by:
getDataFieldSetin interfaceMetisFieldItem- Returns:
- the fieldSet
-
formatObject
Description copied from interface:MetisDataItem.MetisDataObjectFormatObtain Object summary.- Specified by:
formatObjectin interfaceMetisDataItem.MetisDataObjectFormat- Parameters:
pFormatter- the data formatter- Returns:
- the display summary of the object
-
getEventRegistrar
Description copied from interface:OceanusEventRegistrar.OceanusEventProviderObtain registration object for listeners.- Specified by:
getEventRegistrarin interfaceOceanusEventRegistrar.OceanusEventProvider<MetisPreferenceEvent>- Returns:
- the registrar
-
getParameters
Obtain the parameters.- Returns:
- the parameters
-
setParameters
Set the parameters.- Parameters:
pParams- the parameters
-
getPreferenceSets
Obtain the collection of preference sets.- Returns:
- the preference sets
-
getPreferenceSet
Obtain the preference set for the calling class.- Type Parameters:
X- the preference set type- Parameters:
pClazz- the class of the preference set- Returns:
- the relevant preferenceSet
-
newPreferenceSet
Create a new preferenceSet.- Type Parameters:
X- the preference set type- Parameters:
pName- the name of the preference setpClazz- the class of the preference set- Returns:
- the new preferenceSet
-