Class: AdcSettingsSoftKeyMenu
The ADC settings softkey menu.
Hierarchy
SoftKeyMenu
↳
AdcSettingsSoftKeyMenu
Constructors
constructor
• new AdcSettingsSoftKeyMenu(menuSystem
, adcCount
, sensorsSettingManager
, isSplit
): AdcSettingsSoftKeyMenu
Creates an instance of the ADC settings softkey menu.
Parameters
Name | Type | Description |
---|---|---|
menuSystem | SoftKeyMenuSystem | The softkey menu system. |
adcCount | number | The number of ADC systems supported. Only the first 4 systems will be selectable. |
sensorsSettingManager | UserSettingManager <IauUserSettingTypes > | A manager for sensor settings for this menu's PFD. |
isSplit | boolean | Whether the menu is a split-mode menu. |
Returns
Overrides
SoftKeyMenu.constructor
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/SoftKey/AdcSettingsSoftKeyMenu.ts:18
Properties
menuSystem
• Protected
menuSystem: SoftKeyMenuSystem
The menu system that will manage this menu.
Inherited from
SoftKeyMenu.menuSystem
Defined in
src/garminsdk/softkey/SoftKeyMenu.ts:45
SOFTKEY_COUNT
▪ Static
Readonly
SOFTKEY_COUNT: 12
The number of softkeys in each menu.
Inherited from
SoftKeyMenu.SOFTKEY_COUNT
Defined in
src/garminsdk/softkey/SoftKeyMenu.ts:36
Methods
addItem
▸ addItem(index
, label
, handler?
, value?
, disabled?
): SoftKeyMenuItem
Adds a menu item to the softkey menu.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
index | number | undefined | The softkey index to add the menu item to. Must be between 0 and 11, inclusive. |
label | string | undefined | The label of the menu item. |
handler? | (menu : SoftKeyMenu ) => void | undefined | The handler to call when the menu item is selected. |
value? | string | boolean | undefined | The value of the menu item, if any. |
disabled | boolean | false | Whether or not the menu item is disabled. |
Returns
SoftKeyMenuItem
The new menu item.
Throws
Error if index
is out of bounds.
Inherited from
SoftKeyMenu.addItem
Defined in
src/garminsdk/softkey/SoftKeyMenu.ts:57
destroy
▸ destroy(): void
Returns
void
Inherit Doc
Overrides
SoftKeyMenu.destroy
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/SoftKey/AdcSettingsSoftKeyMenu.ts:47
forEach
▸ forEach(each
): void
Iterates over the menu items.
Parameters
Name | Type | Description |
---|---|---|
each | (menuItem : null | SoftKeyMenuItem , index : number ) => void | The function to run over each menu item. |
Returns
void
Inherited from
SoftKeyMenu.forEach
Defined in
src/garminsdk/softkey/SoftKeyMenu.ts:116
getItem
▸ getItem(index
): null
| SoftKeyMenuItem
Gets a menu item.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the menu item. Must be between 0 and 11, inclusive. |
Returns
null
| SoftKeyMenuItem
The requested menu item.
Throws
Error if index
is out of bounds.
Inherited from
SoftKeyMenu.getItem
Defined in
src/garminsdk/softkey/SoftKeyMenu.ts:97
handleBack
▸ handleBack(): void
Handles a back menu action.
Returns
void
Inherited from
SoftKeyMenu.handleBack
Defined in
src/garminsdk/softkey/SoftKeyMenu.ts:108
handleItemPressed
▸ handleItemPressed(index
): void
Handles when a menu item is pressed.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the menu item that was pressed. |
Returns
void
Inherited from
SoftKeyMenu.handleItemPressed
Defined in
src/garminsdk/softkey/SoftKeyMenu.ts:124
removeItem
▸ removeItem(index
): void
Removes a menu item from the menu.
Parameters
Name | Type | Description |
---|---|---|
index | number | The softkey index to remove the menu item from. Must be between 0 and 11, inclusive. |
Returns
void
Throws
Error if index
is out of bounds.
Inherited from
SoftKeyMenu.removeItem
Defined in
src/garminsdk/softkey/SoftKeyMenu.ts:83