Class LearnThrottleFrame

All Implemented Interfaces:
ComponentListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, BeanInterface, ModifiedFlag, WindowInterface

public class LearnThrottleFrame extends JmriJFrame
A JFrame to contain throttle elements such as speed control, function panel. It keeps a record of the throttle commands for playback later.

Modeled on package jmri.jmrit.throttle by

See Also:
  • Constructor Details

  • Method Details

    • notifyThrottleFound

      Get notification that a throttle has been found as you requested.
      Parameters:
      t - An instantiation of the DccThrottle with the address requested.
    • dispose

      public void dispose()
      Description copied from class: JmriJFrame
      When window is finally destroyed, remove it from the list of windows.

      Subclasses that over-ride this method must invoke this implementation with super.dispose() right before returning.

      Specified by:
      dispose in interface WindowInterface
      Overrides:
      dispose in class JmriJFrame
    • setSpeedSetting

      protected void setSpeedSetting(float speed)
    • setSpeedStepMode

      protected void setSpeedStepMode(SpeedStepMode speedStep)
    • setFunctionState

      protected void setFunctionState(String fNum, boolean isSet)
    • setFunctionLock

      protected void setFunctionLock(String fMom, boolean isLockable)
    • setButtonForward

      protected void setButtonForward(boolean isForward)