Class ErrorsUI

This class show a message on the screen

See theErrorsUI for the one and only one instance of this class

Source : file uis/errorsUI/ErrorsUI.js at line 37

Constructor

new ErrorsUI ( )

The constructor

Source : file uis/errorsUI/ErrorsUI.js at line 132

Public methods

createUI ( )

Creates the user interface

Source : file uis/errorsUI/ErrorsUI.js at line 140

showError ( error )

Show an error message ( a white text on a red background )

See theConfig.errorsUI.showError to disable or enable the error messages

Source : file uis/errorsUI/ErrorsUI.js at line 207

Parameters

Name Type Description
error String

The error message to display

showHelp ( help )

Show a help message ( a black text on a white background )

See theConfig.errorsUI.showHelp to disable or enable the help messages and the checkbox in the UI to disable the help

Source : file uis/errorsUI/ErrorsUI.js at line 234

Parameters

Name Type Description
help String

The help message to display

showInfo ( info )

Show an info message ( a black text on a white background )

Source : file uis/errorsUI/ErrorsUI.js at line 224

Parameters

Name Type Description
info String

The info message to display

showWarning ( warning )

Show an warning message ( a black text on an orange background )

See theConfig.errorsUI.showWarning to disable or enable the warning messages

Source : file uis/errorsUI/ErrorsUI.js at line 216

Parameters

Name Type Description
warning String

The warning message to display

Private properties

#currentErrorLevel : String

The error level. Must be 'Info', 'Help', 'Warning' or 'Error'

Source : file uis/errorsUI/ErrorsUI.js at line 79

#hideHelpHTMLElement : HTMLElement

The hide help container

Source : file uis/errorsUI/ErrorsUI.js at line 72

#hideHelpInput : HTMLElement

The hide help input

Source : file uis/errorsUI/ErrorsUI.js at line 65

#mainHTMLElement : HTMLElement

The container

Source : file uis/errorsUI/ErrorsUI.js at line 44

#messageHTMLElement : HTMLElement

The message area

Source : file uis/errorsUI/ErrorsUI.js at line 51

#timerId : Number

A timerId for the close UI timer

Source : file uis/errorsUI/ErrorsUI.js at line 58

Private methods

#hide ( )

Hide the help window

Source : file uis/errorsUI/ErrorsUI.js at line 85

#show ( message, errorLevel )

This method show the windows

Source : file uis/errorsUI/ErrorsUI.js at line 102

Parameters

Name Type Description
message String

The message to be displayed

errorLevel String

The tpe of window to display