Class MetisErrorPanel
java.lang.Object
io.github.tonywasher.joceanus.metis.ui.MetisErrorPanel
- All Implemented Interfaces:
OceanusEventRegistrar.OceanusEventProvider<MetisUIEvent>,TethysUIComponent
public class MetisErrorPanel
extends Object
implements OceanusEventRegistrar.OceanusEventProvider<MetisUIEvent>, TethysUIComponent
Error panel.
-
Constructor Summary
ConstructorsConstructorDescriptionMetisErrorPanel(TethysUIFactory<?> pFactory, MetisViewerManager pViewerMgr, MetisViewerEntry pParent) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddError(OceanusException pException) Set error indication for window.Obtain registration object for listeners.Obtain the underlying component (if any).booleanhasError()Do we have an error?voidsetEnabled(boolean bEnabled) Set Enabled status.voidsetErrors(MetisViewerErrorList pExceptions) Set error list.voidshowValidateError(String pError) Show validation error.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, setPreferredHeight, setPreferredWidth, setVisible
-
Constructor Details
-
MetisErrorPanel
public MetisErrorPanel(TethysUIFactory<?> pFactory, MetisViewerManager pViewerMgr, MetisViewerEntry pParent) Constructor.- Parameters:
pFactory- the GUI factorypViewerMgr- the Viewer managerpParent- the parent viewer entry
-
-
Method Details
-
getEventRegistrar
Description copied from interface:OceanusEventRegistrar.OceanusEventProviderObtain registration object for listeners.- Specified by:
getEventRegistrarin interfaceOceanusEventRegistrar.OceanusEventProvider<MetisUIEvent>- Returns:
- the registrar
-
getUnderlying
Description copied from interface:TethysUIComponentObtain the underlying component (if any).- Specified by:
getUnderlyingin interfaceTethysUIComponent- Returns:
- the underlying component
-
setEnabled
public void setEnabled(boolean bEnabled) Description copied from interface:TethysUIComponentSet Enabled status.- Specified by:
setEnabledin interfaceTethysUIComponent- Parameters:
bEnabled- true/false
-
hasError
public boolean hasError()Do we have an error?- Returns:
- true/false
-
addError
Set error indication for window.- Parameters:
pException- the exception
-
showValidateError
Show validation error.- Parameters:
pError- the error message
-
setErrors
Set error list.- Parameters:
pExceptions- the error list
-