Class HelpTagAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.dialogs.properties.HelpAction
-
- org.openstreetmap.josm.gui.dialogs.properties.HelpTagAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
public class HelpTagAction extends HelpAction
Launch browser with wiki help for selected tag.- Since:
- 15581
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Supplier<Tag>
tagSupplier
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
Fields 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
Constructors Constructor Description HelpTagAction(Supplier<Tag> tagSupplier)
Constructs a newHelpAction
.HelpTagAction(JTable tagTable, IntFunction<String> tagKeySupplier, IntFunction<Map<String,Integer>> tagValuesSupplier)
Constructs a newHelpAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
-
Methods inherited from class org.openstreetmap.josm.gui.dialogs.properties.HelpAction
displayGenericHelp, displayHelp, displayRelationHelp, displayTagHelp, getKeyStroke
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
tagSupplier
private final Supplier<Tag> tagSupplier
-
-
Constructor Detail
-
HelpTagAction
public HelpTagAction(Supplier<Tag> tagSupplier)
Constructs a newHelpAction
.- Parameters:
tagSupplier
- Supplies the tag for which the help should be shown- Since:
- 16274
-
HelpTagAction
public HelpTagAction(JTable tagTable, IntFunction<String> tagKeySupplier, IntFunction<Map<String,Integer>> tagValuesSupplier)
Constructs a newHelpAction
.- Parameters:
tagTable
- The tag table. Cannot be nulltagKeySupplier
- Finds the key from given row of tag table. Cannot be nulltagValuesSupplier
- Finds the values from given row of tag table (map of values and number of occurrences). Cannot be null
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interfaceActionListener
- Overrides:
actionPerformed
in classHelpAction
-
-