Package jmri.jmrix.nce.swing
Class NceNamedPaneAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.util.swing.JmriAbstractAction
-
- jmri.util.swing.JmriNamedPaneAction
-
- jmri.jmrix.swing.SystemConnectionNamedPaneAction<NceSystemConnectionMemo>
-
- jmri.jmrix.nce.swing.NceNamedPaneAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,SystemConnectionAction<NceSystemConnectionMemo>
- Direct Known Subclasses:
ClockMonPanel.Default
,NceConsistEditPanel.Default
,NceMacroEditPanel.Default
,NceMacroGenPanel.Default
,NceMonPanel.Default
,NcePacketGenPanel.Default
,NcePacketMonitorPanel.Default
,NceShowCabPanel.Default
public class NceNamedPaneAction extends SystemConnectionNamedPaneAction<NceSystemConnectionMemo>
Action to create and load a JmriPanel from just its name.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.swing.SystemConnectionNamedPaneAction
memo
-
Fields inherited from class jmri.util.swing.JmriNamedPaneAction
paneClass
-
Fields inherited from class jmri.util.swing.JmriAbstractAction
context, hint, wi
-
-
Constructor Summary
Constructors Constructor Description NceNamedPaneAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi, java.lang.String paneClass, NceSystemConnectionMemo memo)
NceNamedPaneAction(java.lang.String s, WindowInterface wi, java.lang.String paneClass, NceSystemConnectionMemo memo)
Enhanced constructor for placing the pane in various GUIs.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.Class<? extends SystemConnectionMemo>>
getSystemConnectionMemoClasses()
Get a list ofSystemConnectionMemo
subclasses that the implementing class accepts.JmriPanel
makePanel()
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 jmri.jmrix.swing.SystemConnectionNamedPaneAction
getSystemConnectionMemo, setSystemConnectionMemo
-
Methods inherited from class jmri.util.swing.JmriAbstractAction
actionPerformed, dispose, setContext, setHint, setName, setParameter, setParameter, setWindowInterface, toString
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
NceNamedPaneAction
public NceNamedPaneAction(java.lang.String s, WindowInterface wi, java.lang.String paneClass, NceSystemConnectionMemo memo)
Enhanced constructor for placing the pane in various GUIs.- Parameters:
s
- Human readable panel namewi
- window to place the new panelpaneClass
- name of panel class, should be subclass of JmriPanelmemo
- system connection memo
-
NceNamedPaneAction
public NceNamedPaneAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi, java.lang.String paneClass, NceSystemConnectionMemo 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 classJmriNamedPaneAction
-
getSystemConnectionMemoClasses
public java.util.Set<java.lang.Class<? extends SystemConnectionMemo>> getSystemConnectionMemoClasses()
Description copied from interface:SystemConnectionAction
Get a list ofSystemConnectionMemo
subclasses 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.
- Returns:
- Set of SystemConnectionMemo subclasses or empty array.
-
-