Class: XPDRCodeMenu
The XPDR softkey menu.
Hierarchy
↳
XPDRCodeMenu
Constructors
constructor
• new XPDRCodeMenu(menuSystem
, bus
, g1000Publisher
): XPDRCodeMenu
Creates an instance of the transponder code menu.
Parameters
Name | Type | Description |
---|---|---|
menuSystem | SoftKeyMenuSystem | The menu system. |
bus | EventBus | is the event bus |
g1000Publisher | G1000ControlPublisher | the G1000 control events publisher |
Returns
Overrides
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/XPDRCodeMenu.ts:19
Properties
menuSystem
• Protected
menuSystem: SoftKeyMenuSystem
The menu system that will manage this menu.
Inherited from
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:44
xpdrCodeMenuActive
• xpdrCodeMenuActive: boolean
= false
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/XPDRCodeMenu.ts:11
EmptyMenuItem
▪ Static
EmptyMenuItem: MenuItem
An empty menu item.
Inherited from
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:117
Methods
addItem
▸ addItem(index
, label
, handler?
, value?
, disabled?
): void
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. |
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
void
Inherited from
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:54
forEach
▸ forEach(each
): void
Iterates over the menu items.
Parameters
Name | Type | Description |
---|---|---|
each | (menuItem : MenuItem , index : number ) => void | The function to run over each menu item. |
Returns
void
Inherited from
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:97
getItem
▸ getItem(index
): MenuItem
Gets a menu item.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the menu item. |
Returns
The requested menu item.
Inherited from
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:82
handleBack
▸ handleBack(): void
Handles a back menu action.
Returns
void
Inherited from
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:89
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
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:108
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. |
Returns
void
Inherited from
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:73