This class contains the OsmSearch dictionary and methods to perform changes in the dictionary
See DictionaryItem for dictionary items
See theOsmSearchDictionary for the one and only one instance of this class
The constructor
The dictionary
Mark the complete dictionary except the root item as not expanded
Mark the complete dictionary as expanded
Mark as expanded an item identified by it's objId
Name | Type | Description |
---|---|---|
itemObjId | Number | The objId of the item |
Parse the content of the TravelNotesSearchDictionaryXX.csv and build a tree of DictionaryItem with this content
Name | Type | Description |
---|---|---|
dictionaryTextContent | String | The content of the TravelNotesSearchDictionaryXX.csv file |
Mark as selected/not selected an item identified by it's objId and all the chidrens of this item
Name | Type | Description |
---|---|---|
itemObjId | Number | The objId of the item |
isSelected | Boolean | The value to set for isSelected |
Mark the complete dictionary as not selected
The currentItem treated by the #parseLine method
The root item of the dictionary
Array used to store a reference to the items property of the DictionaryItem Objects and so build the tree.
A map with the all the DictionaryItem created, selectable by their objId
Mark as not expanded an item and all the childrens
Name | Type | Description |
---|---|---|
item | DictionaryItem | The item to mark as not expanded |
Mark as expanded an item and all the childrens
Name | Type | Description |
---|---|---|
item | DictionaryItem | The item to mark as expanded |
Split a line from the csv file into cells and add a DictionaryItem or a filterTag to the dictionary
Name | Type | Description |
---|---|---|
line | String | A line of the csv file that will be parsed |