Class HelpAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.gui.dialogs.properties.HelpAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
- Direct Known Subclasses:
HelpMembershipAction,HelpTagAction
Launch browser with wiki help for selected object.
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic voidDisplays the localized Map Features.static voiddisplayHelp(List<String> pages) Display help by opening the first existing wiki page in the given list.static voiddisplayRelationHelp(IRelation<?> rel) Displays the most specific wiki page for the given relation.static voiddisplayTagHelp(String key, String val) Displays the most specific wiki page for the given key/value.static KeyStrokeReturns 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 Details
-
HelpAction
protected HelpAction()Constructs a newHelpAction.
-
-
Method Details
-
getKeyStroke
Returns the keystroke launching this action (F1 by default).- Returns:
- the keystroke launching this action
-
actionPerformed
-
displayTagHelp
Displays the most specific wiki page for the given key/value.- Parameters:
key- Keyval- Value- Since:
- 14208
-
displayRelationHelp
Displays the most specific wiki page for the given relation.- Parameters:
rel- Relation- Since:
- 14208
-
displayGenericHelp
Displays the localized Map Features.- Since:
- 14208
-
displayHelp
Display help by opening the first existing wiki page in the given list.- Parameters:
pages- list of wiki page names to test- Since:
- 14208
-