Class CanPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, CanPanelInterface
Direct Known Subclasses:
AbstractEditNVPane, CanSendPane, CbusBootloaderPane, CbusConfigPaneProvider, CbusConsolePane, CbusEventRequestTablePane, CbusEventTablePane, CbusNodeConfigTab, CbusNodeEventTablePane, CbusNodeNVEditGuiPane, CbusNodeNVEditTablePane, CbusNodeSingleEventEditTablePane, CbusSlotMonitorPane, ConfigToolPane, NodeConfigToolPane, OpenLcbCanSendPane, SimulatorPane

public abstract class CanPanel extends JmriPanel implements CanPanelInterface
JPanel extension to handle automatic creation of window title and help reference for Cbus panels.

For use with JmriAbstractAction, etc

Since:
2.99.2
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • initComponents

      2nd stage of initialization, invoked after the Constructor is complete.

      This needs to be connected to the initContext() method in implementing classes.

      Specified by:
      initComponents in interface CanPanelInterface
      Parameters:
      memo - system connection.
    • getMemo

    • initContext

      public void initContext(Object context)
      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
    • prependConnToString

      public String prependConnToString(String initial)
      Prepends Connection UserName, if present, to start of a String.
      Parameters:
      initial - The Initial String
      Returns:
      The Connection with the initial String appended