Package org.openstreetmap.josm.gui.help
Class ContextSensitiveHelpAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class ContextSensitiveHelpAction extends javax.swing.AbstractAction
This is the standard help action to be used with help buttons for context sensitive help- Since:
- 2289
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringhelpTopic
-
Constructor Summary
Constructors Constructor Description ContextSensitiveHelpAction()Constructs a newContextSensitiveHelpActionfor the root help topic.ContextSensitiveHelpAction(java.lang.String helpTopic)Constructs a newContextSensitiveHelpActionfor a given help topic.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)voidsetHelpTopic(java.lang.String relativeHelpTopic)Sets the help topic.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
helpTopic
private java.lang.String helpTopic
-
-
Constructor Detail
-
ContextSensitiveHelpAction
public ContextSensitiveHelpAction()
Constructs a newContextSensitiveHelpActionfor the root help topic.
-
ContextSensitiveHelpAction
public ContextSensitiveHelpAction(java.lang.String helpTopic)
Constructs a newContextSensitiveHelpActionfor a given help topic.- Parameters:
helpTopic- The help topic
-
-
Method Detail
-
setHelpTopic
public void setHelpTopic(java.lang.String relativeHelpTopic)
Sets the help topic.- Parameters:
relativeHelpTopic- the relative help topic
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
-