public abstract class BaseScriptComponent extends BaseSourcedComponent
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseScriptComponent.ExecutionMode
Controls timing of script execution.
|
BaseComponent.SubComponent| Modifier | Constructor and Description |
|---|---|
protected |
BaseScriptComponent(boolean contentSynced) |
protected |
BaseScriptComponent(String content,
boolean contentSynced) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
_execute(Map<String,Object> variables) |
Object |
execute()
Execute the script with the default variable values.
|
Object |
execute(Map<String,Object> variables)
Execute the script with the specified variable values.
|
BaseScriptComponent.ExecutionMode |
getMode()
Returns the
execution mode. |
String |
getSelf()
Returns the variable name for "this".
|
void |
setMode(BaseScriptComponent.ExecutionMode mode)
Sets the
execution mode. |
getSrc, setContent, setSrc_attach, _initProps, addChild, addChild, addChild, addChildren, addEventForward, addEventForward, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterRemoveChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bringToFront, defaultify, destroy, destroyChildren, detach, finalize, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, getAncestor, getAncestor, getAttribute, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getController, getControllers, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasAttribute, hasEventListener, hasEventListener, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, propertyChange, removeAttribute, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setAttribute, setContentSynced, setData, setIndex, setName, setParent, sub, swapChildren, sync, toString, trimify, validate, validate, validateChild, validateIsChild, validatePage, validateParent, wireControllerprotected BaseScriptComponent(boolean contentSynced)
protected BaseScriptComponent(String content, boolean contentSynced)
@Component.PropertyGetter(value="mode", description="The script\'s execution mode.") public BaseScriptComponent.ExecutionMode getMode()
execution mode.@Component.PropertySetter(value="mode", description="The script\'s execution mode.") public void setMode(BaseScriptComponent.ExecutionMode mode)
execution mode.mode - The execution mode.public String getSelf()
public Object execute(Map<String,Object> variables)
variables - A mapped of named variable values.public Object execute()
Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.