Package org.openstreetmap.josm.actions
Class RestorePropertyAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.actions.RestorePropertyAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Obtains the selected key and values from a table and restores those properties on the specified primitive.
- Since:
- 16593
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IntFunction<String>private final Supplier<OsmPrimitive>private final ListSelectionModelprivate final IntFunction<String>Fields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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
ConstructorsConstructorDescriptionRestorePropertyAction(IntFunction<String> keyFn, IntFunction<String> valueFn, Supplier<OsmPrimitive> objectSp, ListSelectionModel selectionModel) Constructs a newRestorePropertyAction. -
Method Summary
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
keyFn
-
valueFn
-
objectSp
-
selectionModel
-
-
Constructor Details
-
RestorePropertyAction
public RestorePropertyAction(IntFunction<String> keyFn, IntFunction<String> valueFn, Supplier<OsmPrimitive> objectSp, ListSelectionModel selectionModel) Constructs a newRestorePropertyAction.- Parameters:
keyFn- a function which returns the selected key for a given row indexvalueFn- a function which returns the selected value for a given row indexobjectSp- a supplier which returns the selected tagged objectselectionModel- selection model
-
-
Method Details
-
actionPerformed
-