Skip to main content

Class: SoftKeyMenuSystem

A system that manages the Garmin softkey menus.

Constructors

constructor

new SoftKeyMenuSystem(bus, hEventPrefix): SoftKeyMenuSystem

Creates an instance of the MenuSystem.

Parameters

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

Returns

SoftKeyMenuSystem

Defined in

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

Properties

bus

bus: EventBus

The event bus to use with this instance.

Defined in

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

Methods

addMenu

addMenu(name, entry): void

Adds a menu to the menu system.

Parameters

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

Returns

void

Defined in

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


attachSoftKeys

attachSoftKeys(softKeys): void

Attaches the softkeys display component to the menu system.

Parameters

NameTypeDescription
softKeysSoftKeyBarThe softkeys display component instance.

Returns

void

Defined in

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


back

back(): void

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

Returns

void

Defined in

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


clear

clear(): void

Clears the menu stack.

Returns

void

Defined in

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


getMenu

getMenu(menuName): SoftKeyMenu

Gets the softkey menu registered with a given name.

Parameters

NameTypeDescription
menuNamestringName of the menu.

Returns

SoftKeyMenu

The requested soft keymenu.

Defined in

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


pushMenu

pushMenu(name): void

Pushes a menu onto the menu system stack.

Parameters

NameTypeDescription
namestringThe name of the menu to push.

Returns

void

Defined in

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


replaceMenu

replaceMenu(name): void

Replaces one menu with another on top of the stack.

Parameters

NameTypeDescription
namestringThe name of the menu to activate.

Returns

void

Defined in

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