Skip to main content

Class: PfdPageRegistrar

A record of registered PFD pane pages.

Constructors

constructor

new PfdPageRegistrar(): PfdPageRegistrar

Returns

PfdPageRegistrar

Methods

getRegisteredPagesArray

getRegisteredPagesArray(): Readonly<PfdPageDefinition>[]

Gets an array of page definitions registered with this registrar, in ascending order according to the values of their order properties.

Returns

Readonly<PfdPageDefinition>[]

An array of page definitions registered with this registrar, in ascending order according to the values of their order properties.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/PFD/PfdPage/PfdPageRegistrar.ts:46


isPageRegistered

isPageRegistered(key): boolean

Checks if a page is registered with a given key.

Parameters

NameTypeDescription
keystringThe key to check.

Returns

boolean

Whether a page is registered with the specified key.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/PFD/PfdPage/PfdPageRegistrar.ts:18


registerPage

registerPage(pageDef): void

Registers a PFD page. Registering a page with an existing key will replace the old page registered under that key.

Parameters

NameTypeDescription
pageDefReadonly<PfdPageDefinition>The definition of the page to register.

Returns

void

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/PFD/PfdPage/PfdPageRegistrar.ts:27


unregisterPage

unregisterPage(key): boolean

Unregisters a PFD page.

Parameters

NameTypeDescription
keystringThe key of the page to unregister.

Returns

boolean

Whether the page with the specified key was successfully unregistered.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/PFD/PfdPage/PfdPageRegistrar.ts:36