Class CopyAllKeyValueAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.dialogs.properties.AbstractCopyAction
-
- org.openstreetmap.josm.gui.dialogs.properties.CopyAllKeyValueAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class CopyAllKeyValueAction extends AbstractCopyAction
Copy the key and value of all the tags to clipboard.- Since:
- 13521
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CopyAllKeyValueAction(javax.swing.JTable tagTable, java.util.function.IntFunction<java.lang.String> keyFn, java.util.function.Supplier<java.util.Collection<? extends Tagged>> objectSp)Constructs a newCopyAllKeyValueAction.
-
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)(package private) CopyAllKeyValueActionregisterShortcut()Registers this action shortcut-
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
-
CopyAllKeyValueAction
public CopyAllKeyValueAction(javax.swing.JTable tagTable, java.util.function.IntFunction<java.lang.String> keyFn, java.util.function.Supplier<java.util.Collection<? extends Tagged>> objectSp)
Constructs a newCopyAllKeyValueAction.- 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
-
registerShortcut
CopyAllKeyValueAction registerShortcut()
Registers this action shortcut- Returns:
- this instance, for easy chaining
-
getString
protected java.util.Collection<java.lang.String> getString(Tagged p, java.lang.String key)
- Specified by:
getStringin classAbstractCopyAction
-
-