Class CommandLineUiCallback

  • All Implemented Interfaces:
    IGuiCallback

    public class CommandLineUiCallback
    extends java.lang.Object
    implements IGuiCallback
    Implementation of the UI callback for command line sessions.
    Author:
    andy.st
    • Constructor Detail

      • CommandLineUiCallback

        public CommandLineUiCallback()
    • Method Detail

      • showMessageDialogAndWait

        public void showMessageDialogAndWait​(java.lang.String message)
                                      throws java.lang.InterruptedException
        Specified by:
        showMessageDialogAndWait in interface IGuiCallback
        Throws:
        java.lang.InterruptedException
      • showConfirmDialog

        public int showConfirmDialog​(java.lang.String message,
                                     java.lang.String title,
                                     java.lang.String ok,
                                     java.lang.String cancel)
        Specified by:
        showConfirmDialog in interface IGuiCallback
      • getProgressMonitorInputStream

        public java.io.InputStream getProgressMonitorInputStream​(java.io.InputStream in,
                                                                 int length,
                                                                 java.lang.String msg)
        Specified by:
        getProgressMonitorInputStream in interface IGuiCallback
      • setErrorMessage

        public void setErrorMessage​(java.lang.String errorMsg)
        Specified by:
        setErrorMessage in interface IGuiCallback
      • displayNonmodelMessage

        public void displayNonmodelMessage​(java.lang.String title,
                                           java.lang.String message)
        Specified by:
        displayNonmodelMessage in interface IGuiCallback
      • showQuestionDialog

        public java.lang.String showQuestionDialog​(java.lang.String message,
                                                   java.lang.String title,
                                                   java.lang.String defaultValue)
        Specified by:
        showQuestionDialog in interface IGuiCallback
      • showForm

        public java.util.List<java.lang.String> showForm​(java.lang.String message,
                                                         java.lang.String title,
                                                         java.util.List<IGuiCallback.FormItem> labels)
        Specified by:
        showForm in interface IGuiCallback
      • getBugUpdateExecutor

        public java.util.concurrent.ExecutorService getBugUpdateExecutor()
        Description copied from interface: IGuiCallback
        Use this executor to queue bug collection updates without interfering with the GUI. Runs on the AWT event thread.
        Specified by:
        getBugUpdateExecutor in interface IGuiCallback
      • isHeadless

        public boolean isHeadless()
        Description copied from interface: IGuiCallback
        If true, do not open windows or browsers
        Specified by:
        isHeadless in interface IGuiCallback