gov.nasa.gsfc.drl.rtstps.viewer.path
Class PacketAction
java.lang.Object
javax.swing.AbstractAction
gov.nasa.gsfc.drl.rtstps.library.XAction
gov.nasa.gsfc.drl.rtstps.viewer.path.StatusWindowAction
gov.nasa.gsfc.drl.rtstps.viewer.path.PacketAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class PacketAction
- extends StatusWindowAction
This class is an action that causes a new status window to be opened.
The window shows all packet status for one application id.
I maintain a list of active windows by block name so as to avoid duplicate
windows. I become a window listener on each window so that I can remove
it from my list of open windows when it closes. It is the window's
responsibility to disconnect itself from the Distributor.
- See Also:
- Serialized Form
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 |
protected StatusWindow |
createStatusWindow(javax.swing.JFrame frame,
java.lang.String blockName,
Distributor distributor)
Create a custom status window (dialog or frame) to show what the user
chooses. |
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
PacketAction
public PacketAction(javax.swing.JFrame frame,
Distributor distributor)
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.
createStatusWindow
protected StatusWindow createStatusWindow(javax.swing.JFrame frame,
java.lang.String blockName,
Distributor distributor)
- Description copied from class:
StatusWindowAction
- Create a custom status window (dialog or frame) to show what the user
chooses.
- Specified by:
createStatusWindow
in class StatusWindowAction