Package jmri.util.swing
Class JmriMouseAdapter
- java.lang.Object
-
- jmri.util.swing.JmriMouseAdapter
-
- All Implemented Interfaces:
java.util.EventListener
,JmriMouseListener
- Direct Known Subclasses:
BeanTableDataModel.PopupListener
,BeanTableDataModel.TableHeaderListener
,DispatcherFrame.TableHeaderListener
,IconItemPanel.IconListener
public class JmriMouseAdapter extends java.lang.Object implements JmriMouseListener
Replacement for MouseAdaptor. This class is used to replace MouseEvent with JmriMouseEvent.
-
-
Constructor Summary
Constructors Constructor Description JmriMouseAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mouseClicked(JmriMouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component.void
mouseEntered(JmriMouseEvent e)
Invoked when the mouse enters a component.void
mouseExited(JmriMouseEvent e)
Invoked when the mouse exits a component.void
mousePressed(JmriMouseEvent e)
Invoked when a mouse button has been pressed on a component.void
mouseReleased(JmriMouseEvent e)
Invoked when a mouse button has been released on a component.
-
-
-
Constructor Detail
-
JmriMouseAdapter
public JmriMouseAdapter()
-
-
Method Detail
-
mouseClicked
public void mouseClicked(JmriMouseEvent e)
Description copied from interface:JmriMouseListener
Invoked when the mouse button has been clicked (pressed and released) on a component.- Specified by:
mouseClicked
in interfaceJmriMouseListener
- Parameters:
e
- the event to be processed
-
mousePressed
public void mousePressed(JmriMouseEvent e)
Description copied from interface:JmriMouseListener
Invoked when a mouse button has been pressed on a component.- Specified by:
mousePressed
in interfaceJmriMouseListener
- Parameters:
e
- the event to be processed
-
mouseReleased
public void mouseReleased(JmriMouseEvent e)
Description copied from interface:JmriMouseListener
Invoked when a mouse button has been released on a component.- Specified by:
mouseReleased
in interfaceJmriMouseListener
- Parameters:
e
- the event to be processed
-
mouseEntered
public void mouseEntered(JmriMouseEvent e)
Description copied from interface:JmriMouseListener
Invoked when the mouse enters a component.- Specified by:
mouseEntered
in interfaceJmriMouseListener
- Parameters:
e
- the event to be processed
-
mouseExited
public void mouseExited(JmriMouseEvent e)
Description copied from interface:JmriMouseListener
Invoked when the mouse exits a component.- Specified by:
mouseExited
in interfaceJmriMouseListener
- Parameters:
e
- the event to be processed
-
-