Class AbstractSwingGuiCallback

    • Field Detail

      • parent

        private final java.awt.Component parent
    • Constructor Detail

      • AbstractSwingGuiCallback

        public AbstractSwingGuiCallback​(java.awt.Component parent)
    • Method Detail

      • 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
      • 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
      • 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> items)
        Specified by:
        showForm 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
      • updateFormItemsFromGui

        private void updateFormItemsFromGui​(java.util.List<IGuiCallback.FormItem> items)
      • replaceBoxModelValues

        private void replaceBoxModelValues​(javax.swing.MutableComboBoxModel<java.lang.String> mmodel,
                                           java.util.List<java.lang.String> newPossibleValues)
      • boxModelIsSame

        private boolean boxModelIsSame​(javax.swing.JComboBox<java.lang.String> box,
                                       java.util.List<java.lang.String> newPossibleValues)
      • showFormDialog

        private int showFormDialog​(java.lang.String message,
                                   java.lang.String title,
                                   java.util.List<IGuiCallback.FormItem> items)