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:
ActionListener,Serializable,Cloneable,EventListener,Action,PopupMenuListener
Copy the key and value of the selected tag(s) to clipboard.
- Since:
- 13521
- See Also:
-
Field Summary
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
ConstructorsConstructorDescriptionCopyKeyValueAction(JTable tagTable, IntFunction<String> keyFn, Supplier<Collection<? extends Tagged>> objectSp) Constructs a newCopyKeyValueAction. -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<String>voidvoidvoidprivate voidsetName(long n) Methods inherited from class org.openstreetmap.josm.gui.dialogs.properties.AbstractCopyAction
actionPerformed, valueStreamMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
CopyKeyValueAction
public CopyKeyValueAction(JTable tagTable, IntFunction<String> keyFn, Supplier<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 Details
-
setName
-
getString
- Specified by:
getStringin classAbstractCopyAction
-
popupMenuWillBecomeVisible
- Specified by:
popupMenuWillBecomeVisiblein interfacePopupMenuListener
-
popupMenuWillBecomeInvisible
- Specified by:
popupMenuWillBecomeInvisiblein interfacePopupMenuListener
-
popupMenuCanceled
- Specified by:
popupMenuCanceledin interfacePopupMenuListener
-