Package apps.gui3.dp3
Class DecoderPro3Action
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.util.swing.JmriAbstractAction
-
- apps.gui3.dp3.DecoderPro3Action
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class DecoderPro3Action extends JmriAbstractAction
AbstractAction for the DP3 window so that further windows can be opened- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleanallowQuit(package private) DecoderPro3WindowmainFrame-
Fields inherited from class jmri.util.swing.JmriAbstractAction
context, hint, wi
-
-
Constructor Summary
Constructors Constructor Description DecoderPro3Action(java.lang.String pName, boolean allowQuit)Method for opening a new window via the classic JMRI interfaceDecoderPro3Action(java.lang.String s, javax.swing.Icon i, WindowInterface wi)DecoderPro3Action(java.lang.String s, WindowInterface wi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent event)JmriPanelmakePanel()-
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
-
-
-
-
Field Detail
-
mainFrame
DecoderPro3Window mainFrame
-
allowQuit
boolean allowQuit
-
-
Constructor Detail
-
DecoderPro3Action
public DecoderPro3Action(java.lang.String s, WindowInterface wi)
-
DecoderPro3Action
public DecoderPro3Action(java.lang.String s, javax.swing.Icon i, WindowInterface wi)
-
DecoderPro3Action
public DecoderPro3Action(java.lang.String pName, boolean allowQuit)
Method for opening a new window via the classic JMRI interface- Parameters:
pName- the action nameallowQuit- true if closing theDecoderPro3Windowshould quit the application; false otherwise
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Overrides:
actionPerformedin classJmriAbstractAction
-
makePanel
public JmriPanel makePanel()
- Specified by:
makePanelin classJmriAbstractAction
-
-