Class CopyKeyValueAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.dialogs.properties.AbstractCopyAction
-
- org.openstreetmap.josm.gui.dialogs.properties.CopyKeyValueAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action,javax.swing.event.PopupMenuListener
public class CopyKeyValueAction extends AbstractCopyAction implements javax.swing.event.PopupMenuListener
Copy the key and value of the selected tag(s) to clipboard.- Since:
- 13521
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CopyKeyValueAction(javax.swing.JTable tagTable, java.util.function.IntFunction<java.lang.String> keyFn, java.util.function.Supplier<java.util.Collection<? extends Tagged>> objectSp)Constructs a newCopyKeyValueAction.
-
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)voidpopupMenuCanceled(javax.swing.event.PopupMenuEvent e)voidpopupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)voidpopupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)private voidsetName(long n)-
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
-
CopyKeyValueAction
public CopyKeyValueAction(javax.swing.JTable tagTable, java.util.function.IntFunction<java.lang.String> keyFn, java.util.function.Supplier<java.util.Collection<? extends Tagged>> objectSp)
Constructs a newCopyKeyValueAction.- 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
-
setName
private void setName(long n)
-
getString
protected java.util.Collection<java.lang.String> getString(Tagged p, java.lang.String key)
- Specified by:
getStringin classAbstractCopyAction
-
popupMenuWillBecomeVisible
public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)
- Specified by:
popupMenuWillBecomeVisiblein interfacejavax.swing.event.PopupMenuListener
-
popupMenuWillBecomeInvisible
public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)
- Specified by:
popupMenuWillBecomeInvisiblein interfacejavax.swing.event.PopupMenuListener
-
popupMenuCanceled
public void popupMenuCanceled(javax.swing.event.PopupMenuEvent e)
- Specified by:
popupMenuCanceledin interfacejavax.swing.event.PopupMenuListener
-
-