Class MetisPreferenceView
java.lang.Object
io.github.tonywasher.joceanus.metis.ui.MetisPreferenceView
- All Implemented Interfaces:
OceanusEventRegistrar.OceanusEventProvider<MetisPreferenceEvent>,TethysUIComponent
- Direct Known Subclasses:
PrometheusPreferenceView
public class MetisPreferenceView
extends Object
implements OceanusEventRegistrar.OceanusEventProvider<MetisPreferenceEvent>, TethysUIComponent
Panel for editing preference Sets.
-
Constructor Summary
ConstructorsConstructorDescriptionMetisPreferenceView(TethysUIFactory<?> pFactory, MetisPreferenceManager pPreferenceMgr) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected MetisPreferenceSetViewcreateView(TethysUIFactory<?> pFactory, MetisPreferenceSet pSet) Create view for preference.voidDetermine Focus.Obtain registration object for listeners.Obtain the underlying component (if any).booleanHas this set of panels got the session focus?booleanDoes the panel have unsaved updates?Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.tonywasher.joceanus.tethys.api.base.TethysUIComponent
getBorderPadding, getBorderTitle, getId, getNode, setBorderPadding, setBorderTitle, setEnabled, setPreferredHeight, setPreferredWidth, setVisible
-
Constructor Details
-
MetisPreferenceView
Constructor.- Parameters:
pFactory- the GUI factorypPreferenceMgr- the preference manager
-
-
Method Details
-
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
-
createView
Create view for preference.- Parameters:
pFactory- the gui factorypSet- the set to register- Returns:
- the view
-
determineFocus
public void determineFocus()Determine Focus. -
hasUpdates
public boolean hasUpdates()Does the panel have unsaved updates?- Returns:
- true/false
-
hasSession
public boolean hasSession()Has this set of panels got the session focus?- Returns:
- true/false
-