Package uk.ac.starlink.topcat
Class DemoToolAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- uk.ac.starlink.topcat.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 theControlWindow.TOPCAT_TOOLS_PROPsystem 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
-
-
Constructor Summary
Constructors Constructor Description DemoToolAction()No-arg constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent evt)voidsetParent(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
-
-
-
-
Method Detail
-
setParent
public void setParent(java.awt.Component parent)
Description copied from interface:TopcatToolActionSets 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:
setParentin interfaceTopcatToolAction- Parameters:
parent- parent component
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent evt)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
-