Class UserQueryList.QueryListMouseAdapter
- java.lang.Object
-
- java.awt.event.MouseAdapter
-
- org.openstreetmap.josm.gui.download.UserQueryList.QueryListMouseAdapter
-
- All Implemented Interfaces:
java.awt.event.MouseListener
,java.awt.event.MouseMotionListener
,java.awt.event.MouseWheelListener
,java.util.EventListener
- Enclosing class:
- UserQueryList
private class UserQueryList.QueryListMouseAdapter extends java.awt.event.MouseAdapter
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JPopupMenu
elementPopup
private javax.swing.JPopupMenu
emptySelectionPopup
private javax.swing.JList<UserQueryList.SelectorItem>
list
private SearchTextResultListPanel.ResultListModel<UserQueryList.SelectorItem>
model
-
Constructor Summary
Constructors Constructor Description QueryListMouseAdapter(javax.swing.JList<UserQueryList.SelectorItem> list, SearchTextResultListPanel.ResultListModel<UserQueryList.SelectorItem> listModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
initPopupMenus()
private int
locationToIndex(java.awt.Point p)
void
mouseClicked(java.awt.event.MouseEvent e)
void
mouseMoved(java.awt.event.MouseEvent e)
-
-
-
Field Detail
-
list
private final javax.swing.JList<UserQueryList.SelectorItem> list
-
model
private final SearchTextResultListPanel.ResultListModel<UserQueryList.SelectorItem> model
-
emptySelectionPopup
private final javax.swing.JPopupMenu emptySelectionPopup
-
elementPopup
private final javax.swing.JPopupMenu elementPopup
-
-
Constructor Detail
-
QueryListMouseAdapter
QueryListMouseAdapter(javax.swing.JList<UserQueryList.SelectorItem> list, SearchTextResultListPanel.ResultListModel<UserQueryList.SelectorItem> listModel)
-
-
Method Detail
-
locationToIndex
private int locationToIndex(java.awt.Point p)
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interfacejava.awt.event.MouseListener
- Overrides:
mouseClicked
in classjava.awt.event.MouseAdapter
-
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
mouseMoved
in interfacejava.awt.event.MouseMotionListener
- Overrides:
mouseMoved
in classjava.awt.event.MouseAdapter
-
initPopupMenus
private void initPopupMenus()
-
-