Class: DefaultFlightPlanDataFieldFactory
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/DefaultFlightPlanDataFieldFactory.ts:9
A default implementation of FlightPlanDataFieldFactory.
Implements
Constructors
Constructor
new DefaultFlightPlanDataFieldFactory():
DefaultFlightPlanDataFieldFactory
Returns
DefaultFlightPlanDataFieldFactory
Methods
create()
create<
T>(type):FlightPlanDataField<T> |null
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/DefaultFlightPlanDataFieldFactory.ts:11
Creates a new flight plan data field of a given type.
Type Parameters
| Type Parameter |
|---|
T extends FlightPlanDataFieldType |
Parameters
| Parameter | Type | Description |
|---|---|---|
type | T | The type of data field to create. |
Returns
FlightPlanDataField<T> | null
A new flight plan data field of the specified type, or null if one could not be created.