Class CanNamedPaneAction

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) CanSystemConnectionMemo memo  
      • Fields inherited from class javax.swing.AbstractAction

        changeSupport, enabled
      • Fields inherited from interface javax.swing.Action

        ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JmriPanel makePanel()
      Makes Panel and calls initComponents 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.
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept
    • Constructor Detail

      • CanNamedPaneAction

        public CanNamedPaneAction​(java.lang.String s,
                                  WindowInterface wi,
                                  java.lang.String paneClass,
                                  CanSystemConnectionMemo memo)
        Enhanced constructor for placing the pane in various GUIs.
        Parameters:
        s - Window Name
        wi - JmriJFrameInterface
        paneClass - Name of class to open
        memo - System Connection
      • CanNamedPaneAction

        public CanNamedPaneAction​(java.lang.String s,
                                  javax.swing.Icon i,
                                  WindowInterface wi,
                                  java.lang.String paneClass,
                                  CanSystemConnectionMemo memo)
        Enhanced constructor for placing the pane in various GUIs.
        Parameters:
        s - Window Name
        i - Icon to display
        wi - JmriJFrameInterface
        paneClass - Name of class to open
        memo - System Connection
    • Method Detail

      • makePanel

        public JmriPanel makePanel()
        Makes Panel and calls initComponents 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