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:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
,SystemConnectionAction<M>
- Direct Known Subclasses:
EcosNamedPaneAction
,NceNamedPaneAction
public abstract class SystemConnectionNamedPaneAction<M extends DefaultSystemConnectionMemo> extends JmriNamedPaneAction implements SystemConnectionAction<M>
JmriNamedPaneAction
that implements SystemConnectionAction
.- See Also:
- Serialized Form
-
Field Summary
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
Constructors Constructor Description SystemConnectionNamedPaneAction(String s, String paneClass, M memo)
SystemConnectionNamedPaneAction(String s, Icon i, WindowInterface wi, String paneClass, M memo)
SystemConnectionNamedPaneAction(String s, WindowInterface wi, String paneClass, M memo)
-
Method Summary
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.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 Details
-
Constructor Details
-
SystemConnectionNamedPaneAction
-
SystemConnectionNamedPaneAction
public SystemConnectionNamedPaneAction(String s, Icon i, WindowInterface wi, String paneClass, M memo) -
SystemConnectionNamedPaneAction
-
-
Method Details
-
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
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
-