uk.ac.starlink.topcat
Class DemoToolAction
java.lang.Object
javax.swing.AbstractAction
uk.ac.starlink.topcat.DemoToolAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action, TopcatToolAction
public class DemoToolAction
- extends 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
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 |
DemoToolAction
public DemoToolAction()
- No-arg constructor.
This signature is essential for use as an extension tool action.
setParent
public void setParent(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(ActionEvent evt)
- Specified by:
actionPerformed
in interface ActionListener
Copyright ? 2003-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.