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:
-
Field Summary
FieldsFields inherited from class jmri.util.swing.JmriNamedPaneAction
paneClassFields inherited from class jmri.util.swing.JmriAbstractAction
context, hint, wiFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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
ConstructorsConstructorDescriptionSystemConnectionNamedPaneAction(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 TypeMethodDescriptionGet theSystemConnectionMemothis action is bound to.voidsetSystemConnectionMemo(M memo) Set theSystemConnectionMemothis action is bound to.Methods inherited from class jmri.util.swing.JmriNamedPaneAction
makePanelMethods inherited from class jmri.util.swing.JmriAbstractAction
actionPerformed, dispose, setContext, setHint, setName, setParameter, setParameter, setWindowInterface, toStringMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jmri.jmrix.swing.SystemConnectionAction
getSystemConnectionMemoClasses
-
Field Details
-
memo
-
-
Constructor Details
-
SystemConnectionNamedPaneAction
-
SystemConnectionNamedPaneAction
public SystemConnectionNamedPaneAction(String s, Icon i, WindowInterface wi, String paneClass, M memo) -
SystemConnectionNamedPaneAction
-
-
Method Details
-
getSystemConnectionMemo
Get theSystemConnectionMemothis action is bound to.- Specified by:
getSystemConnectionMemoin interfaceSystemConnectionAction<M extends DefaultSystemConnectionMemo>- Returns:
- the SystemConnectionMemo or null if not bound.
-
setSystemConnectionMemo
Set theSystemConnectionMemothis action is bound to.Implementing classes may throw an IllegalArgumentException if the implementing class requires a specific subclass of SystemConnectionMemo.
- Specified by:
setSystemConnectionMemoin interfaceSystemConnectionAction<M extends DefaultSystemConnectionMemo>- Parameters:
memo- the SystemConnectionMemo
-