Package jmri.jmrix.srcp.swing
Class SRCPSystemConnectionAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrix.swing.AbstractSystemConnectionAction<SRCPSystemConnectionMemo>
-
- jmri.jmrix.srcp.swing.SRCPSystemConnectionAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,SystemConnectionAction<SRCPSystemConnectionMemo>
- Direct Known Subclasses:
PacketGenAction
public abstract class SRCPSystemConnectionAction extends AbstractSystemConnectionAction<SRCPSystemConnectionMemo>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SRCPSystemConnectionAction(java.lang.String name, SRCPSystemConnectionMemo memo)
-
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.-
Methods inherited from class jmri.jmrix.swing.AbstractSystemConnectionAction
getSystemConnectionMemo, setSystemConnectionMemo
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
SRCPSystemConnectionAction
public SRCPSystemConnectionAction(java.lang.String name, SRCPSystemConnectionMemo memo)
-
-
Method Detail
-
getSystemConnectionMemoClasses
public java.util.Set<java.lang.Class<? extends SystemConnectionMemo>> getSystemConnectionMemoClasses()
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.
-
-