Package jmri.script.swing
Class InputWindowAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.script.swing.InputWindowAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
- Direct Known Subclasses:
InputWindowAction
public class InputWindowAction extends javax.swing.AbstractAction
This Action runs creates an InputWindow for sending input to the global jython interpreter- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JFrame
f
-
Constructor Summary
Constructors Constructor Description InputWindowAction()
InputWindowAction(java.lang.String name)
Constructor just initializes parent class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
Invoking this action via an event triggers display of a file dialog.javax.swing.JFrame
getFrame()
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
f
javax.swing.JFrame f
-
-
Constructor Detail
-
InputWindowAction
public InputWindowAction(java.lang.String name)
Constructor just initializes parent class.- Parameters:
name
- Action name
-
InputWindowAction
public InputWindowAction()
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
Invoking this action via an event triggers display of a file dialog. If a file is selected, it's then invoked as a script.
-
getFrame
public javax.swing.JFrame getFrame()
-
-