Class PropertyChangeScript
- java.lang.Object
-
- com.inductiveautomation.perspective.gateway.script.ScriptFunctionHelper
-
- com.inductiveautomation.perspective.gateway.model.PropertyChangeScript
-
public class PropertyChangeScript extends ScriptFunctionHelper
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.perspective.gateway.script.ScriptFunctionHelper
signature
-
-
Constructor Summary
Constructors Constructor Description PropertyChangeScript(PropertyKey target, PropertyChangeScriptConfig config, LoggerEx log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PerspectiveElementgetComponent()protected java.lang.StringgetDescription()Describe the location/context of this script.protected LoggerExgetLog()voidshutdown()voidstartup(PerspectiveElement component)Subscribes to the target property.-
Methods inherited from class com.inductiveautomation.perspective.gateway.script.ScriptFunctionHelper
invoke, logWarn, onScriptLibraryChange, py2qualified
-
-
-
-
Constructor Detail
-
PropertyChangeScript
public PropertyChangeScript(PropertyKey target, PropertyChangeScriptConfig config, LoggerEx log)
-
-
Method Detail
-
getLog
protected LoggerEx getLog()
- Overrides:
getLogin classScriptFunctionHelper
-
getComponent
public PerspectiveElement getComponent()
- Specified by:
getComponentin classScriptFunctionHelper
-
getDescription
protected java.lang.String getDescription()
Description copied from class:ScriptFunctionHelperDescribe the location/context of this script. Used for error messages- Overrides:
getDescriptionin classScriptFunctionHelper
-
startup
public void startup(PerspectiveElement component) throws java.lang.Exception
Subscribes to the target property.- Throws:
java.lang.Exception
-
shutdown
public void shutdown()
-
-