public class ParameterizedActionDecorator extends Object implements Action
Modifier and Type | Field and Description |
---|---|
private ParameterizedAction |
action |
private Map<String,Object> |
parameters |
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 |
---|
ParameterizedActionDecorator(ParameterizedAction action,
Map<String,Object> parameters) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
void |
addPropertyChangeListener(PropertyChangeListener listener) |
Map<String,Object> |
getParameters() |
Object |
getValue(String key) |
boolean |
isEnabled() |
void |
putValue(String key,
Object value) |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
setEnabled(boolean b) |
private final ParameterizedAction action
private final Map<String,Object> parameters
public ParameterizedActionDecorator(ParameterizedAction action, Map<String,Object> parameters)
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface Action
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface Action
public void setEnabled(boolean b)
setEnabled
in interface Action
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public Map<String,Object> getParameters()