Class AbstractCopyAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.gui.dialogs.properties.AbstractCopyAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
- Direct Known Subclasses:
CopyAllKeyValueAction,CopyKeyValueAction,CopyValueAction
Super class of all copy actions from tag table.
- Since:
- 13521
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IntFunction<String>private final Supplier<Collection<? extends Tagged>>private final JTableFields 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
ConstructorsModifierConstructorDescriptionprotectedAbstractCopyAction(JTable tagTable, IntFunction<String> keySupplier, Supplier<Collection<? extends Tagged>> objectSupplier) Constructs a newAbstractCopyAction. -
Method Summary
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
tagTable
-
keySupplier
-
objectSupplier
-
-
Constructor Details
-
AbstractCopyAction
protected AbstractCopyAction(JTable tagTable, IntFunction<String> keySupplier, Supplier<Collection<? extends Tagged>> objectSupplier) Constructs a newAbstractCopyAction.- Parameters:
tagTable- the tag tablekeySupplier- a supplier which returns the selected key for a given row indexobjectSupplier- a supplier which returns the selected tagged object(s)
-
-
Method Details
-
getString
-
valueStream
-
actionPerformed
-