Provides the console related functions.

Hierarchy

  • Console

Constructors

Properties

_conletFunctionRegistry: Map<string, Map<string, ((conletId: string, ...args: any) => void)>> = ...
_connectionInactivityTimeout: number = 0
_connectionRefreshInterval: number = 0
_dialogIdCounter: number = 0
_isConfigured: boolean = false
_modalDialogTemplate: HTMLElement = ...
_pageComponentCounter: number = 0
_previewTemplate: HTMLElement = ...
_renderer: null | Renderer = null
_resourceManager: ResourceManager
_viewTemplate: HTMLElement = ...
_webSocket: ConsoleWebSocket = ...

Accessors

  • get connectionInactivityTimeout(): number
  • Returns number

  • get connectionRefreshInterval(): number
  • Returns number

Methods

  • Parameters

    • properties: Map<string, string>
    • element: HTMLElement

    Returns void

  • Parameters

    • container: HTMLElement
    • isUpdate: boolean

    Returns void

  • Execute unload functions depth first.

    Parameters

    • element: Element
    • isUpdate: boolean

    Returns void

  • Parameters

    • notifications: Object[]
    • conlet: Conlet

    Returns void

  • Called when the console layout is received or when a conlet has been added or updated. Attempts to resolve all unresolved components, i.e. calls addConlet for the conlets that provide the missing component.

    Returns void

  • Parameters

    • conletType: string
    • conletId: string
    • modes: RenderMode[]
    • contentString: string

    Returns void

  • Parameters

    • conletType: string
    • conletId: string
    • modes: RenderMode[]
    • content: string
    • sticky: boolean
    • foreground: boolean

    Returns void

  • Parameters

    • conletType: string
    • conletId: string
    • modes: RenderMode[]
    • content: string
    • foreground: boolean

    Returns void

  • Sends a notification to the server requesting the addition of a conlet.

    Parameters

    • conletType: string

      the type of the conlet to add

    • renderModes: RenderMode[]

      the requested render mode(s), Foreground is automatically added

    • properties: null | Map<string, string> = null

    Returns void

  • Parameters

    Returns Map<string, string>

  • Parameters

    • resume: (() => void)
        • (): void
        • Returns void

    Returns void

  • Invokes the functions defined in data-jgwc-on-action attributes of the tree with root container. If close is true also executes the "on unload" functions. Must be invoked by edit or modal dialogs when they are closed.

    Returns

    true if the dialog should be closed

    Parameters

    • container: HTMLElement

      the container of the edit dialog

    • apply: boolean
    • close: boolean

    Returns void

  • Starts the websocket connection to the server, invokes init and sends the consoleReady message to the server.

    Parameters

    • connectionId: string

      the connection id

    • options: { inactivityTimeout?: number; refreshInterval?: number }

      additional options

      • Optional inactivityTimeout?: number
      • Optional refreshInterval?: number

    Returns void

  • Increases the lock count on the receiver. As long as the lock count is greater than 0, the invocation of handlers is suspended.

    Returns void

  • Sends a JSON RPC notification to the server with method notifyConletModel and as parameters the given conletId, the method and the additional arguments.

    Parameters

    • conletId: string

      the id of the conlet to send to

    • method: string

      the method to invoke

    • Rest ...args: any[]

      additional arguments to send

    Returns void

  • Registers a conlet function that is to be invoked when a JSON RPC notification with method notifyConletView is received from the server.

    Parameters

    • conletClass: string

      the conlet type for which the method is registered

    • functionName: string

      the method that is registered

    • conletFunction: ((conletId: string, ...args: any[]) => void)

      the function to invoke

        • (conletId: string, ...args: any[]): void
        • Parameters

          • conletId: string
          • Rest ...args: any[]

          Returns void

    Returns void

  • Removes a conlet preview by invoking the respective methods of the associated renderer. If a view of the conlet is displayed, it will be removed, too.

    After un-displaying the conlet, any "execOnUnload" functions in the conlet tree are invoked (depth first) and JSON RPC notifications with method conletDeleted and the conlet id as parameter are sent to the server for nested component conlets and the preview itself (again depth first). The notifications for the component conlets have as additional argument the collected properties.

    Parameters

    • conletId: string

    Returns void

  • Removes a conlet view by invoking the respective methods of the associated renderer.

    After un-displaying the conlet, any "execOnUnload" functions in the conlet tree are invoked (depth first) and JSON RPC notifications with method conletDeleted and the conlet id as parameter are sent to the server for nested component conlets and the view itself (again depth first). The notifications for the component conlets have as additional argument the collected properties.

    Parameters

    • conletId: string

    Returns void

  • Sends a notification that requests the rendering of a conlet.

    Parameters

    • conletId: string

      the conlet id

    • modes: RenderMode[]

      the requested render mode(s)

    Returns void

  • Invokes the given method on the server.

    Parameters

    • method: string
    • Rest ...params: any[]

      the parameters

    Returns void

  • Sends a notification for changing the language to the server.

    Parameters

    • locale: string

      the id of the selected locale

    • reload: boolean

    Returns void

  • Decreases the lock count on the receiver. When the count reaches 0, the invocation of handlers is resumed.

    Returns void

  • Delegates to updateConletTitle.

    Parameters

    • conletId: string
    • title: string

    Returns void

  • Send the current console layout to the server.

    Parameters

    • previewLayout: string[]

      the conlet ids from top left to bottom right

    • tabLayout: string[]
    • xtraInfo: Object

      extra information spcific to the console implementation

    Returns void

Generated using TypeDoc