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:
ActionListener,Serializable,Cloneable,EventListener,Action
Copy the key and value of all the tags 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
ConstructorsConstructorDescriptionCopyAllKeyValueAction(JTable tagTable, IntFunction<String> keyFn, Supplier<Collection<? extends Tagged>> objectSp) Constructs a newCopyAllKeyValueAction. -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<String>(package private) CopyAllKeyValueActionRegisters this action shortcutMethods 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
-
CopyAllKeyValueAction
public CopyAllKeyValueAction(JTable tagTable, IntFunction<String> keyFn, Supplier<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 Details
-
registerShortcut
Registers this action shortcut- Returns:
- this instance, for easy chaining
-
getString
- Specified by:
getStringin classAbstractCopyAction
-