Class TaggingPresetLabel.PresetLabelMouseListener
- java.lang.Object
-
- org.openstreetmap.josm.gui.tagging.presets.TaggingPresetLabel.PresetLabelMouseListener
-
- All Implemented Interfaces:
MouseListener
,EventListener
- Enclosing class:
- TaggingPresetLabel
public static class TaggingPresetLabel.PresetLabelMouseListener extends Object implements MouseListener
Small helper class that manages the highlighting of the label on hover as well as opening the corresponding preset when clicked
-
-
Constructor Summary
Constructors Constructor Description PresetLabelMouseListener(JLabel lbl)
Constructs a newPresetLabelMouseListener
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mouseClicked(MouseEvent e)
void
mouseEntered(MouseEvent e)
void
mouseExited(MouseEvent e)
void
mousePressed(MouseEvent e)
void
mouseReleased(MouseEvent e)
-
-
-
Constructor Detail
-
PresetLabelMouseListener
public PresetLabelMouseListener(JLabel lbl)
Constructs a newPresetLabelMouseListener
.- Parameters:
lbl
- Label to highlight
-
-
Method Detail
-
mouseClicked
public void mouseClicked(MouseEvent e)
- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExited
in interfaceMouseListener
-
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased
in interfaceMouseListener
-
-