Package jmri.util.swing
Interface JmriMouseListener
- All Superinterfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic MouseListeneradapt(JmriMouseListener listener) Adapt a JmriMouseListener to a MouseListener.voidInvoked when the mouse button has been clicked (pressed and released) on a component.voidInvoked when the mouse enters a component.voidInvoked when the mouse exits a component.voidInvoked when a mouse button has been pressed on a component.voidInvoked when a mouse button has been released on a component.
-
Method Details
-
adapt
Adapt a JmriMouseListener to a MouseListener.- Parameters:
listener- the JmriMouseListener- Returns:
- the MouseListener
-
mouseClicked
Invoked when the mouse button has been clicked (pressed and released) on a component.- Parameters:
e- the event to be processed
-
mousePressed
Invoked when a mouse button has been pressed on a component.- Parameters:
e- the event to be processed
-
mouseReleased
Invoked when a mouse button has been released on a component.- Parameters:
e- the event to be processed
-
mouseEntered
Invoked when the mouse enters a component.- Parameters:
e- the event to be processed
-
mouseExited
Invoked when the mouse exits a component.- Parameters:
e- the event to be processed
-