Class: SelectApproachController<S>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:17
Controller for SelectApproach component.
Extended by
Type Parameters
| Type Parameter | Default type |
|---|---|
S extends SelectApproachStore | SelectApproachStore |
Constructors
Constructor
new SelectApproachController<
S>(bus,store,selectNextCb,fms,calculator,viewService,fplKey,hasSequence):SelectApproachController<S>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:52
Creates an instance of select approach controller.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
bus | EventBus | undefined | The Event Bus. |
store | S | undefined | The store. |
selectNextCb | () => void | undefined | Callback when the next control should be focused. |
fms | Fms | undefined | Instance of FMS. |
calculator | FlightPathCalculator | undefined | The flight path calculator used by this controller to build preview flight plans. |
viewService | ViewService | undefined | The view service used by this controller. |
fplKey | string | undefined | The FPL ViewService Key. |
hasSequence | boolean | false | If this instance of the controller should support a sequence display. |
Returns
SelectApproachController<S>
Properties
approachFocusedHandler()
readonlyapproachFocusedHandler: (item) =>Promise<void>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:20
Responds to when an approach item is focused.
Parameters
| Parameter | Type | Description |
|---|---|---|
item | ApproachListItem | The focused item. |
Returns
Promise<void>
approachSelectedHandler()
readonlyapproachSelectedHandler: (index,item,isRefresh) =>void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:19
Responds to when an approach is selected.
Parameters
| Parameter | Type | Description |
|---|---|---|
index | number | The index of the procedure selected. |
item | ApproachListItem | The item selected. |
isRefresh | boolean | If select event happened based on a data refresh. |
Returns
void
approachSelectionClosedHandler()
readonlyapproachSelectionClosedHandler: (source,selectionMade) =>Promise<void>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:23
Handles when the approach selection dialog is closed.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | SelectControl2<ApproachListItem> | The SelectControl controlling the dialog that was closed. |
selectionMade | boolean | Whether a selection was made. |
Returns
Promise<void>
buildSequenceOpId
protectedbuildSequenceOpId:number=0
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:274
bus
protectedreadonlybus:EventBus
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:53
The Event Bus.
calculator
protectedreadonlycalculator:FlightPathCalculator
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:57
The flight path calculator used by this controller to build preview flight plans.
canActivate
readonlycanActivate:Subject<boolean>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:28
canLoad
readonlycanLoad:Subject<boolean>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:27
canLoadOrText
readonlycanLoadOrText:MappedSubscribable<""|"OR">
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:29
controlPub
protectedreadonlycontrolPub:Publisher<MinimumsEvents>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:32
facilityChangedHandler()
readonlyfacilityChangedHandler: (facility) =>void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:18
Responds to when the waypoint input's selected facility changes.
Parameters
| Parameter | Type | Description |
|---|---|---|
facility | undefined | Facility | The selected facility. |
Returns
void
fms
protectedreadonlyfms:Fms
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:56
Instance of FMS.
fplKey
protectedreadonlyfplKey:string
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:59
The FPL ViewService Key.
g1000ControlPub
protectedreadonlyg1000ControlPub:Publisher<G1000ControlEvents>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:33
hasSequence
protectedreadonlyhasSequence:boolean=false
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:60
If this instance of the controller should support a sequence display.
inputIcao
readonlyinputIcao:Subject<string>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:26
onAfterFacilityLoad
onAfterFacilityLoad:
undefined| () =>void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:39
A callback called after a facility is completed loading.
selectNextCb()
protectedreadonlyselectNextCb: () =>void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:55
Callback when the next control should be focused.
Returns
void
skipCourseReversal
protectedskipCourseReversal:boolean=false
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:31
store
protectedreadonlystore:S
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:54
The store.
transFocusedHandler()
readonlytransFocusedHandler: (item) =>Promise<void>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:22
Responds to when a transition item is focused.
Parameters
| Parameter | Type | Description |
|---|---|---|
item | TransitionListItem | The focused item. |
Returns
Promise<void>
transSelectedHandler()
readonlytransSelectedHandler: (index,item,isRefresh) =>Promise<void>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:21
Responds to when a transition is selected.
Parameters
| Parameter | Type | Description |
|---|---|---|
index | number | The index of the transition selected. |
item | TransitionListItem | The item selected. |
isRefresh | boolean | If select event happened based on a data refresh. |
Returns
Promise<void>
transSelectionClosedHandler()
readonlytransSelectionClosedHandler: (source,selectionMade) =>Promise<void>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:24
Handles when the transition selection dialog is closed.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | SelectControl2<TransitionListItem> | The SelectControl controlling the dialog that was closed. |
selectionMade | boolean | Whether a selection was made. |
Returns
Promise<void>
viewService
protectedreadonlyviewService:ViewService
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:58
The view service used by this controller.
Methods
buildSequence()
protectedbuildSequence(airport?,approach?,transition?):Promise<boolean>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:283
Builds the sequence list and flight plan for the approach preview.
Parameters
| Parameter | Type | Description |
|---|---|---|
airport? | AirportFacility | The airport of the approach to preview. |
approach? | ApproachListItem | The approach to preview. |
transition? | TransitionListItem | The transition of the approach preview. |
Returns
Promise<boolean>
A Promise which is fulfilled with whether a preview sequence was successfully built.
getInitialICAO()
protectedgetInitialICAO():undefined|string
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:88
Returns
undefined | string
Inherit Doc
initialize()
initialize():
void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:76
Initialize the controller.
Returns
void
onActivateExecuted()
onActivateExecuted():
void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:345
Callback handler for when activate is pressed.
Returns
void
onApproachFocused()
protectedonApproachFocused(item):Promise<void>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:215
Responds to when an approach item is focused.
Parameters
| Parameter | Type | Description |
|---|---|---|
item | ApproachListItem | The focused item. |
Returns
Promise<void>
onApproachSelected()
protectedonApproachSelected(index,item,isRefresh):void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:203
Responds to when an approach is selected.
Parameters
| Parameter | Type | Description |
|---|---|---|
index | number | The index of the procedure selected. |
item | ApproachListItem | The item selected. |
isRefresh | boolean | If select event happened based on a data refresh. |
Returns
void
onApproachSelectionClosed()
protectedonApproachSelectionClosed(source,selectionMade):Promise<void>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:180
Handles when the approach selection dialog is closed.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | SelectControl2<ApproachListItem> | The SelectControl controlling the dialog that was closed. |
selectionMade | boolean | Whether a selection was made. |
Returns
Promise<void>
onLoadExecuted()
onLoadExecuted():
void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:334
Callback handler for when load is pressed.
Returns
void
onMinimumsOptionSelected()
onMinimumsOptionSelected(
index):void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:156
Callback handler for when a minimums option is selected.
Parameters
| Parameter | Type | Description |
|---|---|---|
index | number | The index of the option selected. |
Returns
void
onTransFocused()
protectedonTransFocused(item):Promise<void>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:270
Responds to when a transition item is focused.
Parameters
| Parameter | Type | Description |
|---|---|---|
item | TransitionListItem | The focused item. |
Returns
Promise<void>
onTransSelected()
protectedonTransSelected(index,item,isRefresh):Promise<void>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:225
Responds to when a transition is selected.
Parameters
| Parameter | Type | Description |
|---|---|---|
index | number | The index of the transition selected. |
item | TransitionListItem | The item selected. |
isRefresh | boolean | If select event happened based on a data refresh. |
Returns
Promise<void>
onTransSelectionClosed()
protectedonTransSelectionClosed(source,selectionMade):Promise<void>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:191
Handles when the transition selection dialog is closed.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | SelectControl2<TransitionListItem> | The SelectControl controlling the dialog that was closed. |
selectionMade | boolean | Whether a selection was made. |
Returns
Promise<void>
removeCourseReversalFromPreviewPlan()
protectedremoveCourseReversalFromPreviewPlan():Promise<void>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:253
Removes a course reversal from the preview plan.
Returns
Promise<void>
updateMinimumsValue()
updateMinimumsValue():
void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:162
Callback handler for when a minimums value is selected.
Returns
void