Class OutputAreaModel

The default implementation of the IOutputAreaModel.

Hierarchy

Implements

Constructors

Properties

_add: any

Add a copy of the item to the list.

Returns

The list length

_changed: any
_createItem: any

Create an output item and hook up its signals.

_isDisposed: any
_lastName: any
_lastStream: any
_onGenericChange: any

Handle a change to an item.

_onListChanged: any

Handle a change to the list.

_stateChanged: any
_trusted: any
clearNext: boolean

A flag that is set when we want to clear the output area after the next addition to it.

The output content factory used by the model.

An observable list containing the output models for this output area.

Accessors

  • get isDisposed(): boolean
  • Test whether the model is disposed.

    Returns boolean

  • get length(): number
  • Get the length of the items in the model.

    Returns number

  • get trusted(): boolean
  • Get whether the model is trusted.

    Returns boolean

  • set trusted(value): void
  • Set whether the model is trusted.

    Notes

    Changing the value will cause all of the models to re-set.

    Parameters

    • value: boolean

    Returns void

Methods

  • Add an output, which may be combined with previous output.

    Parameters

    Returns number

    The total number of outputs.

    Notes

    The output bundle is copied. Contiguous stream outputs of the same name are combined.

  • Clear all of the output.

    Parameters

    • Optional wait: boolean

      Delay clearing the output until the next message is added.

    Returns void

  • Dispose of the resources used by the model.

    Returns void

  • Deserialize the model from JSON.

    Notes

    This will clear any existing data.

    Parameters

    Returns void

  • Set the value at the specified index.

    Parameters

    Returns void

  • Whether a new value should be consolidated with the previous output.

    This will only be called if the minimal criteria of both being stream messages of the same type.

    Parameters

    Returns boolean

Generated using TypeDoc