Class HelpAction

java.lang.Object
javax.swing.AbstractAction
uk.ac.starlink.topcat.HelpAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class HelpAction extends AbstractAction
Action which invokes help.
Since:
25 Jan 2006
Author:
Mark Taylor
See Also:
  • Constructor Details

    • HelpAction

      public HelpAction(String helpID, Component parent)
      Constructs a new help window for a given helpID. If helpID is non-null, the corresponding topic will be displayed in the browser when the action is invoked. If it's null, the browser will come up as is.
      Parameters:
      helpID - help id string
      parent - parent window - may be used for positioning
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent evt)
    • helpIdExists

      public static boolean helpIdExists(String helpID)
      Tests whether a given helpID is available.
      Parameters:
      helpID - the help ID to test
      Returns:
      true iff helpID is a known ID in this application's HelpSet