Package edu.umd.cs.findbugs.gui2
Class MainFrameComponentFactory.BugSummaryMouseListener
- java.lang.Object
-
- java.awt.event.MouseAdapter
-
- edu.umd.cs.findbugs.gui2.MainFrameComponentFactory.BugSummaryMouseListener
-
- All Implemented Interfaces:
java.awt.event.MouseListener
,java.awt.event.MouseMotionListener
,java.awt.event.MouseWheelListener
,java.util.EventListener
- Enclosing class:
- MainFrameComponentFactory
private class MainFrameComponentFactory.BugSummaryMouseListener extends java.awt.event.MouseAdapter
Listens for when cursor is over the label and when it is clicked. When the cursor is over the label will make the label text blue and the cursor the hand cursor. When clicked will take the user to the source code tab and to the lines of code connected to the SourceLineAnnotation.
-
-
Field Summary
Fields Modifier and Type Field Description private BugInstance
bugInstance
private javax.swing.JLabel
label
private SourceLineAnnotation
note
-
Constructor Summary
Constructors Constructor Description BugSummaryMouseListener(BugInstance bugInstance, javax.swing.JLabel label, SourceLineAnnotation link)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mouseClicked(java.awt.event.MouseEvent e)
void
mouseEntered(java.awt.event.MouseEvent e)
void
mouseExited(java.awt.event.MouseEvent e)
-
-
-
Field Detail
-
bugInstance
private final BugInstance bugInstance
-
label
private final javax.swing.JLabel label
-
note
private final SourceLineAnnotation note
-
-
Constructor Detail
-
BugSummaryMouseListener
BugSummaryMouseListener(@Nonnull BugInstance bugInstance, @Nonnull javax.swing.JLabel label, @Nonnull SourceLineAnnotation link)
-
-
Method Detail
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interfacejava.awt.event.MouseListener
- Overrides:
mouseClicked
in classjava.awt.event.MouseAdapter
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered
in interfacejava.awt.event.MouseListener
- Overrides:
mouseEntered
in classjava.awt.event.MouseAdapter
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interfacejava.awt.event.MouseListener
- Overrides:
mouseExited
in classjava.awt.event.MouseAdapter
-
-