Package jmri.jmrit.throttle
Class ThrottleCreationAction
java.lang.Object
javax.swing.AbstractAction
jmri.util.swing.JmriAbstractAction
jmri.jmrit.throttle.ThrottleCreationAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Create a new throttle.
- See Also:
-
Field Summary
Fields 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
ConstructorsConstructorDescriptionConstructorThrottleCreationAction(String s, Icon i, WindowInterface wi) ThrottleCreationAction(String s, ConnectionConfig connectionConfig) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidThe action is performed.static voidaddNewThrottleItemsToThrottleMenu(JMenu throttleMenu) Methods inherited from class jmri.util.swing.JmriAbstractAction
dispose, setContext, setHint, setName, setParameter, setParameter, setWindowInterface, toStringMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
ThrottleCreationAction
-
ThrottleCreationAction
-
ThrottleCreationAction
Constructor- Parameters:
s- Name for the action.
-
ThrottleCreationAction
Constructor- Parameters:
s- Name for the action.connectionConfig- the connection config
-
ThrottleCreationAction
public ThrottleCreationAction()
-
-
Method Details
-
actionPerformed
The action is performed. Create a new ThrottleFrame.- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classJmriAbstractAction- Parameters:
e- The event causing the action.
-
makePanel
- Specified by:
makePanelin classJmriAbstractAction
-
addNewThrottleItemsToThrottleMenu
-