Class PowerlineNamedPaneAction

    • Constructor Detail

      • PowerlineNamedPaneAction

        public PowerlineNamedPaneAction​(java.lang.String s,
                                        WindowInterface wi,
                                        java.lang.String paneClass,
                                        SerialSystemConnectionMemo memo)
        Enhanced constructor for placing the pane in various GUIs
        Parameters:
        s - Human-readable panel name for display by the action
        wi - Window into which to install the new panel. If you want it to be put into a existing one, provide a reference. To create a new window containing just this pane, use "new jmri.util.swing.sdi.JmriJFrameInterface()"
        paneClass - Name of the panel's class, which must be a subclass of JmriPanel. That's not checked at compile time or when the constructor runs, but must be true for the action to be invoked successfully.
        memo - Connection details memo
    • Method Detail

      • makePanel

        public JmriPanel makePanel()
        Description copied from class: JmriNamedPaneAction
        Invoked as part of the action being invoked, e.g. when button pressed or menu item selected, this runs the panel through the initial part of its life cycle and installs in the given window interface.

        If different or additional initialization is needed, inherit from this class and override this method to do it.

        Overrides:
        makePanel in class JmriNamedPaneAction