Package apps.gui3.lccpro
Class LccProAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.util.swing.JmriAbstractAction
-
- apps.gui3.lccpro.LccProAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class LccProAction extends JmriAbstractAction
AbstractAction for the LccPro 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) LccProWindowmainFrame-
Fields inherited from class jmri.util.swing.JmriAbstractAction
context, hint, wi
-
-
Constructor Summary
Constructors Constructor Description LccProAction(java.lang.String pName, boolean allowQuit)Method for opening a new window via the classic JMRI interfaceLccProAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi)LccProAction(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
LccProWindow mainFrame
-
allowQuit
boolean allowQuit
-
-
Constructor Detail
-
LccProAction
public LccProAction(java.lang.String s, WindowInterface wi)
-
LccProAction
public LccProAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi)
-
LccProAction
public LccProAction(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 theLccProWindowshould 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
-
-