public class DelegateAction extends AbstractAction
Modifier and Type | Field and Description |
---|---|
protected Action |
delegate |
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 |
---|
DelegateAction() |
DelegateAction(Action delegate) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
protected Action |
getDelegate() |
Object |
getValue(String key) |
void |
putValue(String key,
Object value) |
protected void |
setDelegate(Action delegate) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, isEnabled, removePropertyChangeListener, setEnabled
protected Action delegate
public DelegateAction()
public DelegateAction(Action delegate)
protected final Action getDelegate()
protected void setDelegate(Action delegate)
public void actionPerformed(ActionEvent e)
public Object getValue(String key)
getValue
in interface Action
getValue
in class AbstractAction