Class DCCppExrailFrame

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

public class DCCppExrailFrame extends JmriJFrame implements DCCppListener
Displays DCC-EX EXRAIL Routes and Automations and allows triggering them.
See Also:
  • Constructor Details

  • Method Details

    • initComponents

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

      Returns the last loco address entered this session; used by tests.
    • triggerEntry

      void triggerEntry(DCCppExrailEntry entry, int locoAddress)
    • message

      public void message(DCCppReply reply)
      Description copied from interface: DCCppListener
      Member function that will be invoked by a DCCppInterface implementation to forward a DCC-EX message from the layout.
      Specified by:
      message in interface DCCppListener
      Parameters:
      reply - The received DCC-EX message. Note that this same object may be presented to multiple users. It should not be modified here.
    • message

      public void message(DCCppMessage msg)
      Description copied from interface: DCCppListener
      Member function that will be invoked by a DCCppInterface implementation to forward a DCC-EX message sent to the layout. Normally, this function will do nothing.
      Specified by:
      message in interface DCCppListener
      Parameters:
      msg - The received DCC-EX message. Note that this same object may be presented to multiple users. It should not be modified here.
    • notifyTimeout

      public void notifyTimeout(DCCppMessage msg)
      Description copied from interface: DCCppListener
      Member function invoked by an DCCppInterface implementation to notify a sender that an outgoing message timed out and was dropped from the queue.
      Specified by:
      notifyTimeout in interface DCCppListener
      Parameters:
      msg - the message that timed out.
    • 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
    • getEntryCount

      Returns number of visible (non-hidden) entries; used by tests.
    • getEntry

      Returns entry by id; used by tests.
    • isRowTriggerEnabled

      boolean isRowTriggerEnabled(int row)
      Returns whether the trigger button on the given visible row is enabled; used by tests.
    • getRowButtonLabel

      Returns the trigger button label for the given visible row; used by tests.
    • getRowName

      String getRowName(int row)
      Returns the Name column value for the given visible row; used by tests.
    • triggerRowForTest

      void triggerRowForTest(int row)
      Simulate a click on the trigger button for the given visible row; used by tests.