Package io.github.jonestimd.swing.action
Class MnemonicAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- io.github.jonestimd.swing.action.MnemonicAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public abstract class MnemonicAction extends javax.swing.AbstractAction
An abstract class for an action with a mnemonic shortcut.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MnemonicAction(java.lang.String mnemonicAndName)
MnemonicAction(java.lang.String mnemonicAndName, javax.swing.Icon icon)
-
Method Summary
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
MnemonicAction
public MnemonicAction(java.lang.String mnemonicAndName)
- Parameters:
mnemonicAndName
- combined mnemonic and name. The 1st character is the mnemonic.
-
MnemonicAction
public MnemonicAction(java.lang.String mnemonicAndName, javax.swing.Icon icon)
- Parameters:
mnemonicAndName
- combined mnemonic and name. The 1st character is the mnemonic.
-
-