Class DemoToolAction
java.lang.Object
javax.swing.AbstractAction
uk.ac.starlink.topcat.DemoToolAction
- All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, 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:
-
Field Summary
Fields inherited from class AbstractAction
changeSupport, enabledFields inherited from interface 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidSets the parent component.Methods inherited from class AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
DemoToolAction
public DemoToolAction()No-arg constructor. This signature is essential for use as an extension tool action.
-
-
Method Details
-
setParent
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
- Specified by:
actionPerformedin interfaceActionListener
-