Package jmri.util

Class 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.
    • 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