Provides the console related functions.

Constructors

Accessors

  • get connectionInactivityTimeout(): number
  • Returns number

  • get connectionRefreshInterval(): number
  • Returns number

Methods

  • 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), RenderMode.Foreground is automatically added

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

    Returns void

  • Closes the modal dialog that has been opened by the conlet with the given id.

    Parameters

    • _conletType: string

      the conlet's type

    • conletId: string

      the conlet's id

    Returns void

  • Parameters

    Returns Map<string, string>

  • 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.

    Parameters

    • container: HTMLElement

      the container of the edit dialog

    • apply: boolean
    • close: boolean

    Returns void

    true if the dialog should be closed

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

    Parameters

    • connectionId: string

      the connection id

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

      additional options

      • OptionalinactivityTimeout?: number
      • OptionalrefreshInterval?: 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

  • Opens a modal dialog related to the conlet with the given type and id.

    Parameters

    • conletType: string

      the opening conlet's type

    • conletId: string

      the opening conlet's id

    • content: string

      the dialog's content as HTML

    • options: ModalDialogOptions

      the dialog options

    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, ...args): 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 conletsDeleted 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

      the conlet id

    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 conletsDeleted 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

      the conlet id

    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

      the method

    • 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

  • Send the current console layout to the server.

    Parameters

    • previewLayout: string[]

      the conlet ids from top left to bottom right

    • tabLayout: string[]

      the ids of the conlets viewable in tabs

    • xtraInfo: Object

      extra information spcific to the console implementation

    Returns void