Skip to main content

Class: XPDRMenu

The XPDR softkey menu.

Hierarchy

Constructors

constructor

new XPDRMenu(menuSystem, controlPublisher, g1000Publisher, bus): XPDRMenu

Creates an instance of the XPDR PFD softkey menu.

Parameters

NameTypeDescription
menuSystemSoftKeyMenuSystemthe menu system
controlPublisherControlPublisheris the instance of the control publisher
g1000PublisherG1000ControlPublisherthe G1000 control events publisher
busEventBusthe event bus

Returns

XPDRMenu

Overrides

SoftKeyMenu.constructor

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/XPDRMenu.ts:28

Properties

Protected menuSystem: SoftKeyMenuSystem

The menu system that will manage this menu.

Inherited from

SoftKeyMenu.menuSystem

Defined in

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


EmptyMenuItem

Static EmptyMenuItem: MenuItem

An empty menu item.

Inherited from

SoftKeyMenu.EmptyMenuItem

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

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

Returns

void

Inherited from

SoftKeyMenu.addItem

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

NameTypeDescription
each(menuItem: MenuItem, index: number) => voidThe function to run over each menu item.

Returns

void

Inherited from

SoftKeyMenu.forEach

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

NameTypeDescription
indexnumberThe index of the menu item.

Returns

MenuItem

The requested menu item.

Inherited from

SoftKeyMenu.getItem

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

SoftKeyMenu.handleBack

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

NameTypeDescription
indexnumberThe index of the menu item that was pressed.

Returns

void

Inherited from

SoftKeyMenu.handleItemPressed

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

NameTypeDescription
indexnumberThe softkey index to remove the menu item from.

Returns

void

Inherited from

SoftKeyMenu.removeItem

Defined in

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