Package edu.umd.cs.findbugs.gui2
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 edu.umd.cs.findbugs.IGuiCallback
IGuiCallback.FormItem
-
Field Summary
FieldsFields inherited from interface edu.umd.cs.findbugs.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 boolean
boxModelIsSame
(JComboBox<String> box, List<String> newPossibleValues) createComboBox
(List<IGuiCallback.FormItem> items, IGuiCallback.FormItem item) private JTextField
createTextField
(List<IGuiCallback.FormItem> items, IGuiCallback.FormItem item) void
displayNonmodelMessage
(String title, String message) Use this executor to queue bug collection updates without interfering with the GUI.getProgressMonitorInputStream
(InputStream in, int length, String msg) void
boolean
If true, do not open windows or browsersprivate void
replaceBoxModelValues
(MutableComboBoxModel<String> mmodel, List<String> newPossibleValues) int
showConfirmDialog
(String message, String title, String ok, String cancel) boolean
showDocument
(URL u) showForm
(String message, String title, List<IGuiCallback.FormItem> items) private int
showFormDialog
(String message, String title, List<IGuiCallback.FormItem> items) void
showMessageDialog
(String message) void
showMessageDialogAndWait
(String message) showQuestionDialog
(String message, String title, String defaultValue) private void
private void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.umd.cs.findbugs.IGuiCallback
setErrorMessage
-
Field Details
-
bugUpdateExecutor
-
parent
-
-
Constructor Details
-
AbstractSwingGuiCallback
-
-
Method Details
-
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 interfaceIGuiCallback
-
showMessageDialogAndWait
- Specified by:
showMessageDialogAndWait
in interfaceIGuiCallback
- Throws:
InterruptedException
-
showMessageDialog
- Specified by:
showMessageDialog
in interfaceIGuiCallback
-
showConfirmDialog
- Specified by:
showConfirmDialog
in interfaceIGuiCallback
-
getProgressMonitorInputStream
- Specified by:
getProgressMonitorInputStream
in interfaceIGuiCallback
-
displayNonmodelMessage
- Specified by:
displayNonmodelMessage
in interfaceIGuiCallback
-
showQuestionDialog
- Specified by:
showQuestionDialog
in interfaceIGuiCallback
-
showForm
- Specified by:
showForm
in interfaceIGuiCallback
-
showDocument
- Specified by:
showDocument
in interfaceIGuiCallback
-
isHeadless
public boolean isHeadless()Description copied from interface:IGuiCallback
If true, do not open windows or browsers- Specified by:
isHeadless
in interfaceIGuiCallback
-
invokeInGUIThread
- Specified by:
invokeInGUIThread
in 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)
-