Class DictionaryItem

This class is used to represent a branch of the dictionary tree.

Source : file core/osmSearch/DictionaryItem.js at line 35

Constructor

new DictionaryItem ( itemName, isRoot )

The constructor

Source : file core/osmSearch/DictionaryItem.js at line 101

Parameters

Name Type Description
itemName String

The name of the item

isRoot Boolean

True when the item is the root item ( = the dictionary )

Public getters and setters

readonly get elementTypes : Array of String

The element types used for the item

Source : file core/osmSearch/DictionaryItem.js at line 140

readonly get filterTagsArray : Array of Array of Object

An array of arrays of objects. This is used to filter the results received from osm. Each sub array is a line in the TravelNotesSearchDictionary Each object in a sub array is a cell in the TravelNotesSearchDictionary

Source : file core/osmSearch/DictionaryItem.js at line 160

get isExpanded : Boolean

A boolean indicating when the item is expanded by the user

Source : file core/osmSearch/DictionaryItem.js at line 183

set isExpanded

Source : file core/osmSearch/DictionaryItem.js at line 185

readonly get isRoot : Boolean

A boolean indicating when the item is the root item.

Source : file core/osmSearch/DictionaryItem.js at line 126

get isSelected : Boolean

A boolean indicating when the item is selected by the user

Source : file core/osmSearch/DictionaryItem.js at line 167

set isSelected

Source : file core/osmSearch/DictionaryItem.js at line 169

readonly get items : Array of DictionaryItem

An array with subitems if any

Source : file core/osmSearch/DictionaryItem.js at line 133

readonly get name : String

The name displayed to the user

Source : file core/osmSearch/DictionaryItem.js at line 119

readonly get objId : Number

A unique identifier given to the DictionaryItem

Source : file core/osmSearch/DictionaryItem.js at line 192

Public methods

setElementType ( elementType )

Change the value of elementTypes to only one value

Source : file core/osmSearch/DictionaryItem.js at line 147

Parameters

Name Type Description
elementType String

The element type to set must be one of 'node', 'way' or 'relation'

Private properties

#elementTypes : Array of String

The elements type used for the item

Source : file core/osmSearch/DictionaryItem.js at line 63

#filterTagsArray : Array of Array of Object

An array of arrays of objects. This is used to filter the results received from osm. Each sub array is a line in the TravelNotesSearchDictionary Each object in a sub array is a cell in the TravelNotesSearchDictionary

Source : file core/osmSearch/DictionaryItem.js at line 72

#isExpanded : Boolean

A boolean indicating when the item is expanded by the user

Source : file core/osmSearch/DictionaryItem.js at line 86

#isRoot : Boolean

A boolean indicating when the item is the root item.

Source : file core/osmSearch/DictionaryItem.js at line 49

#isSelected : Boolean

A boolean indicating when the item is selected by the user

Source : file core/osmSearch/DictionaryItem.js at line 79

#items : Array of DictionaryItem

An array with subitems if any

Source : file core/osmSearch/DictionaryItem.js at line 56

#name : String

The name displayed to the user

Source : file core/osmSearch/DictionaryItem.js at line 42

#objId : Number

A unique identifier given to the DictionaryItem

Source : file core/osmSearch/DictionaryItem.js at line 93