Class: SoftKeyMenuSystem
A system that manages the Garmin softkey menus.
Constructors
constructor
• new SoftKeyMenuSystem(bus
, hEventPrefix
): SoftKeyMenuSystem
Creates an instance of the MenuSystem.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus to use with this instance. |
hEventPrefix | string | The event prefix to use for the softkey H Events. |
Returns
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
Name | Type | Description |
---|---|---|
name | string | The route to the menu to add this menu entry to. |
entry | SoftKeyMenu | The 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
Name | Type | Description |
---|---|---|
softKeys | SoftKeyBar | The 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
Name | Type | Description |
---|---|---|
menuName | string | Name of the menu. |
Returns
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
Name | Type | Description |
---|---|---|
name | string | The 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
Name | Type | Description |
---|---|---|
name | string | The 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