Package jmri.jmrix.openlcb.swing.lccpro
Class LccProFrameAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.util.swing.JmriAbstractAction
-
- jmri.jmrix.openlcb.swing.lccpro.LccProFrameAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class LccProFrameAction extends JmriAbstractAction
AbstractAction for the LccProFrane so that multiple windows can be opened- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
allowQuit
-
Fields inherited from class jmri.util.swing.JmriAbstractAction
context, hint, wi
-
-
Constructor Summary
Constructors Constructor Description LccProFrameAction()
Default constructor used when instantiating via startup action or button configured in user preferencesLccProFrameAction(java.lang.String pName, boolean allowQuit)
Method for opening a new window via the classic JMRI interface.LccProFrameAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi)
LccProFrameAction(java.lang.String s, WindowInterface wi)
LccProFrameAction(java.lang.String s, WindowInterface wi, boolean allowQuit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent event)
(package private) void
checkAndSetEnabled()
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
-
-
-
-
Field Detail
-
allowQuit
boolean allowQuit
-
-
Constructor Detail
-
LccProFrameAction
public LccProFrameAction(java.lang.String s, WindowInterface wi)
-
LccProFrameAction
public LccProFrameAction(java.lang.String s, WindowInterface wi, boolean allowQuit)
-
LccProFrameAction
public LccProFrameAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi)
-
LccProFrameAction
public LccProFrameAction()
Default constructor used when instantiating via startup action or button configured in user preferences
-
LccProFrameAction
public LccProFrameAction(java.lang.String pName, boolean allowQuit)
Method for opening a new window via the classic JMRI interface.- Parameters:
pName
- action name.allowQuit
- Set state to either close JMRI or just the roster window.
-
-
Method Detail
-
checkAndSetEnabled
void checkAndSetEnabled()
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Overrides:
actionPerformed
in classJmriAbstractAction
-
makePanel
public JmriPanel makePanel()
- Specified by:
makePanel
in classJmriAbstractAction
-
-