|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
gov.nasa.gsfc.drl.rtstps.library.XAction
gov.nasa.gsfc.drl.rtstps.viewer.tables.StatusTableAction
public abstract class StatusTableAction
This action lets the user create a status table window.
Nested Class Summary | |
---|---|
(package private) class |
StatusTableAction.MyWindowAdapter
|
Field Summary | |
---|---|
private java.util.TreeSet<java.lang.String> |
activeWindows
|
private Distributor |
distributor
|
private javax.swing.JFrame |
frame
|
private int |
keystroke
|
private char |
mnemonic
|
private static long |
serialVersionUID
|
private java.lang.String |
tooltip
|
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 |
Constructor Summary | |
---|---|
protected |
StatusTableAction(java.lang.String title,
javax.swing.JFrame frame,
Distributor distributor)
Create the action. |
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. |
protected abstract StatusTableModel |
createStatusTableModel(Distributor d)
|
protected abstract java.util.List<java.lang.String> |
getBlockList()
|
protected java.util.List<java.lang.String> |
getBlockList(java.lang.String type)
Get a list of block names from the Distributor. |
protected java.util.List<java.lang.String> |
getBlockList(java.lang.String[] typeNames)
Get a list of block names from the Distributor. |
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. |
private java.lang.Object[] |
pickBlocks(java.util.List<java.lang.String> blockNames)
Ask the user to select blocks to display. |
void |
setKeyStroke(int key)
|
void |
setMnemonic(char m)
|
void |
setToolTip(java.lang.String tip)
|
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 |
Field Detail |
---|
private static final long serialVersionUID
private javax.swing.JFrame frame
private Distributor distributor
private java.util.TreeSet<java.lang.String> activeWindows
private char mnemonic
private int keystroke
private java.lang.String tooltip
Constructor Detail |
---|
protected StatusTableAction(java.lang.String title, javax.swing.JFrame frame, Distributor distributor)
Method Detail |
---|
public final void setMnemonic(char m)
public final char getMnemonic()
XAction
getMnemonic
in class XAction
public final void setKeyStroke(int key)
public final javax.swing.KeyStroke getKeyStroke()
XAction
public KeyStroke getKeyStroke() { return KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK); }
getKeyStroke
in class XAction
public final void setToolTip(java.lang.String tip)
public final java.lang.String getToolTip()
XAction
getToolTip
in class XAction
protected java.util.List<java.lang.String> getBlockList(java.lang.String type)
protected java.util.List<java.lang.String> getBlockList(java.lang.String[] typeNames)
protected abstract java.util.List<java.lang.String> getBlockList()
protected abstract StatusTableModel createStatusTableModel(Distributor d)
private java.lang.Object[] pickBlocks(java.util.List<java.lang.String> blockNames)
public void actionPerformed(java.awt.event.ActionEvent e)
XAction
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class XAction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |