Package org.openstreetmap.josm.gui.util
Class AbstractTag2LinkPopupListener
- java.lang.Object
-
- org.openstreetmap.josm.gui.util.AbstractTag2LinkPopupListener
-
- All Implemented Interfaces:
EventListener
,PopupMenuListener
public abstract class AbstractTag2LinkPopupListener extends Object implements PopupMenuListener
A popup listener which adds web links based on tags of OSM primitives.- Since:
- 15673
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,OpenBrowserAction>
browserActions
private Collection<Component>
itemList
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTag2LinkPopupListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addLinks(JPopupMenu popup, String key, String value)
void
popupMenuCanceled(PopupMenuEvent e)
void
popupMenuWillBecomeInvisible(PopupMenuEvent e)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.event.PopupMenuListener
popupMenuWillBecomeVisible
-
-
-
-
Field Detail
-
browserActions
private final Map<String,OpenBrowserAction> browserActions
-
itemList
private final Collection<Component> itemList
-
-
Constructor Detail
-
AbstractTag2LinkPopupListener
protected AbstractTag2LinkPopupListener()
-
-
Method Detail
-
popupMenuWillBecomeInvisible
public void popupMenuWillBecomeInvisible(PopupMenuEvent e)
- Specified by:
popupMenuWillBecomeInvisible
in interfacePopupMenuListener
-
popupMenuCanceled
public void popupMenuCanceled(PopupMenuEvent e)
- Specified by:
popupMenuCanceled
in interfacePopupMenuListener
-
addLinks
protected void addLinks(JPopupMenu popup, String key, String value)
-
-