Class: FplnPageController
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:24
FPLN page controller
Constructors
Constructor
new FplnPageController(
eventBus,fms,store,page,wptAlreadyExistsPrompt):FplnPageController
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:150
Creates the Controller.
Parameters
| Parameter | Type | Description |
|---|---|---|
eventBus | EventBus | The event bus |
fms | WT21Fms | The FMS. |
store | FplnPageStore | The store. |
page | WT21FmcPage | The FMC Page. |
wptAlreadyExistsPrompt | WaypointAlreadyExistsPrompt | The WPT ALREADY EXISTS prompt wrapper |
Returns
FplnPageController
Properties
altnField
readonlyaltnField:TextInputField<null|string,null|string>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:54
currentPage
readonlycurrentPage:Subject<number>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:34
destinationField
destinationField:
TextInputField<null|string,null|string>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:39
fplnLegList
fplnLegList:
FmcListUtility<RoutePageLegItem>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:136
pageCount
readonlypageCount:ComputedSubject<number,number>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:35
activeHeaderString
readonlystaticactiveHeaderString:" ACT FPLN[blue]"=' ACT FPLN[blue]'
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:31
discoIdentString
readonlystaticdiscoIdentString:"□□□□□"='□□□□□'
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:28
discontinuityHeader
readonlystaticdiscontinuityHeader:"---- DISCONTINUITY -----"='---- DISCONTINUITY -----'
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:27
emptyAirwayString
readonlystaticemptyAirwayString:"-----"='-----'
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:30
emptyIdentString
readonlystaticemptyIdentString:"-----"='-----'
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:29
modHeaderString
readonlystaticmodHeaderString:" MOD[white] FPLN[blue]"=' MOD[white] FPLN[blue]'
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:32
Methods
destroy()
destroy():
void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:179
Destroys the Controller.
Returns
void
handleCancelMod()
handleCancelMod():
void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:856
Handles when Cancel Mod is pressed
Returns
void
init()
init():
void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:172
Initializes the Controller
Returns
void
onAirwayInput()
onAirwayInput(
data,scratchpadContents,isDelete?):Promise<string|boolean>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:495
Parameters
| Parameter | Type |
|---|---|
data | undefined | RoutePageLegItem |
scratchpadContents | string |
isDelete? | boolean |
Returns
Promise<string | boolean>
onWaypointInput()
onWaypointInput(
data,scratchpadContents,isDelete?):Promise<string|boolean>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:511
Takes a waypoint.
Parameters
| Parameter | Type | Description |
|---|---|---|
data | undefined | RoutePageLegItem | The RoutePageLegItem. |
scratchpadContents | string | The Scratchpad Contents. |
isDelete? | boolean | Whether this is a delete. |
Returns
Promise<string | boolean>
Whether this entry was successfully completed.
renderPage()
renderPage():
FmcRenderTemplate
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:239
Renders the Page
Returns
The FmcRenderTemplate
renderRow()
renderRow(
page,indexInDisplay,prevData,data):FmcRenderTemplateRow[]
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:92
Parameters
| Parameter | Type |
|---|---|
page | AbstractFmcPage |
indexInDisplay | number |
prevData | undefined | RoutePageLegItem |
data | undefined | RoutePageLegItem |
Returns
setDestination()
setDestination(
ident,isDelete?):Promise<string|boolean>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:818
Sets the destination for the flight plan.
Parameters
| Parameter | Type | Description |
|---|---|---|
ident | null | string | The ICAO to set |
isDelete? | boolean | Whether this was a delete |
Returns
Promise<string | boolean>
Whether this was successful
setOrigin()
setOrigin(
ident):Promise<void>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:783
Sets the origin for the flight plan.
Parameters
| Parameter | Type | Description |
|---|---|---|
ident | null | string | The ICAO to set |
Returns
Promise<void>