gov.nasa.gsfc.drl.rtstps.viewer.commands
Class StopAction
java.lang.Object
javax.swing.AbstractAction
gov.nasa.gsfc.drl.rtstps.library.XAction
gov.nasa.gsfc.drl.rtstps.viewer.commands.AbstractCommandAction
gov.nasa.gsfc.drl.rtstps.viewer.commands.StopAction
- All Implemented Interfaces:
- CommandStateListener, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
class StopAction
- extends AbstractCommandAction
- implements CommandStateListener
Handle the "stop" action.
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 |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
The action that is performed when the button is pressed or the menu
item is selected. |
void |
commandStateChange(int state)
|
javax.swing.KeyStroke |
getKeyStroke()
Get a hotkey combination that activates the action. |
char |
getMnemonic()
Get the mnemonic character associated with the action label. |
java.lang.String |
getToolTip()
Get the action's tooltip. |
Methods inherited from class gov.nasa.gsfc.drl.rtstps.library.XAction |
getText |
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 |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
StopAction
StopAction(javax.swing.JFrame frame,
RtStpsServices server)
getMnemonic
public final char getMnemonic()
- Description copied from class:
XAction
- Get the mnemonic character associated with the action label.
- Specified by:
getMnemonic
in class XAction
- Returns:
- the mnemonic character or null if there is none.
getKeyStroke
public final javax.swing.KeyStroke getKeyStroke()
- Description copied from class:
XAction
- Get a hotkey combination that activates the action. Here's an example
that links control-A to the action.
public KeyStroke getKeyStroke()
{
return KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A,
java.awt.event.InputEvent.CTRL_MASK);
}
- Specified by:
getKeyStroke
in class XAction
- Returns:
- the associated keystroke combination
getToolTip
public final java.lang.String getToolTip()
- Description copied from class:
XAction
- Get the action's tooltip.
- Specified by:
getToolTip
in class XAction
- Returns:
- a tooltip string or null if there is none.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Description copied from class:
XAction
- The action that is performed when the button is pressed or the menu
item is selected.
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Specified by:
actionPerformed
in class XAction
commandStateChange
public void commandStateChange(int state)
- Specified by:
commandStateChange
in interface CommandStateListener