Package org.openstreetmap.josm.actions
Class ParameterizedActionDecorator
java.lang.Object
org.openstreetmap.josm.actions.ParameterizedActionDecorator
- All Implemented Interfaces:
ActionListener,EventListener,Action
Action wrapper that delegates to a
ParameterizedAction object using
a specific set of parameters.-
Field Summary
FieldsFields inherited from interface javax.swing.Action
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 Summary
ConstructorsConstructorDescriptionParameterizedActionDecorator(ParameterizedAction action, Map<String, Object> parameters) Constructs a new ParameterizedActionDecorator. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidGet the parameters used to invoke the wrapped action.booleanvoidvoidvoidsetEnabled(boolean b)
-
Field Details
-
action
-
parameters
-
-
Constructor Details
-
ParameterizedActionDecorator
Constructs a new ParameterizedActionDecorator.- Parameters:
action- the action that is invoked by this wrapperparameters- parameters used for invoking the action
-
-
Method Details
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceAction
-
getValue
-
isEnabled
-
putValue
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceAction
-
setEnabled
- Specified by:
setEnabledin interfaceAction
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
getParameters
Get the parameters used to invoke the wrapped action.- Returns:
- the parameters used to invoke the wrapped action
-