Abstract Class: SelectProcedureController
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:10
The controller for SelectProcedure views.
Constructors
Constructor
new SelectProcedureController(
store
,selectNextCb
,fms
,calculator
,procType
):SelectProcedureController
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:27
Ctor
Parameters
Parameter | Type | Description |
---|---|---|
store | SelectProcedureControllerStore | The store. |
selectNextCb | () => void | Callback when the next control should be focused. |
fms | Fms | The FMS instance. |
calculator | FlightPathCalculator | The flight path calculator used by this controller to build preview flight plans. |
procType | ProcedureType | is the procedure type for this controller. |
Returns
SelectProcedureController
Properties
buildSequenceOpId
protected
buildSequenceOpId:number
=0
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:138
calculator
protected
readonly
calculator:FlightPathCalculator
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:31
The flight path calculator used by this controller to build preview flight plans.
canLoad
readonly
canLoad:Subject
<boolean
>
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:17
facilityChangedHandler()
readonly
facilityChangedHandler: (facility
) =>void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:11
Responds to when the waypoint input's selected facility changes.
Parameters
Parameter | Type | Description |
---|---|---|
facility | undefined | Facility | The selected facility. |
Returns
void
fms
protected
readonly
fms:Fms
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:30
The FMS instance.
inputIcao
readonly
inputIcao:Subject
<string
>
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:16
onLoadExecute()
abstract
onLoadExecute: () =>void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:179
Called when the load procedure button is clicked.
Returns
void
procSelectedHandler()
readonly
procSelectedHandler: (index
,item
,isRefresh
) =>Promise
<void
>
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:12
Callback handler for when a procedure is selected.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the selected procedure. |
item | Procedure | The procedure selected. |
isRefresh | boolean | If select event happened based on a data refresh. |
Returns
Promise
<void
>
procType
protected
readonly
procType:ProcedureType
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:32
is the procedure type for this controller.
runwaySelectedHandler()
readonly
runwaySelectedHandler: (index
,item
,isRefresh
) =>Promise
<void
>
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:13
Responds to when a runway transition is selected.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the selected transition. |
item | RunwayTransition | The transition selected. |
isRefresh | boolean | If select event happened based on a data refresh. |
Returns
Promise
<void
>
selectNextCb()
protected
readonly
selectNextCb: () =>void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:29
Callback when the next control should be focused.
Returns
void
store
protected
readonly
store:SelectProcedureControllerStore
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:28
The store.
transSelectedHandler()
readonly
transSelectedHandler: (index
,item
,isRefresh
) =>Promise
<void
>
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:14
Responds to when an enroute transition is selected.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the selected transition. |
item | EnrouteTransition | The transition selected. |
isRefresh | boolean | If select event happened based on a data refresh. |
Returns
Promise
<void
>
Methods
buildSequence()
protected
buildSequence():Promise
<boolean
>
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:144
Builds the sequence list for the approach preview
Returns
Promise
<boolean
>
A Promise which is fulfilled with whether a preview sequence was successfully built.
getInitialICAO()
abstract
protected
getInitialICAO():undefined
|string
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:70
Gets the initial ICAO on load.
Returns
undefined
| string
The initial ICAO string or undefined.
initialize()
initialize():
void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:54
Initialize the controller.
Returns
void
onFacilityChanged()
protected
onFacilityChanged(facility
):void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:76
Responds to when the waypoint input's selected facility changes.
Parameters
Parameter | Type | Description |
---|---|---|
facility | undefined | Facility | The selected facility. |
Returns
void
onLoadSelected()
onLoadSelected():
void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:174
Callback handler for when load is pressed.
Returns
void
onProcSelected()
protected
onProcSelected(index
,item
,isRefresh
):Promise
<void
>
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:99
Callback handler for when a procedure is selected.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the selected procedure. |
item | Procedure | The procedure selected. |
isRefresh | boolean | If select event happened based on a data refresh. |
Returns
Promise
<void
>
onRunwaySelected()
protected
onRunwaySelected(index
,item
,isRefresh
):Promise
<void
>
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:116
Responds to when a runway transition is selected.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the selected transition. |
item | RunwayTransition | The transition selected. |
isRefresh | boolean | If select event happened based on a data refresh. |
Returns
Promise
<void
>
onTransSelected()
protected
onTransSelected(index
,item
,isRefresh
):Promise
<void
>
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/SelectProcedureController.ts:130
Responds to when an enroute transition is selected.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the selected transition. |
item | EnrouteTransition | The transition selected. |
isRefresh | boolean | If select event happened based on a data refresh. |
Returns
Promise
<void
>