Package org.openstreetmap.josm.actions
Class RestorePropertyAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.actions.RestorePropertyAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class RestorePropertyAction extends javax.swing.AbstractAction
Obtains the selected key and values from a table and restores those properties on the specified primitive.- Since:
- 16593
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.IntFunction<java.lang.String>keyFnprivate java.util.function.Supplier<OsmPrimitive>objectSpprivate javax.swing.ListSelectionModelselectionModelprivate java.util.function.IntFunction<java.lang.String>valueFn
-
Constructor Summary
Constructors Constructor Description RestorePropertyAction(java.util.function.IntFunction<java.lang.String> keyFn, java.util.function.IntFunction<java.lang.String> valueFn, java.util.function.Supplier<OsmPrimitive> objectSp, javax.swing.ListSelectionModel selectionModel)Constructs a newRestorePropertyAction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
keyFn
private final java.util.function.IntFunction<java.lang.String> keyFn
-
valueFn
private final java.util.function.IntFunction<java.lang.String> valueFn
-
objectSp
private final java.util.function.Supplier<OsmPrimitive> objectSp
-
selectionModel
private final javax.swing.ListSelectionModel selectionModel
-
-
Constructor Detail
-
RestorePropertyAction
public RestorePropertyAction(java.util.function.IntFunction<java.lang.String> keyFn, java.util.function.IntFunction<java.lang.String> valueFn, java.util.function.Supplier<OsmPrimitive> objectSp, javax.swing.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 Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
-