Package jmri.jmrix.loconet.swing
Class LnNamedPaneAction
- java.lang.Object
- 
- javax.swing.AbstractAction
- 
- jmri.util.swing.JmriAbstractAction
- 
- jmri.util.swing.JmriNamedPaneAction
- 
- jmri.jmrix.loconet.swing.LnNamedPaneAction
 
 
 
 
- 
- All Implemented Interfaces:
- java.awt.event.ActionListener,- java.io.Serializable,- java.lang.Cloneable,- java.util.EventListener,- javax.swing.Action,- SystemConnectionAction<LocoNetSystemConnectionMemo>
 - Direct Known Subclasses:
- ClockMonPaneAction,- Dcs210PlusUsbModeSelectPane.Default,- Dcs240PlusUsbModeSelectPane.Default,- Dcs240UsbModeSelectPane.Default,- Dcs52UsbModeSelectPane.Default,- DuplexGroupInfoPanel.Default,- LncvProgAction,- Lnsv1ProgAction,- LocoMonPaneAction,- LocoStatsPanelAction,- Pr3SelectPaneAction,- Pr4SelectPane.Default,- SlotMonPaneAction
 
 public class LnNamedPaneAction extends JmriNamedPaneAction implements SystemConnectionAction<LocoNetSystemConnectionMemo> Action to create and load a JmriPanel from just its name.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description (package private) LocoNetSystemConnectionMemomemo- 
Fields inherited from class jmri.util.swing.JmriNamedPaneActionpaneClass
 - 
Fields inherited from class jmri.util.swing.JmriAbstractActioncontext, hint, wi
 
- 
 - 
Constructor SummaryConstructors Constructor Description LnNamedPaneAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi, java.lang.String paneClass, LocoNetSystemConnectionMemo memo)Enhanced constructor for placing the pane in various GUIs.LnNamedPaneAction(java.lang.String s, WindowInterface wi, java.lang.String paneClass, LocoNetSystemConnectionMemo memo)Enhanced constructor for placing the pane in various GUIs.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description LocoNetSystemConnectionMemogetSystemConnectionMemo()Get theSystemConnectionMemothis action is bound to.java.util.Set<java.lang.Class<? extends SystemConnectionMemo>>getSystemConnectionMemoClasses()Get a list ofSystemConnectionMemosubclasses that the implementing class accepts.JmriPanelmakePanel()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.voidsetSystemConnectionMemo(LocoNetSystemConnectionMemo memo)Set theSystemConnectionMemothis action is bound to.- 
Methods inherited from class jmri.util.swing.JmriAbstractActionactionPerformed, dispose, setContext, setHint, setName, setParameter, setParameter, setWindowInterface, toString
 - 
Methods inherited from class javax.swing.AbstractActionaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
- 
 
- 
- 
- 
Constructor Detail- 
LnNamedPaneActionpublic LnNamedPaneAction(java.lang.String s, WindowInterface wi, java.lang.String paneClass, LocoNetSystemConnectionMemo 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-- LocoNetSystemConnectionMemoto be used by this object
 
 - 
LnNamedPaneActionpublic LnNamedPaneAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi, java.lang.String paneClass, LocoNetSystemConnectionMemo memo) Enhanced constructor for placing the pane in various GUIs.- Parameters:
- s- Human-readable panel name for display by the action
- i- Icon 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-- LocoNetSystemConnectionMemoto be used by this object
 
 
- 
 - 
Method Detail- 
makePanelpublic JmriPanel makePanel() Description copied from class:JmriNamedPaneActionInvoked 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:
- makePanelin class- JmriNamedPaneAction
 
 - 
getSystemConnectionMemopublic LocoNetSystemConnectionMemo getSystemConnectionMemo() Description copied from interface:SystemConnectionActionGet theSystemConnectionMemothis action is bound to.- Specified by:
- getSystemConnectionMemoin interface- SystemConnectionAction<LocoNetSystemConnectionMemo>
- Returns:
- the SystemConnectionMemo or null if not bound.
 
 - 
setSystemConnectionMemopublic void setSystemConnectionMemo(LocoNetSystemConnectionMemo memo) throws java.lang.IllegalArgumentException Description copied from interface:SystemConnectionActionSet theSystemConnectionMemothis action is bound to.Implementing classes may throw an IllegalArgumentException if the implementing class requires a specific subclass of SystemConnectionMemo. - Specified by:
- setSystemConnectionMemoin interface- SystemConnectionAction<LocoNetSystemConnectionMemo>
- Parameters:
- memo- the SystemConnectionMemo
- Throws:
- java.lang.IllegalArgumentException- if the SystemConnectionMemo is invalid
 
 - 
getSystemConnectionMemoClassespublic java.util.Set<java.lang.Class<? extends SystemConnectionMemo>> getSystemConnectionMemoClasses() Description copied from interface:SystemConnectionActionGet a list ofSystemConnectionMemosubclasses that the implementing class accepts.If the implementing class is a subclass of a class that does accept SystemConnectionMemos, but the implementing class does not accept any, return an empty array instead of null. - Specified by:
- getSystemConnectionMemoClassesin interface- SystemConnectionAction<LocoNetSystemConnectionMemo>
- Returns:
- Set of SystemConnectionMemo subclasses or empty array.
 
 
- 
 
-