Skip to main content

Class: SoftKeyMenuSystem

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

A system that manages the Garmin softkey menus.

Constructors

Constructor

new SoftKeyMenuSystem(bus, hEventPrefix): SoftKeyMenuSystem

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

Creates an instance of the MenuSystem.

Parameters

ParameterTypeDescription
busEventBusThe event bus to use with this instance.
hEventPrefixstringThe event prefix to use for the softkey H Events.

Returns

SoftKeyMenuSystem

Properties

bus

bus: EventBus

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

The event bus to use with this instance.

Methods

addMenu()

addMenu(name, entry): void

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

Adds a menu to the menu system.

Parameters

ParameterTypeDescription
namestringThe route to the menu to add this menu entry to.
entrySoftKeyMenuThe menu entry to add.

Returns

void


attachSoftKeys()

attachSoftKeys(softKeys): void

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

Attaches the softkeys display component to the menu system.

Parameters

ParameterTypeDescription
softKeysSoftKeyBarThe softkeys display component instance.

Returns

void


back()

back(): void

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

Pops a menu off the stack and returns to the previous menu.

Returns

void


clear()

clear(): void

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

Clears the menu stack.

Returns

void


getMenu()

getMenu(menuName): SoftKeyMenu

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

Gets the softkey menu registered with a given name.

Parameters

ParameterTypeDescription
menuNamestringName of the menu.

Returns

SoftKeyMenu

The requested soft keymenu.


pushMenu()

pushMenu(name): void

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

Pushes a menu onto the menu system stack.

Parameters

ParameterTypeDescription
namestringThe name of the menu to push.

Returns

void


replaceMenu()

replaceMenu(name): void

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

Replaces one menu with another on top of the stack.

Parameters

ParameterTypeDescription
namestringThe name of the menu to activate.

Returns

void