Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ABCWidgetFactory<T, U>

The default implementation of a widget factory.

Type parameters

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private _canStartKernel

_canStartKernel: boolean

Private _defaultFor

_defaultFor: string[]

Private _defaultRendered

_defaultRendered: string[]

Private _fileTypes

_fileTypes: string[]

Private _isDisposed

_isDisposed: boolean = false

Private _modelName

_modelName: string

Private _name

_name: string

Private _preferKernel

_preferKernel: boolean

Private _readOnly

_readOnly: boolean

Private _shutdownOnClose

_shutdownOnClose: boolean

Private _toolbarFactory

_toolbarFactory: ((widget: T) => IToolbarItem[]) | undefined

Private _widgetCreated

_widgetCreated: Signal<IWidgetFactory<T, U>, T> = new Signal<DocumentRegistry.IWidgetFactory<T, U>, T>(this)

Accessors

canStartKernel

  • get canStartKernel(): boolean

defaultFor

  • get defaultFor(): string[]

defaultRendered

  • get defaultRendered(): string[]

fileTypes

  • get fileTypes(): string[]

isDisposed

  • get isDisposed(): boolean

modelName

  • get modelName(): string

name

  • get name(): string

preferKernel

  • get preferKernel(): boolean

readOnly

  • get readOnly(): boolean

shutdownOnClose

  • get shutdownOnClose(): boolean
  • set shutdownOnClose(value: boolean): void

widgetCreated

Methods

createNew

  • createNew(context: IContext<U>, source?: T): T

Protected Abstract createNewWidget

  • createNewWidget(context: IContext<U>, source?: T): T

Protected defaultToolbarFactory

dispose

  • dispose(): void

Generated using TypeDoc