Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ByIdReference<T>

Type parameters

Hierarchy

  • ByIdReference

Index

Constructors

constructor

  • Constructs and returns a new reference instance, that is owned (by a property of) an abstract element.

    Parameters

    Returns ByIdReference

Properties

Protected isResolved

isResolved: boolean

Protected isResolving

isResolving: boolean

owner

Protected referenceId

referenceId: string | null

target

target: IObservableValue

Methods

assertValueHasSameUnit

  • assertValueHasSameUnit(valueToCheck: T | null): void
  • Parameters

    • valueToCheck: T | null

    Returns void

get

  • get(): T | null
  • Returns T | null

intercept

  • Registers an observer in the form of a callback with this references and fires that callback immediately if the reference is already resolved. Used by properties to observe this reference, so that storage and logical updates can be applied.

    Parameters

    • callback: function
        • (change: IValueWillChange): IValueWillChange
        • Parameters

          • change: IValueWillChange

          Returns IValueWillChange

    Returns IVoidCallback

resolve

  • resolve(): void
  • Returns void

set

  • set(newValue: T | null): void
  • Parameters

    • newValue: T | null

    Returns void

updateWithRawValue

  • updateWithRawValue(value: string): void
  • Sets only the raw target id, without trying to resolve that.

    Parameters

    • value: string

    Returns void

Generated using TypeDoc