Package jmri.jmrix.acela.acelamon
Class AcelaMonAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrix.swing.AbstractSystemConnectionAction<AcelaSystemConnectionMemo>
-
- jmri.jmrix.acela.acelamon.AcelaMonAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action,SystemConnectionAction<AcelaSystemConnectionMemo>
public class AcelaMonAction extends AbstractSystemConnectionAction<AcelaSystemConnectionMemo>
Swing action to create and register an AcelaMonFrame object- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AcelaMonAction()AcelaMonAction(java.lang.String s, AcelaSystemConnectionMemo memo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)java.util.Set<java.lang.Class<? extends SystemConnectionMemo>>getSystemConnectionMemoClasses()Get a list ofSystemConnectionMemosubclasses 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
-
AcelaMonAction
public AcelaMonAction(java.lang.String s, AcelaSystemConnectionMemo memo)
-
AcelaMonAction
public AcelaMonAction()
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
getSystemConnectionMemoClasses
public 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.
- Returns:
- Set of SystemConnectionMemo subclasses or empty array.
-
-