Class HelpAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.dialogs.properties.HelpAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
- Direct Known Subclasses:
HelpMembershipAction
,HelpTagAction
public abstract class HelpAction extends javax.swing.AbstractAction
Launch browser with wiki help for selected object.- Since:
- 13521
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HelpAction()
Constructs a newHelpAction
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
static void
displayGenericHelp()
Displays the localized Map Features.static void
displayHelp(java.util.List<java.lang.String> pages)
Display help by opening the first existing wiki page in the given list.static void
displayRelationHelp(IRelation<?> rel)
Displays the most specific wiki page for the given relation.static void
displayTagHelp(java.lang.String key, java.lang.String val)
Displays the most specific wiki page for the given key/value.static javax.swing.KeyStroke
getKeyStroke()
Returns the keystroke launching this action (F1 by default).-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
HelpAction
protected HelpAction()
Constructs a newHelpAction
.
-
-
Method Detail
-
getKeyStroke
public static javax.swing.KeyStroke getKeyStroke()
Returns the keystroke launching this action (F1 by default).- Returns:
- the keystroke launching this action
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
displayTagHelp
public static void displayTagHelp(java.lang.String key, java.lang.String val)
Displays the most specific wiki page for the given key/value.- Parameters:
key
- Keyval
- Value- Since:
- 14208
-
displayRelationHelp
public static void displayRelationHelp(IRelation<?> rel)
Displays the most specific wiki page for the given relation.- Parameters:
rel
- Relation- Since:
- 14208
-
displayGenericHelp
public static void displayGenericHelp()
Displays the localized Map Features.- Since:
- 14208
-
displayHelp
public static void displayHelp(java.util.List<java.lang.String> pages)
Display help by opening the first existing wiki page in the given list.- Parameters:
pages
- list of wiki page names to test- Since:
- 14208
-
-