Class XNetMonPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, AbstractMRListener, XNetListener

public class XNetMonPane extends AbstractMonPane implements XNetListener
Panel displaying (and logging) XpressNet messages derived from XNetMonFrame.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getTitle

      public String getTitle()
      Description copied from class: AbstractMonPane
      Provide a recommended title for an enclosing frame.
      Specified by:
      getTitle in class AbstractMonPane
      Returns:
      the title; a null value will be treated as "" by the enclosing frame
    • initContext

      public void initContext(Object context)
      Description copied from class: JmriPanel
      3rd stage of initialization, invoked after Swing components exist.
      Overrides:
      initContext in class JmriPanel
      Parameters:
      context - the context that this panel may be initialized with
    • init

      protected void init()
      Initialize the data source.
      Specified by:
      init in class AbstractMonPane
    • dispose

      public void dispose()
      Description copied from class: AbstractMonPane
      Overrides:
      dispose in class AbstractMonPane
    • logMessage

      public void logMessage(String messagePrefix, String rawPrefix, Message message)
      Description copied from class: AbstractMonPane
      Log an Message derived message with a prefixed label.
      Overrides:
      logMessage in class AbstractMonPane
      Parameters:
      messagePrefix - text to prefix the message with.
      rawPrefix - label to add to the start of the message.
      message - message object to log.
    • message

      public void message(XNetReply l)
      Description copied from interface: XNetListener
      Member function that will be invoked by an XNetInterface implementation to forward an XNet message from the layout.
      Specified by:
      message in interface XNetListener
      Parameters:
      l - The received XNet message. Note that this same object may be presented to multiple users. It should not be modified here.
    • message

      public void message(XNetMessage l)
      Listen for the messages to the LI100/LI101
      Specified by:
      message in interface XNetListener
      Parameters:
      l - The received XNet message. Note that this same object may be presented to multiple users. It should not be modified here.
    • notifyTimeout

      public void notifyTimeout(XNetMessage msg)
      Handle a timeout notification
      Specified by:
      notifyTimeout in interface XNetListener
      Parameters:
      msg - message which has timed out.