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
Name | Type | Description |
---|---|---|
softkeyMenu | SoftKeyMenu | The softkey menu to which this controller's softkey belongs. |
softkeyIndex | number | The index in the softkey menu at which this controller's softkey is located. |
softkeyLabel | string | The text label of this controller's softkey. |
mapSettingManager | UserSettingManager <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