Skip to main content

Class: XPDRCodeMenu

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/XPDRCodeMenu.ts:10

The XPDR softkey menu.

Extends

Constructors

Constructor

new XPDRCodeMenu(menuSystem, bus, g1000Publisher): XPDRCodeMenu

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/XPDRCodeMenu.ts:19

Creates an instance of the transponder code menu.

Parameters

ParameterTypeDescription
menuSystemSoftKeyMenuSystemThe menu system.
busEventBusis the event bus
g1000PublisherG1000ControlPublisherthe G1000 control events publisher

Returns

XPDRCodeMenu

Overrides

SoftKeyMenu.constructor

Properties

protected menuSystem: SoftKeyMenuSystem

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:44

The menu system that will manage this menu.

Inherited from

SoftKeyMenu.menuSystem


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

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:117

An empty menu item.

Inherited from

SoftKeyMenu.EmptyMenuItem

Methods

addItem()

addItem(index, label, handler?, value?, disabled?): void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:54

Adds a menu item to the softkey menu.

Parameters

ParameterTypeDefault valueDescription
indexnumberundefinedThe softkey index to add the menu item to.
labelstringundefinedThe label of the menu item.
handler?(menu) => voidundefinedThe handler to call when the menu item is selected.
value?string | booleanundefinedThe value of the menu item, if any.
disabled?booleanfalseWhether or not the menu item is disabled.

Returns

void

Inherited from

SoftKeyMenu.addItem


forEach()

forEach(each): void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:97

Iterates over the menu items.

Parameters

ParameterTypeDescription
each(menuItem, index) => voidThe function to run over each menu item.

Returns

void

Inherited from

SoftKeyMenu.forEach


getItem()

getItem(index): MenuItem

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:82

Gets a menu item.

Parameters

ParameterTypeDescription
indexnumberThe index of the menu item.

Returns

MenuItem

The requested menu item.

Inherited from

SoftKeyMenu.getItem


handleBack()

handleBack(): void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:89

Handles a back menu action.

Returns

void

Inherited from

SoftKeyMenu.handleBack


handleItemPressed()

handleItemPressed(index): void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:108

Handles when a menu item is pressed.

Parameters

ParameterTypeDescription
indexnumberThe index of the menu item that was pressed.

Returns

void

Inherited from

SoftKeyMenu.handleItemPressed


removeItem()

removeItem(index): void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:73

Removes a menu item from the menu.

Parameters

ParameterTypeDescription
indexnumberThe softkey index to remove the menu item from.

Returns

void

Inherited from

SoftKeyMenu.removeItem