public abstract class BaseAction extends AbstractAction
changeSupport, enabled
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 and Description |
---|
BaseAction(String name,
ImageIcon icon,
String tooltip,
KeyStroke accelerator,
Integer mnemonic,
ServiceGUI serviceGUI) |
BaseAction(String name,
ImageIcon icon,
String tooltip,
KeyStroke accelerator,
ServiceGUI serviceGUI) |
BaseAction(String name,
String icon,
String tooltip,
KeyStroke accelerator,
Integer mnemonic,
ServiceGUI serviceGUI) |
Modifier and Type | Method and Description |
---|---|
static ImageIcon |
getIcon(String name) |
int |
getWeight() |
void |
setWeight(int weight) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actionPerformed
public BaseAction(String name, ImageIcon icon, String tooltip, KeyStroke accelerator, ServiceGUI serviceGUI)
name
- name of the action (menu entry)icon
- for menu and toolbartooltip
- accelerator
- (ie keyboard bytecut)serviceGUI
- public BaseAction(String name, String icon, String tooltip, KeyStroke accelerator, Integer mnemonic, ServiceGUI serviceGUI)
Copyright © 2005–2020. All rights reserved.