Class DemoToolAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, TopcatToolAction

    public class DemoToolAction
    extends javax.swing.AbstractAction
    implements TopcatToolAction
    This is a template for a custom extension tool for use with the TOPCAT application. To use it, set the ControlWindow.TOPCAT_TOOLS_PROP system property to the full name of this class, something like
         -Dtopcat.exttools=uk.ac.starlink.topcat.DemoToolAction
     
    Since:
    27 Sep 2011
    Author:
    Mark Taylor
    See Also:
    Serialized Form
    • Field Summary

      • 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
      DemoToolAction()
      No-arg constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent evt)  
      void setParent​(java.awt.Component parent)
      Sets the parent component.
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
    • Constructor Detail

      • DemoToolAction

        public DemoToolAction()
        No-arg constructor. This signature is essential for use as an extension tool action.
    • Method Detail

      • setParent

        public void setParent​(java.awt.Component parent)
        Description copied from interface: TopcatToolAction
        Sets the parent component. This may be used when placing any windows associated with this action. This method will normally be called once, after construction and before the action is invoked.
        Specified by:
        setParent in interface TopcatToolAction
        Parameters:
        parent - parent component
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent evt)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener