Class NoteDialogToolbarData

This class is a container for the edition buttons data and predefined icons data

Source : file dialogs/notesDialog/toolbar/NoteDialogToolbarData.js at line 35

Constructor

new NoteDialogToolbarData ( )

The constructor

Source : file dialogs/notesDialog/toolbar/NoteDialogToolbarData.js at line 62

Public getters and setters

readonly get editionButtonsData : Array of EditionButtonData

The additional buttons defined in the TravelNotesDialogXX.json file or a file loaded by the user

Source : file dialogs/notesDialog/toolbar/NoteDialogToolbarData.js at line 74

readonly get preDefinedIconsData : Array of PredefinedIconData

The additional icons defined in the TravelNotesDialogXX.json file or a file loaded by the user

Source : file dialogs/notesDialog/toolbar/NoteDialogToolbarData.js at line 81

Public methods

loadJson ( jsonData )

Load a json file with predefined icons and / or edition buttons

Source : file dialogs/notesDialog/toolbar/NoteDialogToolbarData.js at line 111

Parameters

Name Type Description
jsonData JsonObject

The file content after JSON.parse ( )

preDefinedIconDataAt ( index )

Get and icon from the icon position in the array

Source : file dialogs/notesDialog/toolbar/NoteDialogToolbarData.js at line 91

Parameters

Name Type Description
index Number

The icon index in the array

Returns

The predefinedIconData at the given index
Type : PredefinedIconData

preDefinedIconDataFromName ( iconName )

Get an icon from the icon name

Source : file dialogs/notesDialog/toolbar/NoteDialogToolbarData.js at line 101

Parameters

Name Type Description
iconName String

The icon name

Returns

The predefinedIconData with the name equal to the given name
Type : PredefinedIconData

Private properties

#editionButtonsData : Array of EditionButtonData

The additional buttons defined in the TravelNotesDialogXX.json file or a file loaded by the user

Source : file dialogs/notesDialog/toolbar/NoteDialogToolbarData.js at line 42

#preDefinedIconsDataArray : Array of PredefinedIconData

The additional icons defined in the TravelNotesDialogXX.json file or a file loaded by the user

Source : file dialogs/notesDialog/toolbar/NoteDialogToolbarData.js at line 56

#preDefinedIconsDataMap : Map of PredefinedIconData

A map with the additional icons defined in the TravelNotesDialogXX.json file or a file loaded by the user, ordered by name

Source : file dialogs/notesDialog/toolbar/NoteDialogToolbarData.js at line 49