|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
jsky.catalog.gui.CatalogHistoryItem
public class CatalogHistoryItem
Local class used to store information about previously viewed catalogs or query results. During a given session, the display component is saved and can be redisplayed if needed. If the application is restarted, the URL can be used instead.
Field Summary | |
---|---|
protected String |
name
The catalogs's name |
protected JComponent |
queryComponent
The component displaying the catalog (used in this session). |
protected String |
urlStr
The URL of the catalog, table or FITS file, if known, otherwise null. |
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
CatalogHistoryItem(String name,
URL url,
JComponent queryComponent)
Create a catalog history item with the given name (for display), URL string (for catalog files), and display component. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent evt)
Display the catalog |
String |
getName()
Return the catalogs's name. |
JComponent |
getQueryComponent()
Return the component displaying the catalog or query results (used in this session). |
String |
getURLStr()
Return the URL of the catalog, table or FITS file, if known, otherwise null. |
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 |
---|
protected String urlStr
protected String name
protected transient JComponent queryComponent
Constructor Detail |
---|
public CatalogHistoryItem(String name, URL url, JComponent queryComponent)
name
- The catalogs's nameurl
- The URL of the catalog, table or FITS file, if known, otherwise nullqueryComponent
- The component displaying the catalog or query results (used in this session).Method Detail |
---|
public void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
public String getURLStr()
public String getName()
public JComponent getQueryComponent()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |