Package jmri.jmrix.swing
Class SystemConnectionNamedPaneAction<M extends DefaultSystemConnectionMemo>
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.util.swing.JmriAbstractAction
-
- jmri.util.swing.JmriNamedPaneAction
-
- jmri.jmrix.swing.SystemConnectionNamedPaneAction<M>
-
- Type Parameters:
M
- the supported subclass ofSystemConnectionMemo
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,SystemConnectionAction<M>
- Direct Known Subclasses:
EcosNamedPaneAction
,NceNamedPaneAction
public abstract class SystemConnectionNamedPaneAction<M extends DefaultSystemConnectionMemo> extends JmriNamedPaneAction implements SystemConnectionAction<M>
JmriNamedPaneAction
that implementsSystemConnectionAction
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected M
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 SystemConnectionNamedPaneAction(java.lang.String s, java.lang.String paneClass, M memo)
SystemConnectionNamedPaneAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi, java.lang.String paneClass, M memo)
SystemConnectionNamedPaneAction(java.lang.String s, WindowInterface wi, java.lang.String paneClass, M memo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description M
getSystemConnectionMemo()
Get theSystemConnectionMemo
this action is bound to.void
setSystemConnectionMemo(M memo)
Set theSystemConnectionMemo
this action is bound to.-
Methods inherited from class jmri.util.swing.JmriNamedPaneAction
makePanel
-
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
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jmri.jmrix.swing.SystemConnectionAction
getSystemConnectionMemoClasses
-
-
-
-
Field Detail
-
memo
protected M extends DefaultSystemConnectionMemo memo
-
-
Constructor Detail
-
SystemConnectionNamedPaneAction
public SystemConnectionNamedPaneAction(java.lang.String s, java.lang.String paneClass, M memo)
-
SystemConnectionNamedPaneAction
public SystemConnectionNamedPaneAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi, java.lang.String paneClass, M memo)
-
SystemConnectionNamedPaneAction
public SystemConnectionNamedPaneAction(java.lang.String s, WindowInterface wi, java.lang.String paneClass, M memo)
-
-
Method Detail
-
getSystemConnectionMemo
public M getSystemConnectionMemo()
Get theSystemConnectionMemo
this action is bound to.- Specified by:
getSystemConnectionMemo
in interfaceSystemConnectionAction<M extends DefaultSystemConnectionMemo>
- Returns:
- the SystemConnectionMemo or null if not bound.
-
setSystemConnectionMemo
public void setSystemConnectionMemo(M memo)
Set theSystemConnectionMemo
this action is bound to.Implementing classes may throw an IllegalArgumentException if the implementing class requires a specific subclass of SystemConnectionMemo.
- Specified by:
setSystemConnectionMemo
in interfaceSystemConnectionAction<M extends DefaultSystemConnectionMemo>
- Parameters:
memo
- the SystemConnectionMemo
-
-