ScriptUtil

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

PVUtil

Provides APIs for PV operation.

ColorFontUtil

Provides color constants and APIs for color and font operations.

DataUtil

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.

ScriptUtil

Provides facility APIs for other operations such as openning an OPI.

ConsoleUtil

Provides facility APIs for writing information to CSS console.

FileUtil

Provides facility APIs for file operations.

WidgetUtil

Provides facility APIs for widget operations.