public class CatalogHistoryItem extends AbstractAction implements Serializable
Modifier and Type | Field and Description |
---|---|
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.
|
changeSupport, enabled
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected String urlStr
protected String name
protected transient JComponent queryComponent
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).public void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
public String getURLStr()
public String getName()
public JComponent getQueryComponent()
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.