Class Z21MonPane

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

public class Z21MonPane extends AbstractMonPane implements Z21Listener
Panel displaying (and logging) Z21 messages derived from Z21MonFrame.
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.
    • reply

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

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