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
| Parameter | Type | Description |
|---|---|---|
store | SelectAirwayStore | The store. |
selectNextCb | () => void | Callback when the next control should be focused. |
fms | Fms | The FMS instance. |
exitSelectControlRef | NodeReference<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
readonlyentrySubject:Subject<string>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/SelectAirwayController.tsx:22
exitSelectControlRef
readonlyexitSelectControlRef: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
readonlyfms: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()
readonlyselectNextCb: () =>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
readonlystore: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
| Parameter | Type | Description |
|---|---|---|
airway | string | The airway to build the menu item for. |
Returns
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
| Parameter | Type | Description |
|---|---|---|
waypoint | IntersectionFacility | The intersection facility of the exit. |
index | number | The index of the airway. |
Returns
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
| Parameter | Type | Description |
|---|---|---|
index | number | is the index of the item selected |
airway | string | The airway name selected. |
isRefresh | boolean | If 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
| Parameter | Type | Description |
|---|---|---|
index | number | The index of the selected transition. |
item | IntersectionFacility | The transition selected. |
isRefresh | boolean | If 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
| Parameter | Type | Description |
|---|---|---|
inputData | undefined | SelectAirwayInputData | is the DirectToInputData |
Returns
Promise<void>