To facilitate the script programming, most of frequently used APIs are wrapped in the package
org.csstudio.opibuilder.scriptUtil
. The APIs are provided as static methods in
different classes.
To use the APIs in ScriptUtil package, it must be imported to the script:
In JavaScript:
importPackage(Packages.org.csstudio.opibuilder.scriptUtil);
In Python:
from org.csstudio.opibuilder.scriptUtil import PVUtil from org.csstudio.opibuilder.scriptUtil import ColorFontUtil from org.csstudio.opibuilder.scriptUtil import DataUtil from org.csstudio.opibuilder.scriptUtil import ScriptUtil from org.csstudio.opibuilder.scriptUtil import ConsoleUtil
Provides APIs for PV operation.
Provides color constants and APIs for color and font operations.
Utility class to facilitate Javascript programming for data operation. The basic data type such as int, double, boolean and string are exchangeable between JavaScript and Java, which means these types of JavaScript variables can be directly used as parameters of Java methods, but array is not exchangeable between JavaScript and Java. This utility class provides methods to create Java array or convert JavaScript array to Java array.
Provides facility APIs for other operations such as openning an OPI.
Provides facility APIs for writing information to CSS console.
Provides facility APIs for file operations.
Provides facility APIs for widget operations.
Provides facility APIs for GUI related operations.