public abstract static class MouseUtils.PopupMouseAdapter extends MouseAdapter
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_THRESHOLD
Deprecated.
Obsoleted as of 3.4, PopupMouseAdapter now uses isPopupTrigger properly.
Threshold does nothing, please use default constructor without treshold.
|
Constructor and Description |
---|
PopupMouseAdapter()
Constructs PopupMouseAdapter.
|
PopupMouseAdapter(int threshold)
Deprecated.
Obsoleted as of 3.4, by class rewrite to use isPopupTrigger.
This constructor now just delegates to super constructor, please use
default constructor instead.
|
Modifier and Type | Method and Description |
---|---|
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
protected abstract void |
showPopup(MouseEvent evt)
Called when the sequnce of mouse events should lead to actual
showing of the popup menu.
|
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved
@Deprecated public static final int DEFAULT_THRESHOLD
@Deprecated public PopupMouseAdapter(int threshold)
threshold
- The threshold to be usedpublic PopupMouseAdapter()
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class MouseAdapter
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class MouseAdapter
protected abstract void showPopup(MouseEvent evt)