Package jmri.jmrit.sample
Class SampleToolsMenuItem
java.lang.Object
javax.swing.AbstractAction
jmri.util.swing.JmriAbstractAction
jmri.jmrit.sample.SampleToolsMenuItem
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,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 of JmriPanel and WindowInterface,
please see
JMRI's Use of Swing page.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
Fields inherited from class jmri.util.swing.JmriAbstractAction
context, hint, wiFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jmri.util.swing.JmriAbstractAction
actionPerformed, dispose, setContext, setHint, setName, setParameter, setParameter, setWindowInterface, toStringMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from interface java.awt.event.ActionListener
actionPerformed
-
Constructor Details
-
SampleToolsMenuItem
-
SampleToolsMenuItem
-
SampleToolsMenuItem
-
SampleToolsMenuItem
public SampleToolsMenuItem()
-
-
Method Details
-
makePanel
- Specified by:
makePanelin classJmriAbstractAction
-