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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidEnter or exit full screen.static booleanopenConfirmDialog(String dialogMessage) Open a dialog to ask for confirmation.static voidopenErrorDialog(String dialogMessage) static voidopenInformationDialog(String dialogMessage) static booleanopenPasswordDialog(String dialogMessage, String password) Open a password dialog to allow user to input password.static voidopenWarningDialog(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.
-