UI
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(arg_runtime: object, arg_store: object): nothing Create a UI instance. |
Member Summary
Public Members | ||
public |
body_page: * |
|
public |
classes: {} |
|
public |
|
|
public |
page: {"menubar": *, "header": *, "breadcrumbs": *, "content": *, "footer": *} |
|
public |
store: * |
Private Members | ||
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
_rendering_plugins: *[] |
|
private |
|
|
private |
|
|
private |
_runtime: * |
|
private |
_ui_builder: * |
|
private |
_ui_factory: * |
|
private |
_ui_layout: * |
|
private |
|
Method Summary
Public Methods | ||
public |
Create a UI component. |
|
public |
create_display_command(arg_cmd_settings: object): DisplayCommand Create a DisplayCommand instance. |
|
public |
create_local(arg_name: string, arg_component_desc: object): Component Create a UI component. |
|
public |
Get a UI component by its name. |
|
public |
Get current application layout. |
|
public |
get_rendering_class_resolver(): Class Get a resolver function to find UI component class. |
|
public |
Get a resolver function to find UI rendering function. |
|
public |
Get a resolver function to find UI component description. |
|
public |
Test a UI component by its name. |
|
public |
Test if UI is loaded and is ready to process display commands. |
|
public |
load(): nothing Load plugins. |
|
public |
pipe_display_command(arg_display_command: DisplayCommand): nothing Append a display command to the UI commands pipe. |
|
public |
register_rendering_plugin(arg_plugin_class: *): nothing Register a browser rendering plugin. |
|
public |
request_middleware(arg_middleware: string, arg_svc_route: string): Promise Request server about middleware rendering. |
Public Constructors
public constructor(arg_runtime: object, arg_store: object): nothing source
Create a UI instance.
API:
->constructor(arg_runtime, arg_store)
->is_loaded():boolean - Test if UI is loaded and is ready to process display commands.
->create_display_command(arg_cmd_settings):DisplayCommand - Create a DisplayCommand instance.
->pipe_display_command(arg_display_command):nothing - Append a display command to the UI commands pipe.
->get_current_layout():Layout - Get current application layout.
->get_resource_description_resolver():function - Get a resolver function to find UI component description.
->get_rendering_function_resolver():function - Get a resolver function to find UI rendering function.
->get_rendering_class_resolver():Class - Get a resolver function to find UI component class.
->load():nothing - Load plugins.
->get(arg_name):Component - Get a UI component by its name.
->create(arg_name):Promise - Create a UI component.
->create_local(arg_name, arg_component_desc):Component - Create a UI component.
->register_rendering_plugin(arg_plugin_class):nothing - Register a browser rendering plugin.
->request_middleware(arg_middleware, arg_svc_route):Promise - Request server about middleware rendering.
Return:
nothing |
Public Members
public body_page: * source
public classes: {} source
public page: {"menubar": *, "header": *, "breadcrumbs": *, "content": *, "footer": *} source
public store: * source
Private Members
private _display_command_timer: * source
private _display_command_waiting: *[] source
private _display_commands_pipe: * source
private _ordered_used_plugins_name: *[] source
private _rendering_plugins: *[] source
private _rendering_plugins_map: {} source
private _runtime: * source
private _ui_builder: * source
private _ui_factory: * source
private _ui_layout: * source
private _ui_rendering: * source
Public Methods
public create(arg_name: string): Promise source
Create a UI component.
Params:
Name | Type | Attribute | Description |
arg_name | string | component name. |
public create_display_command(arg_cmd_settings: object): DisplayCommand source
Create a DisplayCommand instance.
Params:
Name | Type | Attribute | Description |
arg_cmd_settings | object | command settings. |
public create_local(arg_name: string, arg_component_desc: object): Component source
Create a UI component.
public get(arg_name: string): Component source
Get a UI component by its name.
Params:
Name | Type | Attribute | Description |
arg_name | string | component name. |
public get_rendering_class_resolver(): Class source
Get a resolver function to find UI component class.
Return:
Class | (string)=>Class. |
public get_rendering_function_resolver(): function source
Get a resolver function to find UI rendering function.
public get_resource_description_resolver(): function source
Get a resolver function to find UI component description.
public has(arg_name: string): boolean source
Test a UI component by its name.
Params:
Name | Type | Attribute | Description |
arg_name | string | component name. |
public pipe_display_command(arg_display_command: DisplayCommand): nothing source
Append a display command to the UI commands pipe. If UI isn't ready to process display command, delay append. Commands are pushed into a stream.
Params:
Name | Type | Attribute | Description |
arg_display_command | DisplayCommand | display command to pipe. |
Return:
nothing |
public register_rendering_plugin(arg_plugin_class: *): nothing source
Register a browser rendering plugin.
@param{RenderingPlugin} arg_plugin - rendering plugin.
Params:
Name | Type | Attribute | Description |
arg_plugin_class | * |
Return:
nothing |