jmri.util
Class MouseInputAdapterInstaller

java.lang.Object
  extended by jmri.util.MouseInputAdapterInstaller

public class MouseInputAdapterInstaller
extends Object

A Visitor class for installing a MouseInputAdapter on a container and all of its subcomponents. This class is based on the KeyListenerInstaller class.

Author:
Paul Bender Copyright 2005

Constructor Summary
MouseInputAdapterInstaller()
           
 
Method Summary
static void installMouseInputAdapterOnAllComponents(MouseInputAdapter m, Container c)
          Add a MouseInputAdapter to all components.
static void installMouseListenerOnAllComponents(MouseListener m, Container c)
          Add a MouseListener to all components.
static void installMouseMotionListenerOnAllComponents(MouseMotionListener m, Container c)
          Add a MouseMotionListener to all components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseInputAdapterInstaller

public MouseInputAdapterInstaller()
Method Detail

installMouseInputAdapterOnAllComponents

public static void installMouseInputAdapterOnAllComponents(MouseInputAdapter m,
                                                           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(MouseListener m,
                                                       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(MouseMotionListener m,
                                                             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


Copyright © 1997 - 2009 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads