Class CopyValueAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.dialogs.properties.AbstractCopyAction
-
- org.openstreetmap.josm.gui.dialogs.properties.CopyValueAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class CopyValueAction extends AbstractCopyAction
Copy the value of the selected tag to clipboard.- Since:
- 13521
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CopyValueAction(javax.swing.JTable tagTable, java.util.function.IntFunction<java.lang.String> keyFn, java.util.function.Supplier<java.util.Collection<? extends Tagged>> objectSp)Constructs a newCopyValueAction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Collection<java.lang.String>getString(Tagged p, java.lang.String key)-
Methods inherited from class org.openstreetmap.josm.gui.dialogs.properties.AbstractCopyAction
actionPerformed, valueStream
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
CopyValueAction
public CopyValueAction(javax.swing.JTable tagTable, java.util.function.IntFunction<java.lang.String> keyFn, java.util.function.Supplier<java.util.Collection<? extends Tagged>> objectSp)
Constructs a newCopyValueAction.- Parameters:
tagTable- the tag tablekeyFn- a function which returns the selected key for a given row indexobjectSp- a supplier which returns the selected tagged object(s)
-
-
Method Detail
-
getString
protected java.util.Collection<java.lang.String> getString(Tagged p, java.lang.String key)
- Specified by:
getStringin classAbstractCopyAction
-
-