Class: LoadStructureCommand

jsbeam LoadStructureCommand

Command that loads structure file

new LoadStructureCommand(commandID, data)

Command that loads structure file. Structure is loaded using alternative laoder, so if structure for current language doesn't exist structure from default language will be used.
Parameters:
Name Type Description
commandID string command id
data chaining.CommandDataVO | undefined command data

Extends

Members


<readonly> dispatcher

Dispatcher to recieve signals from the command
Properties:
Type Description
coreutils.Signal
Inherited From:
Default Value:
  • null

<readonly> running

Indicates if the command is executed and not ready yet.
Properties:
Type Description
boolean
Inherited From:
Default Value:
  • false

Methods


<protected> _complete()

Called when command completed its task. Sends ready event and if autoDestroy is true then destroys command
Inherited From:

<protected> _error(msg)

Called when command can't complete its task. Sends error event and if autoDestroy is true then desotry command
Parameters:
Name Type Description
msg string | null error message
Inherited From:

<abstract, protected> _execute()

Execute command. Override this method to execute specific task
Inherited From:

<protected> _getProperty(propertyID)

Get property
Parameters:
Name Type Description
propertyID string id of property
Inherited From:
Returns:
value of property
Type
* | null

<protected> _hasProperty(propertyID)

Check if commands has proeprty
Parameters:
Name Type Description
propertyID string id of property
Inherited From:
Returns:
has/hasn't
Type
boolean

addProperty(id, value)

Add proeprty to the command
Parameters:
Name Type Description
id string id of the property
value * value of the property
Inherited From:
Returns:
returns self for chaining
Type
chaining.AbstractCommand

destroy()

Destroy command object and release resources
Inherited From:

removeProperty(id)

Remove property of the command
Parameters:
Name Type Description
id string id of the property
Inherited From:
Returns:
returns self for chaining
Type
chaining.AbstractCommand

start()

Start execution of the comamnd
Inherited From:

stop()

Stop execution of the comamnd
Inherited From: