Package jmri.util.swing
Interface JmriMouseListener
-
- All Superinterfaces:
java.util.EventListener
- All Known Implementing Classes:
BeanTableDataModel.PopupListener
,BeanTableDataModel.TableHeaderListener
,ButtonEditor
,ButtonTrigger
,CatalogPanel.IconDisplayPanel
,CatalogPanel.IconListener
,ControlPanelEditor
,DispatcherFrame.TableHeaderListener
,Editor
,GlobalVariableComboIcon
,GlobalVariableInputIcon
,GlobalVariableSpinnerIcon
,IconItemPanel.IconDisplayPanel
,IconItemPanel.IconListener
,JmriMouseAdapter
,LayoutEditor
,MemoryComboIcon
,MemoryInputIcon
,MemoryOrGVComboIcon
,MemorySpinnerIcon
,PanelEditor
,PositionableJPanel
,SwitchboardEditor
,TrackerTableAction.TableFrame
,WarrantTableFrame
public interface JmriMouseListener extends java.util.EventListener
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static java.awt.event.MouseListener
adapt(JmriMouseListener listener)
Adapt a JmriMouseListener to a MouseListener.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.
-
-
-
Method Detail
-
adapt
static java.awt.event.MouseListener adapt(JmriMouseListener listener)
Adapt a JmriMouseListener to a MouseListener.- Parameters:
listener
- the JmriMouseListener- Returns:
- the MouseListener
-
mouseClicked
void mouseClicked(JmriMouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component.- Parameters:
e
- the event to be processed
-
mousePressed
void mousePressed(JmriMouseEvent e)
Invoked when a mouse button has been pressed on a component.- Parameters:
e
- the event to be processed
-
mouseReleased
void mouseReleased(JmriMouseEvent e)
Invoked when a mouse button has been released on a component.- Parameters:
e
- the event to be processed
-
mouseEntered
void mouseEntered(JmriMouseEvent e)
Invoked when the mouse enters a component.- Parameters:
e
- the event to be processed
-
mouseExited
void mouseExited(JmriMouseEvent e)
Invoked when the mouse exits a component.- Parameters:
e
- the event to be processed
-
-