vmm3d.actions
Class AbstractActionVMM
- java.lang.Object
-
- javax.swing.AbstractAction
-
- vmm3d.actions.AbstractActionVMM
-
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, ActionItem
- Direct Known Subclasses:
- ToggleAction
public abstract class AbstractActionVMM extends javax.swing.AbstractAction implements ActionItem
A convenience class for making an Action with an accelerator key.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description AbstractActionVMM(java.lang.String name)Create an AbstractActionVMM with a specified name, no icon, and no accelerator.AbstractActionVMM(java.lang.String name, javax.swing.Icon icon)Create an AbstractActionVMM with a specified name and icon, and with no accelerator.AbstractActionVMM(java.lang.String name, java.lang.String accelerator)Create an AbstractActionVMM with a specified name, icon, and accelerator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description javax.swing.JMenuItem[]getMenuItems()Returns an array containing one item, a JMenuItem created from this AbstractAction.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
AbstractActionVMM
public AbstractActionVMM(java.lang.String name)
Create an AbstractActionVMM with a specified name, no icon, and no accelerator.- Parameters:
name- The name of the Action. (This should be internationalized by the caller.)
-
AbstractActionVMM
public AbstractActionVMM(java.lang.String name, javax.swing.Icon icon)Create an AbstractActionVMM with a specified name and icon, and with no accelerator.- Parameters:
name- The name of the Action. (This should be internationalized by the caller.)
-
AbstractActionVMM
public AbstractActionVMM(java.lang.String name, java.lang.String accelerator)Create an AbstractActionVMM with a specified name, icon, and accelerator.- Parameters:
name- The name of the Action. (This should be internationalized by the caller.)accelerator- A String that describes the accelerator, as for the method KeyStroke.getKeyStroke(String), except that the main command key (ctrl or meta) should NOT be included in the description String. If the value of this parameter isnull, no accelerator is added. On Macs, "meta" is added to the string; otherwise, "ctrl: is added; this gives the appropriate modifier for tha platform.
-
-
Method Detail
-
getMenuItems
public javax.swing.JMenuItem[] getMenuItems()
Returns an array containing one item, a JMenuItem created from this AbstractAction.- Specified by:
getMenuItemsin interfaceActionItem
-
-
DMelt 3.0 © DataMelt by jWork.ORG