Class SprogVersionFrame

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

public class SprogVersionFrame extends JmriJFrame implements SprogVersionListener
Display the firmware version of the attached SPROG hardware.
See Also:
  • Constructor Details

  • Method Details

    • initComponents

      public void initComponents()
      By default, Swing components should be created an installed in this method, rather than in the ctor itself.
      Overrides:
      initComponents in class JmriJFrame
    • notifyVersion

      public void notifyVersion(SprogVersion v)
      Handle the version reply. May be called on any thread (serial event thread or Swing timer thread), so dispatch to the EDT to show the dialog and dispose the frame. Not synchronized — dispatching via runOnGUIEventually ensures neither the calling thread nor the EDT blocks waiting for a lock held by the other.
      Specified by:
      notifyVersion in interface SprogVersionListener
    • dispose

      public void dispose()
      Removes SprogVersionListener. 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