Package org.yamcs.studio.script
Class GUIUtil
java.lang.Object
org.yamcs.studio.script.GUIUtil
- Direct Known Subclasses:
GUIUtil
The utility class to facilitate script programming in GUI operation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Enter or exit full screen.static boolean
openConfirmDialog
(String dialogMessage) Open a dialog to ask for confirmation.static void
openErrorDialog
(String dialogMessage) static void
openInformationDialog
(String dialogMessage) static boolean
openPasswordDialog
(String dialogMessage, String password) Open a password dialog to allow user to input password.static void
openWarningDialog
(String dialogMessage)
-
Constructor Details
-
GUIUtil
public GUIUtil()
-
-
Method Details
-
openPasswordDialog
Open a password dialog to allow user to input password.- Parameters:
dialogMessage
- the message on the dialog.password
- the password- Returns:
- true if user has input the correct password and clicked OK button. false otherwise.
-
openConfirmDialog
Open a dialog to ask for confirmation.- Parameters:
dialogMessage
- the message on the dialog.- Returns:
- true if user has clicked the YES button. False otherwise.
-
openInformationDialog
-
openWarningDialog
-
openErrorDialog
-
fullScreen
public static void fullScreen()Enter or exit full screen.
-