Package jmri.jmrit.throttle
Class ThrottleCreationAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.util.swing.JmriAbstractAction
-
- jmri.jmrit.throttle.ThrottleCreationAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class ThrottleCreationAction extends JmriAbstractAction
Create a new throttle.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class jmri.util.swing.JmriAbstractAction
context, hint, wi
-
-
Constructor Summary
Constructors Constructor Description ThrottleCreationAction()
ThrottleCreationAction(java.lang.String s)
ConstructorThrottleCreationAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi)
ThrottleCreationAction(java.lang.String s, ConnectionConfig connectionConfig)
ConstructorThrottleCreationAction(java.lang.String s, WindowInterface wi)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
The action is performed.static void
addNewThrottleItemsToThrottleMenu(javax.swing.JMenu throttleMenu)
JmriPanel
makePanel()
-
Methods inherited from class jmri.util.swing.JmriAbstractAction
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
-
-
-
-
Constructor Detail
-
ThrottleCreationAction
public ThrottleCreationAction(java.lang.String s, WindowInterface wi)
-
ThrottleCreationAction
public ThrottleCreationAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi)
-
ThrottleCreationAction
public ThrottleCreationAction(java.lang.String s)
Constructor- Parameters:
s
- Name for the action.
-
ThrottleCreationAction
public ThrottleCreationAction(java.lang.String s, ConnectionConfig connectionConfig)
Constructor- Parameters:
s
- Name for the action.connectionConfig
- the connection config
-
ThrottleCreationAction
public ThrottleCreationAction()
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
The action is performed. Create a new ThrottleFrame.- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Overrides:
actionPerformed
in classJmriAbstractAction
- Parameters:
e
- The event causing the action.
-
makePanel
public JmriPanel makePanel()
- Specified by:
makePanel
in classJmriAbstractAction
-
addNewThrottleItemsToThrottleMenu
public static void addNewThrottleItemsToThrottleMenu(@Nonnull javax.swing.JMenu throttleMenu)
-
-