Reference Source
public class | source

RenderingBuilderAssets

Extends:

Loggable → RenderingBuilderAssets

Direct Subclass:

RenderingBuilder

Rendering wrapper class.

Constructor Summary

Public Constructor
public

constructor(arg_runtime: RuntimeBase, arg_assets_styles: string, arg_assets_scripts: string, arg_assets_img: string, arg_assets_html: string, arg_application: TopologyDefineApplication): nothing

Create a rendering wrapper class.

Member Summary

Public Members
public
public
public
public
public
public
public
public
public
Private Members
private
private

Method Summary

Public Methods
public

Get an url to server the given static html asset.

public

Get an url to server the given image asset.

public

Get an url to server the given script asset.

public

Get an url to server the given style asset.

public

get_assets_url(arg_consumer: object, arg_svc_name: string, arg_url: string): string

Get an url to server the given image asset.

public

Get TopologyDefineApplication instance from registered application or from credentials.

public

Get an url to server the given image asset.

public

set_assets_services_names(arg_assets_styles: string, arg_assets_scripts: string, arg_assets_img: string, arg_assets_html: string): nothing

Set assets services names.

Inherited Summary

From class Loggable
public

Log context.

public

Class type flag.

public

Trace is enabled for this flag.

private

Logger manager instance (default undefined)

public

debug(args: string | array): nothing

Trace DEBUG formatted message.

public

disable_trace(): nothing

Disable traces.

public

enable_trace(): nothing

Enable traces.

public

enter_group(arg_group: string): nothing

Trace INFO message on "enter trace group".

public

error(args: string | array): nothing

Trace ERROR formatted message.

public

Define get class name method for non Instance classes.

public

Get instance context.

public

Get logger manager.

public

Define get instance name method for non Instance classes.

public

Get trace flag.

public

info(args: string | array): nothing

Trace INFO formatted message.

public

leave_group(arg_group: string): nothing

Trace INFO message on "leave trace group".

public

separate_level_1(): nothing

Trace INFO trace level 1 separator.

public

separate_level_2(): nothing

Trace INFO trace level 2 separator.

public

separate_level_3(): nothing

Trace INFO trace level 3 separator.

public

set_trace(arg_value: boolean): nothing

Set trace flag.

public

should_trace(arg_traces_cfg: object): boolean

Calculate should trace flag.

public

should_trace_class(arg_traces_cfg: object): boolean

Calculate should trace flag for classes.

public

should_trace_collection_item(arg_traces_cfg: object, arg_collection_name: string, arg_this_item_accessor: string): boolean

Calculate should trace flag for given collection of names or patterns.

public

should_trace_module(arg_traces_cfg: object): boolean

Calculate should trace flag for modules.

public

should_trace_name(arg_traces_cfg: object): boolean

Calculate should trace flag for instances names.

public

Toggle trace flag.

public

Update trace enabled flag.

public

warn(args: string | array): nothing

Trace WARN formatted message.

Public Constructors

public constructor(arg_runtime: RuntimeBase, arg_assets_styles: string, arg_assets_scripts: string, arg_assets_img: string, arg_assets_html: string, arg_application: TopologyDefineApplication): nothing source

Create a rendering wrapper class.

API: ->render_content(arg_title, arg_view, arg_menubar, arg_credentials):string - generate page HTML string.

Override:

Loggable#constructor

Params:

NameTypeAttributeDescription
arg_runtime RuntimeBase

runtime instance.

arg_assets_styles string

application service name to provide style assets.

arg_assets_scripts string

application service name to provide script assets.

arg_assets_img string

application service name to provide image assets.

arg_assets_html string

application service name to provide html assets.

arg_application TopologyDefineApplication

application.

Return:

nothing

Public Members

public assets_html_service_consumer: * source

public assets_html_service_name: * source

public assets_images_service_consumer: * source

public assets_images_service_name: * source

public assets_scripts_service_consumer: * source

public assets_scripts_service_name: * source

public assets_styles_service_consumer: * source

public assets_styles_service_name: * source

public is_render: boolean source

Private Members

private _application: * source

private _runtime: * source

Public Methods

public get_assets_html_url(arg_url: string): string source

Get an url to server the given static html asset.

Params:

NameTypeAttributeDescription
arg_url string

html asset relative url.

Return:

string

absolute html asset url.

public get_assets_image_url(arg_url: string): string source

Get an url to server the given image asset.

Params:

NameTypeAttributeDescription
arg_url string

image asset relative url.

Return:

string

absolute image asset url.

public get_assets_script_url(arg_url: string): string source

Get an url to server the given script asset.

Params:

NameTypeAttributeDescription
arg_url string

script asset relative url.

Return:

string

absolute script asset url.

public get_assets_style_url(arg_url: string): string source

Get an url to server the given style asset.

Params:

NameTypeAttributeDescription
arg_url string

script asset relative url.

Return:

string

absolute script asset url.

public get_assets_url(arg_consumer: object, arg_svc_name: string, arg_url: string): string source

Get an url to server the given image asset.

Params:

NameTypeAttributeDescription
arg_consumer object

service consumer.

arg_svc_name string

service name or null.

arg_url string

image asset relative url.

Return:

string

absolute image asset url.

public get_topology_defined_application(arg_credentials: Credentials): TopologyDefineApplication source

Get TopologyDefineApplication instance from registered application or from credentials.

Params:

NameTypeAttributeDescription
arg_credentials Credentials

Credentials instance (optional).

Return:

TopologyDefineApplication

request user credentials application.

public get_url_with_credentials(arg_url: string): string source

Get an url to server the given image asset.

Params:

NameTypeAttributeDescription
arg_url string

image asset relative url.

Return:

string

absolute image asset url.

public set_assets_services_names(arg_assets_styles: string, arg_assets_scripts: string, arg_assets_img: string, arg_assets_html: string): nothing source

Set assets services names.

Params:

NameTypeAttributeDescription
arg_assets_styles string

styles assets service name.

arg_assets_scripts string

scripts assets service name.

arg_assets_img string

images assets service name.

arg_assets_html string

html assets service name.

Return:

nothing