/  Yamcs Studio User Guide  /  Scripts  /  Script API  /  GUIUtil

GUIUtilΒΆ

Helper methods for window-level operations on Yamcs Studio.

fullScreen()

Enter or exit full-screen.

openConfirmDialog( message )

Open a confirmation dialog with the given message.

Returns true if the user confirmed.

openInformationDialog( message )

Open an information dialog with the given message.

openWarningDialog( message )

Open a warning dialog with the given message.

openErrorDialog( message )

Open an error dialog with the given message.

openPasswordDialog( message, password )

Open a password input dialog.

Returns true if the user entered the expected password.

Note

OPIs are rendered on the client. The use of this method provides only a false sense of security.

Example

if (GUIUtil.openConfirmDialog("Are you sure?")) {
    // Do something clever.
}