Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RefreshManager<M>

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

analyzeTimer

analyzeTimer: number

Readonly modelContext

modelContext: RefreshContext

Readonly modelManagerObservers

modelManagerObservers: readonly RefreshManagerObserver<Model, RefreshManager<Model>>[]

refreshTimer

refreshTimer: number

Readonly rootFlags

rootFlags: number

Readonly rootModels

rootModels: readonly M[]

updateDelay

updateDelay: number

Static MaxAnalyzeInterval

MaxAnalyzeInterval: number

Static MaxRefreshInterval

MaxRefreshInterval: number

Static MaxUpdateDelay

MaxUpdateDelay: number

Static MinAnalyzeInterval

MinAnalyzeInterval: number

Static MinRefreshInterval

MinRefreshInterval: number

Static MinUpdateDelay

MinUpdateDelay: number

Accessors

powerFlags

  • get powerFlags(): number
  • Returns number

Methods

addModelManagerObserver

Protected attachEvents

  • attachEvents(): void
  • Returns void

Protected cancelUpdate

  • cancelUpdate(): void
  • Returns void

Protected detachEvents

  • detachEvents(): void
  • Returns void

Protected didAddModelManagerObserver

Protected didAttach

  • didAttach(): void
  • Returns void

Protected didDetach

  • didDetach(): void
  • Returns void

Protected didInsertRootModel

  • didInsertRootModel(rootModel: M): void
  • Parameters

    • rootModel: M

    Returns void

Protected didObserve

Protected didRemoveModelManagerObserver

Protected didRemoveRootModel

  • didRemoveRootModel(rootModel: M): void
  • Parameters

    • rootModel: M

    Returns void

Protected didRequestUpdate

  • didRequestUpdate(targetModel: Model, updateFlags: number, immediate: boolean): void
  • Parameters

    • targetModel: Model
    • updateFlags: number
    • immediate: boolean

    Returns void

Protected initModelContext

  • Returns RefreshContext

insertRootModel

  • insertRootModel(rootModel: M): void
  • Parameters

    • rootModel: M

    Returns void

isAttached

  • isAttached(): boolean
  • Returns boolean

Protected onAddModelManagerObserver

Protected onAttach

  • onAttach(): void
  • Returns void

Protected onDetach

  • onDetach(): void
  • Returns void

Protected onInsertRootModel

  • onInsertRootModel(rootModel: M): void
  • Parameters

    • rootModel: M

    Returns void

Protected onPower

  • onPower(): void
  • Returns void

Protected onRemoveModelManagerObserver

Protected onRemoveRootModel

  • onRemoveRootModel(rootModel: M): void
  • Parameters

    • rootModel: M

    Returns void

Protected onRequestUpdate

  • onRequestUpdate(targetModel: Model, updateFlags: number, immediate: boolean): void
  • Parameters

    • targetModel: Model
    • updateFlags: number
    • immediate: boolean

    Returns void

Protected onUnpower

  • onUnpower(): void
  • Returns void

Protected onVisibilityChange

  • onVisibilityChange(): void
  • Returns void

Protected powerRootModel

  • powerRootModel(rootModel: M): void
  • Parameters

    • rootModel: M

    Returns void

Protected powerRootModels

  • powerRootModels(): void
  • Returns void

removeModelManagerObserver

removeRootModel

  • removeRootModel(rootModel: M): void
  • Parameters

    • rootModel: M

    Returns void

requestUpdate

  • requestUpdate(targetModel: Model, updateFlags: number, immediate: boolean): void
  • Parameters

    • targetModel: Model
    • updateFlags: number
    • immediate: boolean

    Returns void

Protected runAnalyzePass

  • runAnalyzePass(immediate?: boolean): void
  • Parameters

    • Optional immediate: boolean

    Returns void

Protected runImmediatePass

  • runImmediatePass(): void
  • Returns void

Protected runRefreshPass

  • runRefreshPass(immediate?: boolean): void
  • Parameters

    • Optional immediate: boolean

    Returns void

Protected scheduleUpdate

  • scheduleUpdate(): void
  • Returns void

setRootFlags

  • setRootFlags(rootFlags: number): void
  • Parameters

    • rootFlags: number

    Returns void

Protected unpowerRootModel

  • unpowerRootModel(rootModel: M): void
  • Parameters

    • rootModel: M

    Returns void

Protected unpowerRootModels

  • unpowerRootModels(): void
  • Returns void

updatedModelContext

  • Returns RefreshContext

Protected willAddModelManagerObserver

Protected willAttach

  • willAttach(): void
  • Returns void

Protected willDetach

  • willDetach(): void
  • Returns void

Protected willInsertRootModel

  • willInsertRootModel(rootModel: M): void
  • Parameters

    • rootModel: M

    Returns void

Protected willObserve

Protected willRemoveModelManagerObserver

Protected willRemoveRootModel

  • willRemoveRootModel(rootModel: M): void
  • Parameters

    • rootModel: M

    Returns void

Protected willRequestUpdate

  • willRequestUpdate(targetModel: Model, updateFlags: number, immediate: boolean): void
  • Parameters

    • targetModel: Model
    • updateFlags: number
    • immediate: boolean

    Returns void

Static global

  • Type parameters

    Returns RefreshManager<M>

Generated using TypeDoc