Package uk.ac.starlink.topcat
Class BasicAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- uk.ac.starlink.topcat.BasicAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
- Direct Known Subclasses:
GraphicsWindow.ExportAction
,LayerControlAction
,LinesWindow.RescaleAction
,TopcatWindowAction
,WindowAction
public abstract class BasicAction extends javax.swing.AbstractAction
Convenience class extending AbstractAction.- Author:
- Mark Taylor (Starlink)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BasicAction(java.lang.String name, java.lang.String shortdesc)
BasicAction(java.lang.String name, javax.swing.Icon icon, java.lang.String shortdesc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Component
getEventWindow(java.awt.event.ActionEvent evt)
Returns the window from which this action was invoked.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Method Detail
-
getEventWindow
public java.awt.Component getEventWindow(java.awt.event.ActionEvent evt)
Returns the window from which this action was invoked. This is currently the Frame in which the event originated.- Parameters:
evt
- event to check the window for- Returns:
- window in which evt originated if it can be determined - may be null
-
-