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 PerspectiveElement
getComponent()
protected java.lang.String
getDescription()
Describe the location/context of this script.protected LoggerEx
getLog()
void
shutdown()
void
startup(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:
getLog
in classScriptFunctionHelper
-
getComponent
public PerspectiveElement getComponent()
- Specified by:
getComponent
in classScriptFunctionHelper
-
getDescription
protected java.lang.String getDescription()
Description copied from class:ScriptFunctionHelper
Describe the location/context of this script. Used for error messages- Overrides:
getDescription
in classScriptFunctionHelper
-
startup
public void startup(PerspectiveElement component) throws java.lang.Exception
Subscribes to the target property.- Throws:
java.lang.Exception
-
shutdown
public void shutdown()
-
-