UIFactory
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(arg_runtime: object, arg_store: object): nothing Create a UI factory instance. |
Member Summary
Public Members | ||
public |
|
Private Members | ||
private |
_cache: {} |
|
private |
_runtime: * |
|
private |
_state_by_path: {} |
|
private |
_store: * |
Method Summary
Public Methods | ||
public |
Create a UI component. |
|
public |
create_instance(arg_component_name: string, arg_component_desc: object, arg_state_path: array): Component | undefined Create a UI component. |
|
public |
create_instance_mix(arg_component_name: string, arg_component_desc: object, arg_state_path: array): object Create a UI component. |
|
public |
create_instance_promise(arg_component_name: string, arg_component_desc: object, arg_state_path: array): Promise Create a UI component. |
|
public |
create_local(arg_component_name: string, arg_component_desc: object): Component Create a UI component with local cache and state. |
|
public |
find_component_desc(arg_state: Immutable.Map, arg_name: string, arg_state_path: array): Immutable.Map | undefined Find UI component description. |
|
public |
Get a UI component by its name. |
|
public |
get_component_class(arg_name: string): Component Create a UI component. |
|
public |
Test a UI component by its name. |
|
public |
request_component_desc(arg_component_name: *): * |
Public Constructors
public constructor(arg_runtime: object, arg_store: object): nothing source
Create a UI factory instance.
API:
->constructor(arg_runtime, arg_store)
->get(arg_name):Component - Get a UI component by its name.
->create(arg_name):Component - Create a UI component.
->find_component_desc(arg_state, arg_name, arg_state_path = []):Immutable.Map|undefined - Find a UI component state.
Return:
nothing |
Public Members
Private Members
private _cache: {} source
private _runtime: * source
private _state_by_path: {} source
private _store: * source
Public Methods
public create(arg_component_name: string): Promise source
Create a UI component.
Params:
Name | Type | Attribute | Description |
arg_component_name | string | component name. |
public create_instance(arg_component_name: string, arg_component_desc: object, arg_state_path: array): Component | undefined source
Create a UI component.
public create_instance_mix(arg_component_name: string, arg_component_desc: object, arg_state_path: array): object source
Create a UI component.
public create_instance_promise(arg_component_name: string, arg_component_desc: object, arg_state_path: array): Promise source
Create a UI component.
public create_local(arg_component_name: string, arg_component_desc: object): Component source
Create a UI component with local cache and state.
public find_component_desc(arg_state: Immutable.Map, arg_name: string, arg_state_path: array): Immutable.Map | undefined source
Find UI component description.
Params:
Name | Type | Attribute | Description |
arg_state | Immutable.Map | registry global state object. |
|
arg_name | string | component name. |
|
arg_state_path | array | state path (optional, default=[]) |
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_component_class(arg_name: string): Component source
Create a UI component.
Params:
Name | Type | Attribute | Description |
arg_name | string | component name. |
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 request_component_desc(arg_component_name: *): * source
Params:
Name | Type | Attribute | Description |
arg_component_name | * |
Return:
* |