jmri.jmrit.throttle
Class KeyListenerInstaller

java.lang.Object
  extended by jmri.jmrit.throttle.KeyListenerInstaller

public class KeyListenerInstaller
extends Object

A Visitor class for installing a KeyListener on a container and all of its subcomponents.

Author:
glen

Constructor Summary
KeyListenerInstaller()
           
 
Method Summary
static void installKeyListenerOnAllComponents(KeyListener k, Container c)
          Add a KeyListener to all components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyListenerInstaller

public KeyListenerInstaller()
Method Detail

installKeyListenerOnAllComponents

public static void installKeyListenerOnAllComponents(KeyListener k,
                                                     Container c)
Add a KeyListener to all components.

Parameters:
k - The KeyListener to add.
c - The container to which all components are given this listener


Copyright © 1997 - 2011 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