Class NoteDialog extends ModalBaseDialog

This class create and manage the NoteDialog

Source : file dialogs/notesDialog/NoteDialog.js at line 52

Constructor

new NoteDialog ( note, route )

The constructor

Source : file dialogs/notesDialog/NoteDialog.js at line 175

Parameters

Name Type Description
note Note

The edited note

route Route

The route to witch the note is linked

Public getters and setters

readonly get contentHTMLElements : Array of HTMLElement

An array with the HTMLElements that have to be added in the content of the dialog. Overload of the BaseDialog.contentHTMLElements property

Source : file dialogs/notesDialog/NoteDialog.js at line 353

get focusControl : HTMLElement

The control that have currently the focus. Used for toolbar buttons

Source : file dialogs/notesDialog/NoteDialog.js at line 244

set focusControl

Source : file dialogs/notesDialog/NoteDialog.js at line 246

readonly get footerHTMLElements : Array of HTMLElement

An array with the HTMLElements that have to be added in the footer of the dialog Overload of the BaseDialog.footerHTMLElements property

Source : file dialogs/notesDialog/NoteDialog.js at line 371

readonly get mapIconData : MapIconData

Data needed for the MapIconFromOsmFactory

Source : file dialogs/notesDialog/NoteDialog.js at line 253

readonly get title : String

The dialog title. Overload of the BaseDialog.title property

Source : file dialogs/notesDialog/NoteDialog.js at line 335

readonly get toolbarHTMLElement : HTMLElement

An HTMLElement that have to be added as toolbar for the dialog. Overload of the BaseDialog.toolbarHTMLElement property

Source : file dialogs/notesDialog/NoteDialog.js at line 343

Public methods

canClose ( )

Overload of the BaseDialog.canClose ( ) method. Verify that the url is valid and the iconContent completed

Source : file dialogs/notesDialog/NoteDialog.js at line 282

Returns

True when the url is valid and the iconContent completed
Type : Boolean

createContentHTML ( )

Create all the controls needed for the dialog. Overload of the base class createContentHTML

Source : file dialogs/notesDialog/NoteDialog.js at line 195

onCancel ( )

Overload of the BaseDialog.onCancel ( ) method.

Source : file dialogs/notesDialog/NoteDialog.js at line 301

onOk ( )

Overload of the BaseDialog.onOk ( ) method.

Source : file dialogs/notesDialog/NoteDialog.js at line 310

setAddress ( )

Set the address of the note. Called by IconSelectorChangeEL

Source : file dialogs/notesDialog/NoteDialog.js at line 271

setControlsValues ( source )

Set the control's values

Source : file dialogs/notesDialog/NoteDialog.js at line 380

Parameters

Name Type Description
source Object

An object with all the properties to update

updatePreview ( noteData )

Update the preview of the note. Used by event listeners

Source : file dialogs/notesDialog/NoteDialog.js at line 260

Parameters

Name Type Description
noteData Object

An object with properties to copy in the preview note

updateToolbar ( )

Update the toolbar after an upload of a config file

Source : file dialogs/notesDialog/NoteDialog.js at line 395

Private properties

#addressControl : AddressControl

The address control

Source : file dialogs/notesDialog/NoteDialog.js at line 108

#eventListeners : NoteDialogEventListeners

Event listeners

Source : file dialogs/notesDialog/NoteDialog.js at line 150

#focusControl : HTMLElement

The control that have currently the focusControl

Source : file dialogs/notesDialog/NoteDialog.js at line 143

#iconControl : TextAreaControl

The icon control

Source : file dialogs/notesDialog/NoteDialog.js at line 87

#iconDimsControl : NoteDialogIconDimsControl

The icon dims control

Source : file dialogs/notesDialog/NoteDialog.js at line 80

#linkControl : NoteDialogLinkControl

The link control

Source : file dialogs/notesDialog/NoteDialog.js at line 115

#note : Note

A reference to the currently edited note

Source : file dialogs/notesDialog/NoteDialog.js at line 59

#phoneControl : TextInputControl

The phone control

Source : file dialogs/notesDialog/NoteDialog.js at line 122

#popupControl : TextAreaControl

The popup control

Source : file dialogs/notesDialog/NoteDialog.js at line 101

#previewControl : NoteDialogPreviewControl

The preview control

Source : file dialogs/notesDialog/NoteDialog.js at line 129

#previewNote : Note

A clone of the #note used to store the modifications and display the preview

Source : file dialogs/notesDialog/NoteDialog.js at line 73

#route : Route

A reference to the route on witch the note is attached

Source : file dialogs/notesDialog/NoteDialog.js at line 66

#toolbar : NoteDialogToolbar

The toolbar

Source : file dialogs/notesDialog/NoteDialog.js at line 136

#tooltipControl : TextInputControl

The tooltip control

Source : file dialogs/notesDialog/NoteDialog.js at line 94

Private methods

#destructor ( )

Destructor. Remove event listeners before closing the dialog and set event listeners objects to null, so all references to the dialog are released

Source : file dialogs/notesDialog/NoteDialog.js at line 157