Skip to main content

Class: SelectAirwayController

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:20

The controller for SelectProcedure views.

Constructors​

Constructor​

new SelectAirwayController(store, selectNextCb, fms, exitSelectControlRef): SelectAirwayController

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:35

Creates a Select Airway Controller

Parameters​

ParameterTypeDescription
storeSelectAirwayStoreThe store.
selectNextCb() => voidCallback when the next control should be focused.
fmsFmsThe FMS instance.
exitSelectControlRefNodeReference<SelectControl<IntersectionFacility>>is the ref for the exit select control.

Returns​

SelectAirwayController

Properties​

canLoad​

canLoad: Subject<boolean>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:23


emptyListText​

emptyListText: Subject<string>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:24


entryIndex​

entryIndex: number = -1

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:25


entryIndexSubject​

entryIndexSubject: Subject<number>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:26


entrySubject​

readonly entrySubject: Subject<string>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:22


exitSelectControlRef​

readonly exitSelectControlRef: NodeReference<SelectControl<IntersectionFacility>>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:38

is the ref for the exit select control.


fms​

readonly fms: Fms

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:37

The FMS instance.


inputIcao​

inputIcao: Subject<string>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:21


selectNextCb()​

readonly selectNextCb: () => void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:36

Callback when the next control should be focused.

Returns​

void


store​

readonly store: SelectAirwayStore

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:35

The store.

Methods​

buildAirwayMenuItem()​

buildAirwayMenuItem(airway): ContextMenuItemDefinition

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:130

Builds an airway menu item.

Parameters​

ParameterTypeDescription
airwaystringThe airway to build the menu item for.

Returns​

ContextMenuItemDefinition

A menu item definition.


buildExitMenuItem()​

buildExitMenuItem(waypoint, index): ContextMenuItemDefinition

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:155

Builds an airway exit menu item.

Parameters​

ParameterTypeDescription
waypointIntersectionFacilityThe intersection facility of the exit.
indexnumberThe index of the airway.

Returns​

ContextMenuItemDefinition

A menu item definition.


initialize()​

initialize(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:78

Initialize the controller.

Returns​

void


onAirwaySelected()​

onAirwaySelected(index, airway, isRefresh): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:109

Callback handler for when an airway is selected.

Parameters​

ParameterTypeDescription
indexnumberis the index of the item selected
airwaystringThe airway name selected.
isRefreshbooleanIf select event happened based on a data refresh.

Returns​

void


onExitSelected()​

onExitSelected(index, item, isRefresh): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:140

Callback handler for when an enroute transition is selected.

Parameters​

ParameterTypeDescription
indexnumberThe index of the selected transition.
itemIntersectionFacilityThe transition selected.
isRefreshbooleanIf select event happened based on a data refresh.

Returns​

void


onLoadExecuted()​

onLoadExecuted(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:177

Callback handler for when load is pressed.

Returns​

void


onLoadSelected()​

onLoadSelected(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:172

Callback handler for when load is pressed.

Returns​

void


setExistingFix()​

setExistingFix(inputData): Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:62

Sets existing fix for Direct To Existing

Parameters​

ParameterTypeDescription
inputDataSelectAirwayInputData | undefinedis the DirectToInputData

Returns​

Promise<void>