Service that handles node insertion and removal of nodes

Hierarchy (view full)

Constructors

Properties

communicationChannel: CommunicationChannel
eventTarget: UREventTarget

Methods

  • Add node as either child or sibling

    Parameters

    Returns Promise<void>

  • Get the contributed node instances for the URCap that are currently inserted in the program

    Returns Promise<SubtreeNode[]>

  • Get a readonly version of a given node

    Parameters

    • nodeID: string

      The node to get

    Returns Promise<Readonly<ProgramNode>>

  • Get the tree context from a given program node

    Parameters

    • subTreeNodeId: string

    Returns Promise<TreeContext>

  • returns a reply promise to the specified message

    Type Parameters

    • T

    Parameters

    • type: string

      The type of message being sent

    • Optionaldata: any

      The message data

    Returns Promise<T>

  • returns an observable that will emit any messages replied to the specified message

    Type Parameters

    • T

    Parameters

    • type: string

      The type of message being sent

    • Optionaldata: any

      The message data

    Returns Observable<T>

  • Remove child node

    Parameters

    Returns Promise<void>

  • returns a reply promise for the requested message

    Type Parameters

    • T

    Parameters

    • type: string

      The type of message being sent

    • Optionaldata: any

      The message data

    Returns Promise<T>

  • returns an observable that will emit any messages replied to the requested message

    Type Parameters

    • T

    Parameters

    • type: string

      The type of message being sent

    • Optionaldata: any

      The message data

    Returns Observable<T>

  • Sets the given node as the active program block

    Parameters

    • nodeID: string

      The node to navigate to

    Returns Promise<void>

  • Sets the given node as the active program block

    Parameters

    • nodeID: string

      The node to navigate to

    Returns Promise<void>

  • Update child node

    Parameters

    Returns Promise<void>

    Use updateSubTreeNode instead

  • Update a specific node in the program tree using the given nodes id

    Parameters

    Returns Promise<void>