Class AbstractSwingGuiCallback
java.lang.Object
edu.umd.cs.findbugs.gui2.AbstractSwingGuiCallback
- All Implemented Interfaces:
IGuiCallback
- Direct Known Subclasses:
MainFrame.MyGuiCallback
-
Nested Class Summary
Nested classes/interfaces inherited from interface IGuiCallback
IGuiCallback.FormItem -
Field Summary
FieldsFields inherited from interface IGuiCallback
CANCEL_OPTION, NO_OPTION, OK_CANCEL_OPTION, YES_NO_CANCEL_OPTION, YES_NO_OPTION, YES_OPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanboxModelIsSame(JComboBox<String> box, List<String> newPossibleValues) createComboBox(List<IGuiCallback.FormItem> items, IGuiCallback.FormItem item) private JTextFieldcreateTextField(List<IGuiCallback.FormItem> items, IGuiCallback.FormItem item) voiddisplayNonmodelMessage(String title, String message) Use this executor to queue bug collection updates without interfering with the GUI.getProgressMonitorInputStream(InputStream in, int length, String msg) voidbooleanIf true, do not open windows or browsersprivate voidreplaceBoxModelValues(MutableComboBoxModel<String> mmodel, List<String> newPossibleValues) intshowConfirmDialog(String message, String title, String ok, String cancel) booleanshowDocument(URL u) showForm(String message, String title, List<IGuiCallback.FormItem> items) private intshowFormDialog(String message, String title, List<IGuiCallback.FormItem> items) voidshowMessageDialog(String message) voidshowMessageDialogAndWait(String message) showQuestionDialog(String message, String title, String defaultValue) private voidprivate voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IGuiCallback
setErrorMessage
-
Field Details
-
bugUpdateExecutor
-
parent
-
-
Constructor Details
-
AbstractSwingGuiCallback
-
-
Method Details
-
getBugUpdateExecutor
Description copied from interface:IGuiCallbackUse this executor to queue bug collection updates without interfering with the GUI. Runs on the AWT event thread.- Specified by:
getBugUpdateExecutorin interfaceIGuiCallback
-
showMessageDialogAndWait
- Specified by:
showMessageDialogAndWaitin interfaceIGuiCallback- Throws:
InterruptedException
-
showMessageDialog
- Specified by:
showMessageDialogin interfaceIGuiCallback
-
showConfirmDialog
- Specified by:
showConfirmDialogin interfaceIGuiCallback
-
getProgressMonitorInputStream
- Specified by:
getProgressMonitorInputStreamin interfaceIGuiCallback
-
displayNonmodelMessage
- Specified by:
displayNonmodelMessagein interfaceIGuiCallback
-
showQuestionDialog
- Specified by:
showQuestionDialogin interfaceIGuiCallback
-
showForm
- Specified by:
showFormin interfaceIGuiCallback
-
showDocument
- Specified by:
showDocumentin interfaceIGuiCallback
-
isHeadless
public boolean isHeadless()Description copied from interface:IGuiCallbackIf true, do not open windows or browsers- Specified by:
isHeadlessin interfaceIGuiCallback
-
invokeInGUIThread
- Specified by:
invokeInGUIThreadin interfaceIGuiCallback
-
updateFormItemsFromGui
-
updateComboBoxes
-
replaceBoxModelValues
private void replaceBoxModelValues(MutableComboBoxModel<String> mmodel, List<String> newPossibleValues) -
boxModelIsSame
-
showFormDialog
-
createTextField
-
createComboBox
private JComboBox<String> createComboBox(List<IGuiCallback.FormItem> items, IGuiCallback.FormItem item)
-