Package jmri.util
Class MouseInputAdapterInstaller
- java.lang.Object
-
- jmri.util.MouseInputAdapterInstaller
-
public class MouseInputAdapterInstaller extends java.lang.Object
A Visitor class for installing a MouseInputAdapter on a container and all of its subcomponents. This class is based on the KeyListenerInstaller class.
-
-
Constructor Summary
Constructors Constructor Description MouseInputAdapterInstaller()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
installMouseInputAdapterOnAllComponents(javax.swing.event.MouseInputAdapter m, java.awt.Container c)
Add a MouseInputAdapter to all components.static void
installMouseListenerOnAllComponents(JmriMouseListener m, java.awt.Container c)
Add a MouseListener to all components.static void
installMouseMotionListenerOnAllComponents(java.awt.event.MouseMotionListener m, java.awt.Container c)
Add a MouseMotionListener to all components.
-
-
-
Constructor Detail
-
MouseInputAdapterInstaller
public MouseInputAdapterInstaller()
-
-
Method Detail
-
installMouseInputAdapterOnAllComponents
public static void installMouseInputAdapterOnAllComponents(javax.swing.event.MouseInputAdapter m, java.awt.Container c)
Add a MouseInputAdapter to all components.- Parameters:
m
- The MouseInputAdapter to add.c
- The container to which all components are given this listener
-
installMouseListenerOnAllComponents
public static void installMouseListenerOnAllComponents(JmriMouseListener m, java.awt.Container c)
Add a MouseListener to all components.- Parameters:
m
- The MouseListener to add.c
- The container to which all components are given this listener
-
installMouseMotionListenerOnAllComponents
public static void installMouseMotionListenerOnAllComponents(java.awt.event.MouseMotionListener m, java.awt.Container c)
Add a MouseMotionListener to all components.- Parameters:
m
- The MouseMotionListener to add.c
- The container to which all components are given this listener
-
-