Package jmri.jmrit.sample
Class SampleToolsMenuItem
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.util.swing.JmriAbstractAction
-
- jmri.jmrit.sample.SampleToolsMenuItem
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,ToolsMenuAction
public class SampleToolsMenuItem extends JmriAbstractAction implements ToolsMenuAction
Sample Action to create a new user-defined item in the Tools menu.This is disabled by default so it doesn't appear in the default Tools menu. Uncomment the line indicated below to allow this to appear in the Tools menu.
For more on why this inherits from
JmriAbstractAction
and the use ofJmriPanel
andWindowInterface
, please see JMRI's Use of Swing page.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SampleToolsMenuItem.SampleToolsMenuPanel
-
Field Summary
-
Fields inherited from class jmri.util.swing.JmriAbstractAction
context, hint, wi
-
-
Constructor Summary
Constructors Constructor Description SampleToolsMenuItem()
SampleToolsMenuItem(java.lang.String s)
SampleToolsMenuItem(java.lang.String s, javax.swing.Icon i, WindowInterface wi)
SampleToolsMenuItem(java.lang.String s, WindowInterface wi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JmriPanel
makePanel()
-
Methods inherited from class jmri.util.swing.JmriAbstractAction
actionPerformed, 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
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
SampleToolsMenuItem
public SampleToolsMenuItem(java.lang.String s, WindowInterface wi)
-
SampleToolsMenuItem
public SampleToolsMenuItem(java.lang.String s, javax.swing.Icon i, WindowInterface wi)
-
SampleToolsMenuItem
public SampleToolsMenuItem(java.lang.String s)
-
SampleToolsMenuItem
public SampleToolsMenuItem()
-
-
Method Detail
-
makePanel
public JmriPanel makePanel()
- Specified by:
makePanel
in classJmriAbstractAction
-
-