Skip to main content

Class: SoftKeyWeatherOverlayController

A controller which binds a softkey to a state which can take one of several enumerated values. Once bound, the softkey will display the bound state and each press of the softkey will cycle the state through possible values.

Constructors

constructor

new SoftKeyWeatherOverlayController(softkeyMenu, softkeyIndex, softkeyLabel, mapSettingManager): SoftKeyWeatherOverlayController

Constructor.

Parameters

NameTypeDescription
softkeyMenuSoftKeyMenuThe softkey menu to which this controller's softkey belongs.
softkeyIndexnumberThe index in the softkey menu at which this controller's softkey is located.
softkeyLabelstringThe text label of this controller's softkey.
mapSettingManagerUserSettingManager<MapUserSettingTypes>A manager for map user settings.

Returns

SoftKeyWeatherOverlayController

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/SoftKey/SoftKeyWeatherOverlayController.ts:34

Methods

destroy

destroy(): void

Destroys this controller. This will remove the softkey menu item bound to this controller's state.

Returns

void

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/SoftKey/SoftKeyWeatherOverlayController.ts:112


init

init(): SoftKeyMenuItem

Initializes this controller. This will create a softkey menu item and bind it to this controller's state.

Returns

SoftKeyMenuItem

The softkey menu item bound to this controller's state.

Throws

Error if this controller has been destroyed.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/SoftKey/SoftKeyWeatherOverlayController.ts:47