Class MetisPreferenceSetView
java.lang.Object
io.github.tonywasher.joceanus.metis.ui.MetisPreferenceSetView
- All Implemented Interfaces:
OceanusEventRegistrar.OceanusEventProvider<MetisPreferenceEvent>,TethysUIComponent
- Direct Known Subclasses:
PrometheusPreferenceSetView
public class MetisPreferenceSetView
extends Object
implements OceanusEventRegistrar.OceanusEventProvider<MetisPreferenceEvent>, TethysUIComponent
Panel for editing a preference Set.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfacePreferenceElement. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMetisPreferenceSetView(TethysUIFactory<?> pFactory, MetisPreferenceSet pPreferenceSet) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected MetisPreferenceSetView.PreferenceElementAllocate element.protected voidDetermine Focus.Obtain registration object for listeners.protected TethysUIFactory<?> Obtain the GUI factory.protected TethysUIGridPaneManagergetGrid()Obtain the grid.Obtain the underlying component (if any).(package private) booleanDoes the Preference Set have changes.protected voidNotify changes.(package private) voidReset changes.(package private) voidStore changes.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.tonywasher.joceanus.tethys.api.base.TethysUIComponent
getBorderPadding, getBorderTitle, getId, getNode, setBorderPadding, setBorderTitle, setEnabled, setPreferredHeight, setPreferredWidth, setVisible
-
Field Details
-
STR_COLON
Colon String.- See Also:
-
-
Constructor Details
-
MetisPreferenceSetView
Constructor.- Parameters:
pFactory- the GUI factorypPreferenceSet- the preference set
-
-
Method Details
-
getFactory
Obtain the GUI factory.- Returns:
- the factory
-
getGrid
Obtain the grid.- Returns:
- the grid
-
toString
-
getUnderlying
Description copied from interface:TethysUIComponentObtain the underlying component (if any).- Specified by:
getUnderlyingin interfaceTethysUIComponent- Returns:
- the underlying component
-
getEventRegistrar
Description copied from interface:OceanusEventRegistrar.OceanusEventProviderObtain registration object for listeners.- Specified by:
getEventRegistrarin interfaceOceanusEventRegistrar.OceanusEventProvider<MetisPreferenceEvent>- Returns:
- the registrar
-
hasChanges
boolean hasChanges()Does the Preference Set have changes.- Returns:
- does the set have changes
-
resetChanges
void resetChanges()Reset changes. -
storeChanges
Store changes.- Throws:
OceanusException- on error
-
notifyChanges
protected void notifyChanges()Notify changes. -
allocatePreferenceElement
protected MetisPreferenceSetView.PreferenceElement allocatePreferenceElement(MetisPreferenceSet.MetisPreferenceItem pItem) Allocate element.- Parameters:
pItem- the preference item- Returns:
- the element
-
determineFocus
protected void determineFocus()Determine Focus.
-