Package jmri.util
Class MouseInputAdapterInstaller
java.lang.Object
jmri.util.MouseInputAdapterInstaller
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAdd a MouseInputAdapter to all components.static voidAdd a MouseListener to all components.static voidAdd a MouseMotionListener to all components.
-
Constructor Details
-
MouseInputAdapterInstaller
public MouseInputAdapterInstaller()
-
-
Method Details
-
installMouseInputAdapterOnAllComponents
Add a MouseInputAdapter to all components.- Parameters:
m- The MouseInputAdapter to add.c- The container to which all components are given this listener
-
installMouseListenerOnAllComponents
Add a MouseListener to all components.- Parameters:
m- The MouseListener to add.c- The container to which all components are given this listener
-
installMouseMotionListenerOnAllComponents
Add a MouseMotionListener to all components.- Parameters:
m- The MouseMotionListener to add.c- The container to which all components are given this listener
-