Class ProvidersToolbar

This class is the provider and transitModes toolbar at the bottom of the UI

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 41

Constructor

new ProvidersToolbar ( )

The constructor

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 238

Public getters and setters

set provider

Set a provider as active provider

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 329

set transitMode

Set a transit mode as active transit mode

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 381

Public methods

centerToolbar ( )

Center the toolbar on the lower side of the screen

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 248

createUI ( )

Creation of the toolbar

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 270

hide ( )

Hide the toolbar. Used as event listener for the timer

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 222

providersAdded ( )

Reset the toolbar when providers added ( see providersadded event )

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 395

Private properties

#activeProviderButton : ProviderButton

The active provider button

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 90

#activeTransitModeButton : TransitModeButton

The active transit mode button

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 83

#buttonsHTMLElement : HTMLElement

The toolbar HTMLElement

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 62

#isShow : Boolean

A boolean saving the the current state of the toolbar

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 97

#mouseLeaveTimerId : Number

Timer id for the mouse leave event

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 104

#providerButtons : Map

A JS map with the provider buttons, ordered by provider.name

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 76

#toolbarHTMLElement : HTMLElement

The main HTMLElement of the toolbar

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 48

#topBar : HTMLElement

The top bar

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 55

#transitModeButtons : Map

A JS map with the transit mode buttons, ordered by transitMode

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 69

Private getters and setters

readonly static get #HIDDEN_DELAY : Number

The delay needed for the timer that start the #removeHidden ( ) method

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 112

Private methods

#createProvidersButtons ( )

Provider buttons creation

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 138

#createTransitModesButtons ( ) : Number

Transit mode buttons creation

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 123

#onClick ( )

Mouse click event listener

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 180

#onMouseEnter ( )

Mouse enter event listener

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 196

#onMouseLeave ( )

Mouse leave event listener

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 211

#removeHidden ( )

Remove the TravelNotes-Hidden class on the toolbar. It's needed to use a timer (see the #show ( ) method) to remove the class, otherwise one of the button of the toolbar is clicked when the toolbar is show by clicking on the header on touch devices

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 168

#show ( )

Show the toolbar

Source : file toolbars/providersToolbar/ProvidersToolbar.js at line 154