jsky.html
Class HTMLViewerHistoryItem

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by jsky.html.HTMLViewerHistoryItem
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class HTMLViewerHistoryItem
extends javax.swing.AbstractAction
implements java.io.Serializable

Local class used to store information about previously viewed URLs.

Version:
$Revision: 1.1 $
Author:
Allan Brighton
See Also:
Serialized Form

Field Summary
protected  java.lang.String title
          The title of the page
protected  java.lang.String urlStr
          The URL of the page
 
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
HTMLViewerHistoryItem(java.lang.String title, java.net.URL url)
          Create a history item with the given title (for display) and URL.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Display the catalog
 java.lang.String getTitle()
          Return the catalogs's name.
 java.lang.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

urlStr

protected java.lang.String urlStr
The URL of the page


title

protected java.lang.String title
The title of the page

Constructor Detail

HTMLViewerHistoryItem

public HTMLViewerHistoryItem(java.lang.String title,
                             java.net.URL url)
Create a history item with the given title (for display) and URL.

Parameters:
title - The title of the HTML page
url - The URL of the HTML page
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Display the catalog

Specified by:
actionPerformed in interface java.awt.event.ActionListener

getURLStr

public java.lang.String getURLStr()
Return the URL of the catalog, table or FITS file, if known, otherwise null.


getTitle

public java.lang.String getTitle()
Return the catalogs's name.